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 b1a9faa simplify lambda (#1025)
b1a9faa is described below
commit b1a9faa5504f1b362b1920f1d9a6d1b8694385cc
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Sat Jan 31 10:04:09 2026 -0600
simplify lambda (#1025)
* Simplify lambdas
---
src/main/java/org/apache/maven/plugin/compiler/IncrementalBuild.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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..d64463d 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/IncrementalBuild.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/IncrementalBuild.java
@@ -780,6 +780,6 @@ final class IncrementalBuild {
* @param sourceFiles return value of {@link #getModifiedSources()}.
*/
static boolean isEmptyOrIgnorable(List<SourceFile> sourceFiles) {
- return !sourceFiles.stream().anyMatch((s) -> !s.ignoreModification);
+ return sourceFiles.stream().allMatch((s) -> s.ignoreModification);
}
}