Skip to content

Commit d3c97ad

Browse files
tobias-lippertphilwebb
authored andcommitted
Remove redundant array creation
See gh-39259
1 parent 0613034 commit d3c97ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/socket/BsdDomainSocket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private SockaddrUn(byte sunFamily, byte[] path) {
7575

7676
@Override
7777
protected List<String> getFieldOrder() {
78-
return Arrays.asList(new String[] { "sunLen", "sunFamily", "sunPath" });
78+
return Arrays.asList("sunLen", "sunFamily", "sunPath");
7979
}
8080

8181
}

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/socket/LinuxDomainSocket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private SockaddrUn(byte sunFamily, byte[] path) {
7272

7373
@Override
7474
protected List<String> getFieldOrder() {
75-
return Arrays.asList(new String[] { "sunFamily", "sunPath" });
75+
return Arrays.asList("sunFamily", "sunPath");
7676
}
7777

7878
}

spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/test/java/org/springframework/boot/jarmode/layertools/ExtractCommandTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void runExtractsLayers() {
103103
private void timeAttributes(File file) {
104104
try {
105105
BasicFileAttributes basicAttributes = Files
106-
.getFileAttributeView(file.toPath(), BasicFileAttributeView.class, new LinkOption[0])
106+
.getFileAttributeView(file.toPath(), BasicFileAttributeView.class)
107107
.readAttributes();
108108
assertThat(basicAttributes.lastModifiedTime().to(TimeUnit.SECONDS))
109109
.isEqualTo(LAST_MODIFIED_TIME.to(TimeUnit.SECONDS));

0 commit comments

Comments
 (0)