Skip to content

Commit 2143d70

Browse files
committed
Polish boolean members that can use the default false value
1 parent a6f54ec commit 2143d70

File tree

23 files changed

+46
-46
lines changed

23 files changed

+46
-46
lines changed

buildSrc/src/main/java/org/springframework/boot/build/bom/BomExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static class LibraryHandler {
186186

187187
private final AlignWithHandler alignWith;
188188

189-
private boolean considerSnapshots = false;
189+
private boolean considerSnapshots;
190190

191191
private String version;
192192

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/liquibase/LiquibaseEndpointAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -87,7 +87,7 @@ static class DataSourceClosingLiquibaseConfiguration {
8787
SpringLiquibase liquibase() {
8888
return new DataSourceClosingSpringLiquibase() {
8989

90-
private boolean propertiesSet = false;
90+
private boolean propertiesSet;
9191

9292
@Override
9393
public void setCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated) {

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/jms/JmsHealthIndicatorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -117,7 +117,7 @@ void whenConnectionStartIsUnresponsiveStatusIsDown() throws JMSException {
117117

118118
private static final class UnresponsiveStartAnswer implements Answer<Void> {
119119

120-
private boolean connectionClosed = false;
120+
private boolean connectionClosed;
121121

122122
private final Object monitor = new Object();
123123

spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -116,7 +116,7 @@ public class Restarter {
116116

117117
private final UncaughtExceptionHandler exceptionHandler;
118118

119-
private boolean finished = false;
119+
private boolean finished;
120120

121121
private final List<ConfigurableApplicationContext> rootContexts = new CopyOnWriteArrayList<>();
122122

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -472,9 +472,9 @@ protected static final class RunnerConfiguration<C extends ConfigurableApplicati
472472

473473
private final Supplier<C> contextFactory;
474474

475-
private boolean allowBeanDefinitionOverriding = false;
475+
private boolean allowBeanDefinitionOverriding;
476476

477-
private boolean allowCircularReferences = false;
477+
private boolean allowCircularReferences;
478478

479479
private List<ApplicationContextInitializer<? super C>> initializers = Collections.emptyList();
480480

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/MockServerRestClientCustomizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -68,7 +68,7 @@ public class MockServerRestClientCustomizer implements RestClientCustomizer {
6868

6969
private final Supplier<? extends RequestExpectationManager> expectationManagerSupplier;
7070

71-
private boolean bufferContent = false;
71+
private boolean bufferContent;
7272

7373
public MockServerRestClientCustomizer() {
7474
this(SimpleRequestExpectationManager::new);

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/MockServerRestTemplateCustomizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -70,7 +70,7 @@ public class MockServerRestTemplateCustomizer implements RestTemplateCustomizer
7070

7171
private boolean detectRootUri = true;
7272

73-
private boolean bufferContent = false;
73+
private boolean bufferContent;
7474

7575
public MockServerRestTemplateCustomizer() {
7676
this(SimpleRequestExpectationManager::new);

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/Phase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ class Phase {
3939

4040
private final boolean verboseLogging;
4141

42-
private boolean daemonAccess = false;
42+
private boolean daemonAccess;
4343

4444
private final List<String> args = new ArrayList<>();
4545

spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit/GradleBuild.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -67,7 +67,7 @@ public class GradleBuild {
6767

6868
private final List<String> expectedDeprecationMessages = new ArrayList<>();
6969

70-
private boolean configurationCache = false;
70+
private boolean configurationCache;
7171

7272
private final Map<String, String> scriptProperties = new HashMap<>();
7373

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
8787
* @since 1.0.0
8888
*/
8989
@Parameter(property = "spring-boot.run.addResources", defaultValue = "false")
90-
private boolean addResources = false;
90+
private boolean addResources;
9191

9292
/**
9393
* Path to agent jars.
@@ -101,7 +101,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
101101
* @since 1.0.0
102102
*/
103103
@Parameter(property = "spring-boot.run.noverify")
104-
private boolean noverify = false;
104+
private boolean noverify;
105105

106106
/**
107107
* Current working directory to use for the application. If not specified, basedir

0 commit comments

Comments
 (0)