Skip to content

Commit eedeaa2

Browse files
committed
Polish "Replace loops with Arrays.setAll where possible"
Closes gh-14125
1 parent 0bc66dc commit eedeaa2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/web/servlet/MockServletWebServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public ServletContext getServletContext() {
115115

116116
public Servlet[] getServlets() {
117117
Servlet[] servlets = new Servlet[this.registeredServlets.size()];
118-
Arrays.setAll(servlets, i -> this.registeredServlets.get(i).getServlet());
118+
Arrays.setAll(servlets, (i) -> this.registeredServlets.get(i).getServlet());
119119
return servlets;
120120
}
121121

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowReactiveWebServerFactoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)