This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new ac90050 Remove unneeded code (#1023)
ac90050 is described below
commit ac9005098b11ba013f73fcc6f3f9ba99202f48c9
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Mon Feb 2 06:50:48 2026 -0600
Remove unneeded code (#1023)
* Remove unneeded code
---
.../java/org/apache/maven/plugin/compiler/IncrementalBuild.java | 6 +++---
src/main/java/org/apache/maven/plugin/compiler/PathSelector.java | 6 +++---
2 files changed, 6 insertions(+), 6 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 d64463d..f50b575 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/IncrementalBuild.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/IncrementalBuild.java
@@ -492,10 +492,10 @@ final class IncrementalBuild {
* @param sourceDirectory root directory of the source file
* @param outputDirectory output directory of the compiled file
* @param outputFile the output file if it was explicitly specified, or
{@code null} if it can be inferred
- * @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
+ * @param omitted whether the output file has not been generated by the
compiler (e.g. {@code package-info.class})
+ * @param lastModified last modification time 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..40f80ff 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(':');