Remove redundant array creation

See gh-39259
This commit is contained in:
Tobias Lippert
2024-01-21 20:05:06 +01:00
committed by Phillip Webb
parent 0613034e19
commit d3c97adf79
3 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ class BsdDomainSocket extends DomainSocket {
@Override
protected List<String> getFieldOrder() {
return Arrays.asList(new String[] { "sunLen", "sunFamily", "sunPath" });
return Arrays.asList("sunLen", "sunFamily", "sunPath");
}
}

View File

@@ -72,7 +72,7 @@ class LinuxDomainSocket extends DomainSocket {
@Override
protected List<String> getFieldOrder() {
return Arrays.asList(new String[] { "sunFamily", "sunPath" });
return Arrays.asList("sunFamily", "sunPath");
}
}