Remove unnecessary blank lines

See gh-18089
This commit is contained in:
dreis2211 2019-09-02 09:05:01 +02:00 committed by Stephane Nicoll
parent 9ed6b92ecc
commit b4350a9d96
33 changed files with 0 additions and 34 deletions

View File

@ -284,7 +284,6 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
return isFilterMatch(instance, endpoint);
}
return false;
}
private boolean isFilterMatch(EndpointFilter<E> filter, EndpointBean endpointBean) {

View File

@ -61,7 +61,6 @@ class CompositeHealthContributorReactiveAdapter implements CompositeReactiveHeal
public ReactiveHealthContributor getContributor(String name) {
HealthContributor contributor = this.delegate.getContributor(name);
return (contributor != null) ? ReactiveHealthContributor.adapt(contributor) : null;
}
}

View File

@ -81,7 +81,6 @@ public class DispatcherHandlersMappingDescriptionProvider implements MappingDesc
for (HandlerMappingDescriptionProvider<?> descriptionProvider : descriptionProviders) {
if (descriptionProvider.getMappingClass().isInstance(handlerMapping)) {
return ((HandlerMappingDescriptionProvider<T>) descriptionProvider).describe(handlerMapping).stream();
}
}
return Stream.empty();

View File

@ -590,7 +590,6 @@ class WebEndpointDiscovererTests {
@WriteOperation(produces = { "a/b", "c/d" })
String write() {
return "write";
}
@DeleteOperation(produces = "text/plain")

View File

@ -124,7 +124,6 @@ class WebEndpointTestInvocationContextProvider implements TestTemplateInvocation
context.register(ClassUtils.toClassArray(classes));
context.refresh();
return context;
}
static class WebEndpointsInvocationContext

View File

@ -164,7 +164,6 @@ class JCacheCacheConfiguration implements BeanClassLoaderAware {
providers.next();
if (providers.hasNext()) {
return ConditionOutcome.noMatch(message.foundExactly("multiple JSR-107 providers"));
}
return ConditionOutcome.match(message.foundExactly("single JSR-107 provider"));
}

View File

@ -72,7 +72,6 @@ class RedisCacheConfiguration {
ObjectProvider<org.springframework.data.redis.cache.RedisCacheConfiguration> redisCacheConfiguration,
ClassLoader classLoader) {
return redisCacheConfiguration.getIfAvailable(() -> createConfiguration(cacheProperties, classLoader));
}
private org.springframework.data.redis.cache.RedisCacheConfiguration createConfiguration(

View File

@ -108,7 +108,6 @@ abstract class FilteringSpringBootCondition extends SpringBootCondition
return classLoader.loadClass(className);
}
return Class.forName(className);
}
protected enum ClassNameFilter {

View File

@ -47,7 +47,6 @@ class HibernateDefaultDdlAutoProvider implements SchemaManagementProvider {
return "none";
}
return "create-drop";
}
@Override

View File

