parent
0613034e19
commit
d3c97adf79
|
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class ExtractCommandTests {
|
|||
private void timeAttributes(File file) {
|
||||
try {
|
||||
BasicFileAttributes basicAttributes = Files
|
||||
.getFileAttributeView(file.toPath(), BasicFileAttributeView.class, new LinkOption[0])
|
||||
.getFileAttributeView(file.toPath(), BasicFileAttributeView.class)
|
||||
.readAttributes();
|
||||
assertThat(basicAttributes.lastModifiedTime().to(TimeUnit.SECONDS))
|
||||
.isEqualTo(LAST_MODIFIED_TIME.to(TimeUnit.SECONDS));
|
||||
|
|
|
|||
Loading…
Reference in New Issue