Skip to content

Commit 4e96587

Browse files
committed
Polish modifier declaration ordering
Follow that Java language specification.
1 parent 64930d4 commit 4e96587

File tree

26 files changed

+31
-31
lines changed

26 files changed

+31
-31
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcChildContextConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public ModelAndView resolveException(HttpServletRequest request,
338338

339339
}
340340

341-
static abstract class AccessLogCustomizer<T extends EmbeddedServletContainerFactory>
341+
abstract static class AccessLogCustomizer<T extends EmbeddedServletContainerFactory>
342342
implements EmbeddedServletContainerCustomizer, Ordered {
343343

344344
private final Class<T> factoryClass;

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ protected void validateCrshShellConfig(Properties properties) {
190190
/**
191191
* Base class for CRaSH properties.
192192
*/
193-
public static abstract class CrshShellProperties {
193+
public abstract static class CrshShellProperties {
194194

195195
/**
196196
* Apply the properties to a CRaSH configuration.
@@ -203,7 +203,7 @@ public static abstract class CrshShellProperties {
203203
/**
204204
* Base class for Auth specific properties.
205205
*/
206-
public static abstract class CrshShellAuthenticationProperties
206+
public abstract static class CrshShellAuthenticationProperties
207207
extends CrshShellProperties {
208208

209209
}

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public void reset(String name) {
199199
/**
200200
* Simple {@link Gauge} implementation to {@literal double} value.
201201
*/
202-
private final static class SimpleGauge implements Gauge<Double> {
202+
private static final class SimpleGauge implements Gauge<Double> {
203203

204204
private volatile double value;
205205

@@ -221,7 +221,7 @@ public void setValue(double value) {
221221
/**
222222
* Strategy used to register metrics.
223223
*/
224-
private static abstract class MetricRegistrar<T extends Metric> {
224+
private abstract static class MetricRegistrar<T extends Metric> {
225225

226226
private final Class<T> type;
227227

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpointProxyTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public interface Executor {
100100

101101
}
102102

103-
public static abstract class AbstractExecutor implements Executor {
103+
public abstract static class AbstractExecutor implements Executor {
104104

105105
}
106106

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/HalBrowserMvcEndpointVanillaIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void endpointsAllListed() throws Exception {
110110
if ("/actuator".equals(path)) {
111111
continue;
112112
}
113-
path = path.startsWith("/") ? path.substring(1) : path;
113+
path = (path.startsWith("/") ? path.substring(1) : path);
114114
this.mockMvc.perform(get("/actuator").accept(MediaType.APPLICATION_JSON))
115115
.andExpect(status().isOk())
116116
.andExpect(jsonPath("$._links.%s.href", path).exists());
@@ -126,7 +126,7 @@ public void endpointsEachHaveSelf() throws Exception {
126126
if (collections.contains(path)) {
127127
continue;
128128
}
129-
path = path.length() > 0 ? path : "/";
129+
path = (path.length() > 0 ? path : "/");
130130
this.mockMvc.perform(get(path).accept(MediaType.APPLICATION_JSON))
131131
.andExpect(status().isOk()).andExpect(jsonPath("$._links.self.href")
132132
.value("http://localhost" + endpoint.getPath()));

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/ElasticsearchHealthIndicatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private <T> void assertDetail(Map<String, Object> details, String detail, T valu
164164
assertThat((T) details.get(detail)).isEqualTo(value);
165165
}
166166

167-
private final static class StubClusterHealthResponse extends ClusterHealthResponse {
167+
private static final class StubClusterHealthResponse extends ClusterHealthResponse {
168168

169169
private final ClusterHealthStatus status;
170170

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public Set<Object> determineImports(AnnotationMetadata metadata) {
142142
/**
143143
* Wrapper for a package import.
144144
*/
145-
private final static class PackageImport {
145+
private static final class PackageImport {
146146

147147
private final String packageName;
148148

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public EmbeddedMongoDependencyConfiguration() {
228228
* A workaround for the lack of a {@code toString} implementation on
229229
* {@code GenericFeatureAwareVersion}.
230230
*/
231-
private final static class ToStringFriendlyFeatureAwareVersion
231+
private static final class ToStringFriendlyFeatureAwareVersion
232232
implements IFeatureAwareVersion {
233233

234234
private final String version;

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/PathBasedTemplateAvailabilityProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private boolean isTemplateAvailable(String view, ResourceLoader resourceLoader,
7777
return false;
7878
}
7979

80-
protected static abstract class TemplateAvailabilityProperties {
80+
protected abstract static class TemplateAvailabilityProperties {
8181

8282
private String prefix;
8383

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ public CacheManagerCustomizer<CaffeineCacheManager> caffeineCacheManagerCustomiz
11491149

11501150
}
11511151

1152-
static abstract class CacheManagerTestCustomizer<T extends CacheManager>
1152+
abstract static class CacheManagerTestCustomizer<T extends CacheManager>
11531153
implements CacheManagerCustomizer<T> {
11541154

11551155
private T cacheManager;

0 commit comments

Comments
 (0)