Skip to content

Commit 2615990

Browse files
committed
Organize imports
1 parent 0335053 commit 2615990

File tree

90 files changed

+87
-182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+87
-182
lines changed

spring-boot-actuator-docs/src/restdoc/java/org/springframework/boot/actuate/hypermedia/EndpointDocumentation.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
package org.springframework.boot.actuate.hypermedia;
1818

19-
import groovy.text.Template;
20-
import groovy.text.TemplateEngine;
21-
2219
import java.io.File;
2320
import java.io.PrintWriter;
2421
import java.util.ArrayList;
@@ -53,6 +50,9 @@
5350
import org.springframework.util.StringUtils;
5451
import org.springframework.web.context.WebApplicationContext;
5552

53+
import groovy.text.Template;
54+
import groovy.text.TemplateEngine;
55+
5656
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document;
5757
import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.documentationConfiguration;
5858
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;

spring-boot-actuator-docs/src/restdoc/java/org/springframework/boot/actuate/hypermedia/SpringBootHypermediaApplication.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
package org.springframework.boot.actuate.hypermedia;
1818

19-
import groovy.text.GStringTemplateEngine;
20-
import groovy.text.TemplateEngine;
21-
2219
import org.springframework.boot.SpringApplication;
2320
import org.springframework.boot.autoconfigure.SpringBootApplication;
2421
import org.springframework.context.annotation.Bean;
2522

