This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch local in repository https://gitbox.apache.org/repos/asf/maven.git
commit cccc711e6eda8051a8d11b061f4ad062fa4e62de Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Sat Apr 5 09:14:39 2025 -0400 convert fields to local variables --- .../apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java | 2 -- .../main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java b/impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java index 1defc48556..347f74b1d5 100644 --- a/impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java +++ b/impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java @@ -34,11 +34,9 @@ */ public class ExclusionArtifactFilter implements ArtifactFilter { - private final List<Exclusion> exclusions; private final List<Predicate<Artifact>> predicates; public ExclusionArtifactFilter(List<Exclusion> exclusions) { - this.exclusions = exclusions; this.predicates = exclusions.stream().map(ExclusionArtifactFilter::toPredicate).collect(Collectors.toList()); } diff --git a/impl/maven-logging/src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java b/impl/maven-logging/src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java index d07f66179f..e6e01d9775 100644 --- a/impl/maven-logging/src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java +++ b/impl/maven-logging/src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java @@ -84,7 +84,6 @@ public class SimpleLoggerConfiguration { OutputChoice outputChoice = null; private static final boolean CACHE_OUTPUT_STREAM_DEFAULT = false; - private boolean cacheOutputStream = CACHE_OUTPUT_STREAM_DEFAULT; private static final String WARN_LEVELS_STRING_DEFAULT = "WARN"; String warnLevelString = WARN_LEVELS_STRING_DEFAULT; @@ -116,7 +115,7 @@ void init() { logFile = getStringProperty(Constants.MAVEN_LOGGER_LOG_FILE, logFile); - cacheOutputStream = getBooleanProperty(Constants.MAVEN_LOGGER_CACHE_OUTPUT_STREAM, CACHE_OUTPUT_STREAM_DEFAULT); + boolean cacheOutputStream = getBooleanProperty(Constants.MAVEN_LOGGER_CACHE_OUTPUT_STREAM, CACHE_OUTPUT_STREAM_DEFAULT); outputChoice = computeOutputChoice(logFile, cacheOutputStream); if (dateTimeFormatStr != null) {