@ -129,7 +129,6 @@ public class QuartzAutoConfiguration {
QuartzProperties properties) {
DataSource dataSourceToUse = getDataSource(dataSource, quartzDataSource);
return new QuartzDataSourceInitializer(dataSourceToUse, resourceLoader, properties);
}
/**

View File

@ -517,7 +517,6 @@ class JmsAutoConfigurationTests {
configurer.configure(factory, connectionFactory);
factory.setCacheLevel(DefaultMessageListenerContainer.CACHE_CONSUMER);
return factory;
}
}

View File

@ -71,7 +71,6 @@ class JooqExceptionTranslatorTests {
private static SQLException sqlException(int vendorCode) {
return new SQLException(null, null, vendorCode);
}
}

View File

@ -903,7 +903,6 @@ class WebMvcAutoConfigurationTests {
@Bean
ConfigurableWebBindingInitializer customConfigurableWebBindingInitializer() {
return new CustomWebBindingInitializer();
}
}

View File

@ -71,7 +71,6 @@ public class DependencyCustomizer {
public String getVersion(String artifactId) {
return getVersion(artifactId, "");
}
public String getVersion(String artifactId, String defaultVersion) {

View File

@ -243,7 +243,6 @@ final class ClassLoaderFilesResourcePatternResolver implements ResourcePatternRe
copyProtocolResolvers(applicationContext, resourceLoader);
}
return new ServletContextResourcePatternResolver(resourceLoader);
}
}

View File

@ -60,7 +60,6 @@ public class ClassLoaderFileURLStreamHandler extends URLStreamHandler {
@Override
public long getLastModified() {
return ClassLoaderFileURLStreamHandler.this.file.getLastModified();
}
}

View File

@ -144,7 +144,6 @@ public class RestartServer {
classLoader = classLoader.getParent();
}
return urls;
}
private void updateTimeStamp(Iterable<URL> urls) {

View File

@ -7094,7 +7094,6 @@ The following code shows a typical example:
public DetailsResp someWsCall(DetailsReq detailsReq) {
return (DetailsResp) this.webServiceTemplate.marshalSendAndReceive(detailsReq, new SoapActionCallback(ACTION));
}
}

View File

@ -35,7 +35,6 @@ public class HibernateSecondLevelCacheExample {
@Bean
public HibernatePropertiesCustomizer hibernateSecondLevelCacheCustomizer(JCacheCacheManager cacheManager) {
return (properties) -> properties.put(ConfigSettings.CACHE_MANAGER, cacheManager.getCacheManager());
}
}

View File

@ -75,7 +75,6 @@ public class TestEntityManager {
public <T> T persistAndGetId(Object entity, Class<T> idType) {
persist(entity);
return getId(entity, idType);
}
/**

View File

@ -104,7 +104,6 @@ public class SpringBootMockMvcBuilderCustomizer implements MockMvcBuilderCustomi
return new LoggingLinesWriter();
}
return new SystemLinesWriter(this.print);
}
private void addFilters(ConfigurableMockMvcBuilder<?> builder) {

View File

@ -615,7 +615,6 @@ public class TestRestTemplate {
*/
public <T> T patchForObject(URI url, Object request, Class<T> responseType) throws RestClientException {
return this.restTemplate.patchForObject(applyRootUriIfNecessary(url), request, responseType);
}
/**

View File

@ -54,7 +54,6 @@ class SpringBootTestWebEnvironmentRandomPortTests extends AbstractSpringBootTest
@Bean
RestTemplateBuilder restTemplateBuilder() {
return new RestTemplateBuilder().additionalMessageConverters(new MyConverter());
}
}

View File

@ -242,7 +242,6 @@ public class JSONStringer {
if (value instanceof JSONArray) {
((JSONArray) value).writeTo(this);
return this;
}
else if (value instanceof JSONObject) {
((JSONObject) value).writeTo(this);

View File

@ -205,7 +205,6 @@ final class ModifiedClassPathClassLoader extends URLClassLoader {
}
catch (Exception ignored) {
return Collections.emptyList();
}
}

View File

@ -49,7 +49,6 @@ class PropertyMapping {
*/
String getPropertySourceName() {
return this.propertySourceName;
}
/**
@ -59,7 +58,6 @@ class PropertyMapping {
*/
ConfigurationPropertyName getConfigurationPropertyName() {
return this.configurationPropertyName;
}
/**

View File

@ -46,7 +46,6 @@ public class UnboundElementsSourceFilter implements Function<ConfigurationProper
if (underlyingSource instanceof PropertySource) {
String name = ((PropertySource<?>) underlyingSource).getName();
return !BENIGN_PROPERTY_SOURCE_NAMES.contains(name);
}
return true;
}

View File

@ -126,7 +126,6 @@ public enum DatabaseDriver {
@Override
protected boolean matchProductName(String productName) {
return super.matchProductName(productName) || "SQL SERVER".equalsIgnoreCase(productName);
}
},

View File

@ -272,7 +272,6 @@ public class LogbackLoggingSystem extends Slf4JLoggingSystem {
name = Logger.ROOT_LOGGER_NAME;
}
return factory.getLogger(name);
}
private LoggerContext getLoggerContext() {

View File

@ -144,7 +144,6 @@ public class NettyRSocketServerFactory implements RSocketServerFactory, Configur
}
else {
return TcpServerTransport.create(getListenAddress());
}
}
}

View File

@ -362,7 +362,6 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry {
public PrintWriter getWriter() throws IOException {
sendErrorIfNecessary();
return super.getWriter();
}
@Override

View File

@ -133,7 +133,6 @@ class ConfigurationPropertiesBindHandlerAdvisorTests {
}
}
return super.onStart(name, target, context);
}
private ConfigurationPropertyName getDefaultName(ConfigurationPropertyName name) {

View File

@ -283,7 +283,6 @@ public abstract class AbstractReactiveWebServerFactoryTests {
Compression compression = new Compression();
compression.setEnabled(true);
return prepareCompressionTest(compression);
}
protected WebClient prepareCompressionTest(Compression compression) {