23+
import groovy.text.GStringTemplateEngine;
24+
import groovy.text.TemplateEngine;
25+
2626
@SpringBootApplication
2727
public class SpringBootHypermediaApplication {
2828

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
import javax.cache.Caching;
2020

21-
import net.sf.ehcache.Ehcache;
22-
2321
import org.infinispan.spring.provider.SpringCache;
2422
import org.springframework.boot.actuate.cache.CacheStatistics;
2523
import org.springframework.boot.actuate.cache.CacheStatisticsProvider;
@@ -46,6 +44,8 @@
4644
import com.hazelcast.core.IMap;
4745
import com.hazelcast.spring.cache.HazelcastCache;
4846

47+
import net.sf.ehcache.Ehcache;
48+
4949
/**
5050
* {@link EnableAutoConfiguration Auto-configuration} for {@link CacheStatisticsProvider}
5151
* beans.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
import java.util.Map;
2626
import java.util.Properties;
2727

28-
import liquibase.integration.spring.SpringLiquibase;
29-
3028
import org.flywaydb.core.Flyway;
3129
import org.springframework.beans.factory.annotation.Autowired;
3230
import org.springframework.beans.factory.annotation.Value;
@@ -69,6 +67,8 @@
6967
import org.springframework.core.io.support.PropertiesLoaderUtils;
7068
import org.springframework.web.servlet.handler.AbstractHandlerMethodMapping;
7169

70+
import liquibase.integration.spring.SpringLiquibase;
71+
7272
/**
7373
* {@link EnableAutoConfiguration Auto-configuration} for common management
7474
* {@link Endpoint}s.

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/EhCacheStatisticsProvider.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
package org.springframework.boot.actuate.cache;
1818

19-
import net.sf.ehcache.statistics.StatisticsGateway;
20-
2119
import org.springframework.cache.CacheManager;
2220
import org.springframework.cache.ehcache.EhCacheCache;
2321

22+
import net.sf.ehcache.statistics.StatisticsGateway;
23+
2424
/**
2525
* {@link CacheStatisticsProvider} implementation for EhCache.
2626
*

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpoint.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222
import javax.sql.DataSource;
2323

24+
import org.springframework.boot.context.properties.ConfigurationProperties;
25+
import org.springframework.util.Assert;
26+
2427
import liquibase.changelog.StandardChangeLogHistoryService;
2528
import liquibase.database.Database;
2629
import liquibase.database.DatabaseFactory;
2730
import liquibase.database.jvm.JdbcConnection;
2831
import liquibase.integration.spring.SpringLiquibase;
2932

30-
import org.springframework.boot.context.properties.ConfigurationProperties;
31-
import org.springframework.util.Assert;
32-
3333
/**
3434
* {@link Endpoint} to expose liquibase info.
3535
*

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package org.springframework.boot.actuate.endpoint;
1818

19-
import liquibase.integration.spring.SpringLiquibase;
20-
2119
import org.junit.Test;
2220
import org.springframework.beans.factory.annotation.Autowired;
2321
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
@@ -26,6 +24,8 @@
2624
import org.springframework.context.annotation.Configuration;
2725
import org.springframework.context.annotation.Import;
2826

27+
import liquibase.integration.spring.SpringLiquibase;
28+
2929
import static org.hamcrest.Matchers.is;
3030
import static org.junit.Assert.assertThat;
3131

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/writer/DefaultCounterServiceTests.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616

1717
package org.springframework.boot.actuate.metrics.writer;
1818

19-
import static org.junit.Assert.assertEquals;
20-
import static org.mockito.Mockito.mock;
21-
import static org.mockito.Mockito.verify;
22-
2319
import org.junit.Test;
2420
import org.junit.runner.RunWith;
2521
import org.mockito.ArgumentCaptor;
2622
import org.mockito.Captor;
2723
import org.mockito.runners.MockitoJUnitRunner;
2824

25+
import static org.junit.Assert.assertEquals;
26+
import static org.mockito.Mockito.mock;
27+
import static org.mockito.Mockito.verify;
28+
2929
/**
3030
* Tests for {@link DefaultCounterService}.
3131
*/

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/EhCacheCacheConfiguration.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
package org.springframework.boot.autoconfigure.cache;
1818

19-
import net.sf.ehcache.Cache;
20-
import net.sf.ehcache.CacheManager;
21-
2219
import org.springframework.beans.factory.annotation.Autowired;
2320
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2421
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
@@ -30,6 +27,9 @@
3027
import org.springframework.context.annotation.Configuration;
3128
import org.springframework.core.io.Resource;
3229

30+
import net.sf.ehcache.Cache;
31+
import net.sf.ehcache.CacheManager;
32+
3333
/**
3434
* EhCache cache configuration. Only kick in if a configuration file location is set or if
3535
* a default configuration file exists.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
import javax.cache.expiry.CreatedExpiryPolicy;
2727
import javax.cache.expiry.Duration;
2828

29-
import net.sf.ehcache.Status;
30-
3129
import org.infinispan.configuration.cache.ConfigurationBuilder;
3230
import org.infinispan.jcache.embedded.JCachingProvider;
3331
import org.infinispan.spring.provider.SpringEmbeddedCacheManager;
@@ -69,6 +67,8 @@
6967
import com.hazelcast.core.HazelcastInstance;
7068
import com.hazelcast.spring.cache.HazelcastCacheManager;
7169

70+
import net.sf.ehcache.Status;
71+
7272
import static org.hamcrest.CoreMatchers.equalTo;
7373
import static org.hamcrest.CoreMatchers.instanceOf;
7474
import static org.hamcrest.Matchers.contains;

spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyManagementBomTransformation.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package org.springframework.boot.cli.compiler;
1818

19-
import groovy.grape.Grape;
20-
2119
import java.net.MalformedURLException;
2220
import java.net.URI;
2321
import java.util.ArrayList;
@@ -54,6 +52,8 @@
5452
import org.springframework.core.Ordered;
5553
import org.springframework.core.annotation.Order;
5654

55+
import groovy.grape.Grape;
56+
5757
/**
5858
* {@link ASTTransformation} for processing {@link DependencyManagementBom} annotations
5959
*

spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/client/ClassPathChangeUploader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
import org.springframework.boot.devtools.filewatch.ChangedFile;
3434
import org.springframework.boot.devtools.filewatch.ChangedFiles;
3535
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile;
36-
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
3736
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile.Kind;
37+
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
3838
import org.springframework.context.ApplicationListener;
3939
import org.springframework.http.HttpHeaders;
4040
import org.springframework.http.HttpMethod;

spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/server/RestartServer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
import org.apache.commons.logging.LogFactory;
2929
import org.springframework.boot.devtools.restart.Restarter;
3030
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile;
31-
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
3231
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile.Kind;
32+
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
3333
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles.SourceFolder;
3434
import org.springframework.util.Assert;
3535
import org.springframework.util.FileCopyUtils;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/OptionalLiveReloadServerTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.springframework.boot.devtools.autoconfigure;
1818

1919
import org.junit.Test;
20-
import org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer;
2120
import org.springframework.boot.devtools.livereload.LiveReloadServer;
2221

2322
import static org.mockito.BDDMockito.willThrow;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/classpath/ClassPathChangedEventTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.junit.Rule;
2323
import org.junit.Test;
2424
import org.junit.rules.ExpectedException;
25-
import org.springframework.boot.devtools.classpath.ClassPathChangedEvent;
2625
import org.springframework.boot.devtools.filewatch.ChangedFiles;
2726

2827
import static org.hamcrest.Matchers.equalTo;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.junit.Rule;
2727
import org.junit.Test;
2828
import org.junit.rules.TemporaryFolder;
29-
import org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor;
3029
import org.springframework.core.env.ConfigurableEnvironment;
3130
import org.springframework.mock.env.MockEnvironment;
3231

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/ChangedFileTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.junit.Test;
2323
import org.junit.rules.ExpectedException;
2424
import org.junit.rules.TemporaryFolder;
25-
import org.springframework.boot.devtools.filewatch.ChangedFile;
2625
import org.springframework.boot.devtools.filewatch.ChangedFile.Type;
2726

2827
import static org.hamcrest.Matchers.equalTo;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSnapshotTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.junit.Test;
2626
import org.junit.rules.ExpectedException;
2727
import org.junit.rules.TemporaryFolder;
28-
import org.springframework.boot.devtools.filewatch.FileSnapshot;
2928
import org.springframework.util.FileCopyUtils;
3029

3130
import static org.hamcrest.Matchers.equalTo;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/Base64EncoderTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.springframework.boot.devtools.livereload;
1818

1919
import org.junit.Test;
20-
import org.springframework.boot.devtools.livereload.Base64Encoder;
2120

2221
import static org.hamcrest.Matchers.equalTo;
2322
import static org.junit.Assert.assertThat;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/ConnectionInputStreamTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.junit.Rule;
2525
import org.junit.Test;
2626
import org.junit.rules.ExpectedException;
27-
import org.springframework.boot.devtools.livereload.ConnectionInputStream;
2827

2928
import static org.hamcrest.Matchers.equalTo;
3029
import static org.junit.Assert.assertThat;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/ConnectionOutputStreamTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.io.OutputStream;
2222

2323
import org.junit.Test;
24-
import org.springframework.boot.devtools.livereload.ConnectionOutputStream;
2524

2625
import static org.hamcrest.Matchers.equalTo;
2726
import static org.junit.Assert.assertThat;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/FrameTests.java

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
import org.junit.Rule;
2424
import org.junit.Test;
2525
import org.junit.rules.ExpectedException;
26-
import org.springframework.boot.devtools.livereload.ConnectionInputStream;
27-
import org.springframework.boot.devtools.livereload.Frame;
2826

2927
import static org.hamcrest.Matchers.equalTo;
3028
import static org.junit.Assert.assertThat;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java

-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
import org.junit.After;
3737
import org.junit.Before;
3838
import org.junit.Test;
39-
import org.springframework.boot.devtools.livereload.Connection;
40-
import org.springframework.boot.devtools.livereload.ConnectionClosedException;
41-
import org.springframework.boot.devtools.livereload.LiveReloadServer;
4239
import org.springframework.util.SocketUtils;
4340
import org.springframework.web.client.RestTemplate;
4441

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/client/ClassPathChangeUploaderTests.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@
3232
import org.junit.rules.TemporaryFolder;
3333
import org.springframework.boot.devtools.classpath.ClassPathChangedEvent;
3434
import org.springframework.boot.devtools.filewatch.ChangedFile;
35-
import org.springframework.boot.devtools.filewatch.ChangedFiles;
3635
import org.springframework.boot.devtools.filewatch.ChangedFile.Type;
37-
import org.springframework.boot.devtools.remote.client.ClassPathChangeUploader;
36+
import org.springframework.boot.devtools.filewatch.ChangedFiles;
3837
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile;
39-
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
4038
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile.Kind;
39+
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
4140
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles.SourceFolder;
4241
import org.springframework.boot.devtools.test.MockClientHttpRequestFactory;
4342
import org.springframework.http.HttpStatus;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/client/DelayedLiveReloadTriggerTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.mockito.Mock;
2727
import org.mockito.MockitoAnnotations;
2828
import org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer;
29-
import org.springframework.boot.devtools.remote.client.DelayedLiveReloadTrigger;
3029
import org.springframework.http.HttpMethod;
3130
import org.springframework.http.HttpStatus;
3231
import org.springframework.http.client.ClientHttpRequest;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/client/HttpHeaderInterceptorTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.junit.runner.RunWith;
2626
import org.mockito.Mock;
2727
import org.mockito.runners.MockitoJUnitRunner;
28-
import org.springframework.boot.devtools.remote.client.HttpHeaderInterceptor;
2928
import org.springframework.http.HttpRequest;
3029
import org.springframework.http.client.ClientHttpRequestExecution;
3130
import org.springframework.http.client.ClientHttpResponse;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/server/DispatcherFilterTests.java

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
import org.mockito.Captor;
3131
import org.mockito.Mock;
3232
import org.mockito.MockitoAnnotations;
33-
import org.springframework.boot.devtools.remote.server.Dispatcher;
34-
import org.springframework.boot.devtools.remote.server.DispatcherFilter;
3533
import org.springframework.http.server.ServerHttpRequest;
3634
import org.springframework.http.server.ServerHttpResponse;
3735
import org.springframework.http.server.ServletServerHttpRequest;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/server/DispatcherTests.java

-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
import org.mockito.InOrder;
2828
import org.mockito.Mock;
2929
import org.mockito.MockitoAnnotations;
30-
import org.springframework.boot.devtools.remote.server.AccessManager;
31-
import org.springframework.boot.devtools.remote.server.Dispatcher;
32-
import org.springframework.boot.devtools.remote.server.Handler;
33-
import org.springframework.boot.devtools.remote.server.HandlerMapper;
3430
import org.springframework.core.Ordered;
3531
import org.springframework.http.server.ServerHttpRequest;
3632
import org.springframework.http.server.ServerHttpResponse;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/server/HttpHeaderAccessManagerTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.junit.Rule;
2121
import org.junit.Test;
2222
import org.junit.rules.ExpectedException;
23-
import org.springframework.boot.devtools.remote.server.HttpHeaderAccessManager;
2423
import org.springframework.http.server.ServerHttpRequest;
2524
import org.springframework.http.server.ServletServerHttpRequest;
2625
import org.springframework.mock.web.MockHttpServletRequest;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/server/HttpStatusHandlerTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.junit.Rule;
2121
import org.junit.Test;
2222
import org.junit.rules.ExpectedException;
23-
import org.springframework.boot.devtools.remote.server.HttpStatusHandler;
2423
import org.springframework.http.HttpStatus;
2524
import org.springframework.http.server.ServerHttpRequest;
2625
import org.springframework.http.server.ServerHttpResponse;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/remote/server/UrlHandlerMapperTests.java

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import org.junit.Rule;
2222
import org.junit.Test;
2323
import org.junit.rules.ExpectedException;
24-
import org.springframework.boot.devtools.remote.server.Handler;
25-
import org.springframework.boot.devtools.remote.server.UrlHandlerMapper;
2624
import org.springframework.http.server.ServerHttpRequest;
2725
import org.springframework.http.server.ServletServerHttpRequest;
2826
import org.springframework.mock.web.MockHttpServletRequest;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/ChangeableUrlsTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import org.junit.Rule;
2424
import org.junit.Test;
2525
import org.junit.rules.TemporaryFolder;
26-
import org.springframework.boot.devtools.restart.ChangeableUrls;
2726

2827
import static org.hamcrest.Matchers.equalTo;
2928
import static org.junit.Assert.assertThat;

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/DefaultRestartInitializerTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import java.net.URL;
2020

2121
import org.junit.Test;
22-
import org.springframework.boot.devtools.restart.DefaultRestartInitializer;
2322

2423
import static org.hamcrest.Matchers.equalTo;
2524
import static org.hamcrest.Matchers.not;

0 commit comments

Comments
 (0)