Merge pull request #18089 from dreis2211

* pr/18089:
  Remove unnecessary blank lines

Closes gh-18089
pull/18100/head
Stephane Nicoll 5 years ago
commit b90d3a87d8

@ -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) {

@ -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;
}
}

@ -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();

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

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

@ -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"));
}

@ -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(

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

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

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

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

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

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

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

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

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

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

@ -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));
}
}

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

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

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

@ -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);
}
/**

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

@ -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);

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

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

@ -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;
}

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

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

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

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

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

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

Loading…
Cancel
Save