Skip to content

Commit 6131765

Browse files
committed
code cleanup
1 parent a016402 commit 6131765

File tree

1 file changed

+1
-6
lines changed
  • ds3-sdk-integration/src/main/java/com/spectralogic/ds3client/integration

1 file changed

+1
-6
lines changed

ds3-sdk-integration/src/main/java/com/spectralogic/ds3client/integration/Util.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,7 @@ public static void loadTestBook(final Ds3Client client, final String fileName, f
9595
final Ds3ClientHelpers helpers = Ds3ClientHelpers.wrap(client);
9696

9797
final Ds3ClientHelpers.Job job = helpers.startWriteJob(bucketName, ImmutableList.of(obj));
98-
job.transfer(new Ds3ClientHelpers.ObjectChannelBuilder() {
99-
@Override
100-
public SeekableByteChannel buildChannel(final String key) throws IOException {
101-
return FileChannel.open(filePath, StandardOpenOption.READ);
102-
}
103-
});
98+
job.transfer(key -> FileChannel.open(filePath, StandardOpenOption.READ));
10499
}
105100

106101
public static Ds3ClientHelpers.Job getLoadJob(final Ds3Client client, final String bucketName, final String resourceBaseName) throws IOException, URISyntaxException {

0 commit comments

Comments
 (0)