This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch ex
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git

commit 066b6ed1806c8b251e5814c7b9d69e39d1f29555
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Tue Jan 27 08:12:09 2026 -0500

    Remove unneeded code
---
 .../java/org/apache/maven/plugin/compiler/IncrementalBuild.java     | 2 +-
 src/main/java/org/apache/maven/plugin/compiler/PathSelector.java    | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/plugin/compiler/IncrementalBuild.java 
b/src/main/java/org/apache/maven/plugin/compiler/IncrementalBuild.java
index f2e1624..895b8cd 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/IncrementalBuild.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/IncrementalBuild.java
@@ -495,7 +495,7 @@ final class IncrementalBuild {
      * @param omitted whether the output file has not be generated by the 
compiler (e.g. {@code package-info.class})
      * @param lastModified last modification times of the source file during 
the previous build
      */
-    private static record SourceInfo(
+    private record SourceInfo(
             Path sourceDirectory, Path outputDirectory, Path outputFile, 
boolean omitted, long lastModified) {
         /**
          * Deletes all output files associated to the given source file. If 
the output file is a {@code .class} file,
diff --git a/src/main/java/org/apache/maven/plugin/compiler/PathSelector.java 
b/src/main/java/org/apache/maven/plugin/compiler/PathSelector.java
index 748d384..e2fcc5a 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/PathSelector.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/PathSelector.java
@@ -212,12 +212,12 @@ final class PathSelector implements PathMatcher {
         }
         prefixes = sortByLength(prefixes, false);
         suffixes = sortByLength(suffixes, true);
+        
         /*
-         * Keep only the exclude which start with one of the prefixes and end 
with one of the suffixes.
-         * Note that a prefix or suffix may be the empty string, which match 
everything.
+         * Keep only the excludes which start with one of the prefixes and end 
with one of the suffixes.
+         * Note that a prefix or suffix may be the empty string, which matches 
everything.
          */
         final Iterator<String> it = excludes.iterator();
-        nextExclude:
         while (it.hasNext()) {
             final String exclude = it.next();
             final int s = exclude.indexOf(':');

Reply via email to