Skip to content

Commit 4fba7d0

Browse files
committed
Merge branch '2.3.x' into 2.4.x
2 parents a2d0b64 + 2930053 commit 4fba7d0

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/CloudFoundryWebEndpointServletHandlerMapping.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
import javax.servlet.http.HttpServletRequest;
2626
import javax.servlet.http.HttpServletResponse;
2727

28+
import org.apache.commons.logging.Log;
29+
import org.apache.commons.logging.LogFactory;
30+
2831
import org.springframework.boot.actuate.autoconfigure.cloudfoundry.AccessLevel;
2932
import org.springframework.boot.actuate.autoconfigure.cloudfoundry.SecurityResponse;
3033
import org.springframework.boot.actuate.endpoint.EndpointId;
@@ -51,6 +54,8 @@
5154
*/
5255
class CloudFoundryWebEndpointServletHandlerMapping extends AbstractWebMvcEndpointHandlerMapping {
5356

57+
private static final Log logger = LogFactory.getLog(CloudFoundryWebEndpointServletHandlerMapping.class);
58+
5459
private final CloudFoundrySecurityInterceptor securityInterceptor;
5560

5661
private final EndpointLinksResolver linksResolver;

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/MockedDriverConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package org.springframework.boot.autoconfigure.data.neo4j;
1818

19-
import org.mockito.Mockito;
19+
import org.mockito.ArgumentMatchers;
2020
import org.neo4j.driver.Driver;
2121
import org.neo4j.driver.Session;
2222
import org.neo4j.driver.SessionConfig;
@@ -43,7 +43,7 @@ Driver driver() {
4343
TypeSystem typeSystem = mock(TypeSystem.class);
4444
Session session = mock(Session.class);
4545
given(driver.defaultTypeSystem()).willReturn(typeSystem);
46-
given(driver.session(Mockito.any(SessionConfig.class))).willReturn(session);
46+
given(driver.session(ArgumentMatchers.any(SessionConfig.class))).willReturn(session);
4747
return driver;
4848
}
4949

spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/AbstractPackagerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ static class TestLayers implements Layers {
644644

645645
private static final Layer DEFAULT_LAYER = new Layer("default");
646646

647-
private Set<Layer> layers = new LinkedHashSet<Layer>();
647+
private Set<Layer> layers = new LinkedHashSet<>();
648648

649649
private Map<String, Layer> libraries = new HashMap<>();
650650

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarFileTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ void jarFileEntryWithEpochTimeOfZeroShouldNotFail() throws Exception {
643643
@Test
644644
void iterator() {
645645
Iterator<JarEntry> iterator = this.jarFile.iterator();
646-
List<String> names = new ArrayList<String>();
646+
List<String> names = new ArrayList<>();
647647
while (iterator.hasNext()) {
648648
names.add(iterator.next().getName());
649649
}

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public abstract class AbstractServletWebServerFactory extends AbstractConfigurab
8282

8383
private final StaticResourceJars staticResourceJars = new StaticResourceJars();
8484

85-
private final Set<String> webListenerClassNames = new HashSet<String>();
85+
private final Set<String> webListenerClassNames = new HashSet<>();
8686

8787
/**
8888
* Create a new {@link AbstractServletWebServerFactory} instance.

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourcesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static class TestPropertySource extends MapPropertySource implements OriginLooku
203203
}
204204

205205
private static Map<String, Object> createProperties(int index) {
206-
Map<String, Object> map = new LinkedHashMap<String, Object>();
206+
Map<String, Object> map = new LinkedHashMap<>();
207207
for (int i = 0; i < 1000; i++) {
208208
String name = "test-" + index + "-property-" + i;
209209
String value = name + "-value";

0 commit comments

Comments
 (0)