mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
This commit is contained in:
parent
a9b0b78cb2
commit
6fc52b0563
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -62,7 +62,7 @@ class SkipSslVerificationHttpRequestFactory extends SimpleClientHttpRequestFacto
|
||||
return context.getSocketFactory();
|
||||
}
|
||||
|
||||
private class SkipHostnameVerifier implements HostnameVerifier {
|
||||
private static class SkipHostnameVerifier implements HostnameVerifier {
|
||||
|
||||
@Override
|
||||
public boolean verify(String s, SSLSession sslSession) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -135,11 +135,11 @@ public final class EndpointRequest {
|
||||
}
|
||||
|
||||
private EndpointServerWebExchangeMatcher(Class<?>[] endpoints, boolean includeLinks) {
|
||||
this(Arrays.asList((Object[]) endpoints), Collections.emptyList(), includeLinks);
|
||||
this(Arrays.asList(endpoints), Collections.emptyList(), includeLinks);
|
||||
}
|
||||
|
||||
private EndpointServerWebExchangeMatcher(String[] endpoints, boolean includeLinks) {
|
||||
this(Arrays.asList((Object[]) endpoints), Collections.emptyList(), includeLinks);
|
||||
this(Arrays.asList(endpoints), Collections.emptyList(), includeLinks);
|
||||
}
|
||||
|
||||
private EndpointServerWebExchangeMatcher(List<Object> includes, List<Object> excludes, boolean includeLinks) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -192,11 +192,11 @@ public final class EndpointRequest {
|
||||
}
|
||||
|
||||
private EndpointRequestMatcher(Class<?>[] endpoints, boolean includeLinks) {
|
||||
this(Arrays.asList((Object[]) endpoints), Collections.emptyList(), includeLinks);
|
||||
this(Arrays.asList(endpoints), Collections.emptyList(), includeLinks);
|
||||
}
|
||||
|
||||
private EndpointRequestMatcher(String[] endpoints, boolean includeLinks) {
|
||||
this(Arrays.asList((Object[]) endpoints), Collections.emptyList(), includeLinks);
|
||||
this(Arrays.asList(endpoints), Collections.emptyList(), includeLinks);
|
||||
}
|
||||
|
||||
private EndpointRequestMatcher(List<Object> includes, List<Object> excludes, boolean includeLinks) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -60,7 +60,7 @@ public class ReactiveManagementChildContextConfiguration {
|
||||
return WebHttpHandlerBuilder.applicationContext(applicationContext).build();
|
||||
}
|
||||
|
||||
class ReactiveManagementWebServerFactoryCustomizer
|
||||
static class ReactiveManagementWebServerFactoryCustomizer
|
||||
extends ManagementWebServerFactoryCustomizer<ConfigurableReactiveWebServerFactory> {
|
||||
|
||||
ReactiveManagementWebServerFactoryCustomizer(ListableBeanFactory beanFactory) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -162,13 +162,12 @@ public class JerseyEndpointResourceFactory {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private Map<String, Object> extractBodyArguments(ContainerRequestContext data) {
|
||||
Map<?, ?> entity = ((ContainerRequest) data).readEntity(Map.class);
|
||||
Map<String, Object> entity = ((ContainerRequest) data).readEntity(Map.class);
|
||||
if (entity == null) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
return (Map<String, Object>) entity;
|
||||
return entity;
|
||||
}
|
||||
|
||||
private Map<String, Object> extractPathParameters(ContainerRequestContext requestContext) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -375,7 +375,7 @@ public abstract class AbstractWebFluxEndpointHandlerMapping extends RequestMappi
|
||||
/**
|
||||
* Handler for a {@link ReactiveWebOperation}.
|
||||
*/
|
||||
private final class WriteOperationHandler {
|
||||
private static final class WriteOperationHandler {
|
||||
|
||||
private final ReactiveWebOperation operation;
|
||||
|
||||
@ -394,7 +394,7 @@ public abstract class AbstractWebFluxEndpointHandlerMapping extends RequestMappi
|
||||
/**
|
||||
* Handler for a {@link ReactiveWebOperation}.
|
||||
*/
|
||||
private final class ReadOperationHandler {
|
||||
private static final class ReadOperationHandler {
|
||||
|
||||
private final ReactiveWebOperation operation;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -284,7 +284,7 @@ public abstract class AbstractWebMvcEndpointHandlerMapping extends RequestMappin
|
||||
* Adapter class to convert an {@link OperationInvoker} into a
|
||||
* {@link ServletWebOperation}.
|
||||
*/
|
||||
private class ServletWebOperationAdapter implements ServletWebOperation {
|
||||
private static class ServletWebOperationAdapter implements ServletWebOperation {
|
||||
|
||||
private static final String PATH_SEPARATOR = AntPathMatcher.DEFAULT_PATH_SEPARATOR;
|
||||
|
||||
@ -375,7 +375,7 @@ public abstract class AbstractWebMvcEndpointHandlerMapping extends RequestMappin
|
||||
/**
|
||||
* Handler for a {@link ServletWebOperation}.
|
||||
*/
|
||||
private final class OperationHandler {
|
||||
private static final class OperationHandler {
|
||||
|
||||
private final ServletWebOperation operation;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -88,7 +88,7 @@ public class OrderedHealthAggregator extends AbstractHealthAggregator {
|
||||
/**
|
||||
* {@link Comparator} used to order {@link Status}.
|
||||
*/
|
||||
private class StatusComparator implements Comparator<Status> {
|
||||
private static class StatusComparator implements Comparator<Status> {
|
||||
|
||||
private final List<String> statusOrder;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -164,7 +164,7 @@ class OnClassCondition extends FilteringSpringBootCondition {
|
||||
|
||||
}
|
||||
|
||||
private final class StandardOutcomesResolver implements OutcomesResolver {
|
||||
private static final class StandardOutcomesResolver implements OutcomesResolver {
|
||||
|
||||
private final String[] autoConfigurationClasses;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -212,7 +212,7 @@ class NoSuchBeanDefinitionFailureAnalyzer extends AbstractInjectionFailureAnalyz
|
||||
return unsatisfiedDependencyException.getInjectionPoint();
|
||||
}
|
||||
|
||||
private class Source {
|
||||
private static class Source {
|
||||
|
||||
private final String className;
|
||||
|
||||
@ -307,7 +307,7 @@ class NoSuchBeanDefinitionFailureAnalyzer extends AbstractInjectionFailureAnalyz
|
||||
|
||||
}
|
||||
|
||||
private class AutoConfigurationResult {
|
||||
private static class AutoConfigurationResult {
|
||||
|
||||
private final MethodMetadata methodMetadata;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -92,7 +92,7 @@ public class InfoProperties implements Iterable<InfoProperties.Entry> {
|
||||
return copy;
|
||||
}
|
||||
|
||||
private final class PropertiesIterator implements Iterator<Entry> {
|
||||
private static final class PropertiesIterator implements Iterator<Entry> {
|
||||
|
||||
private final Iterator<Map.Entry<Object, Object>> iterator;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user