diff --git a/java-storage-nio/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystem.java b/java-storage-nio/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystem.java index 7b930d4a722e..c443e537625b 100644 --- a/java-storage-nio/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystem.java +++ b/java-storage-nio/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystem.java @@ -193,7 +193,8 @@ public static CloudStorageFileSystem forBucket( if (config.useUserProjectOnlyForRequesterPaysBuckets()) { if (Strings.isNullOrEmpty(config.userProject())) { throw new IllegalArgumentException( - "If useUserProjectOnlyForRequesterPaysBuckets is set, then userProject must be set too."); + "If useUserProjectOnlyForRequesterPaysBuckets is set, then userProject must be set" + + " too."); } // detect whether we want to pay for these accesses or not. if (!provider.requesterPays(bucket)) { diff --git a/java-storage-nio/google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageReadChannelTest.java b/java-storage-nio/google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageReadChannelTest.java index 7b827d2710c0..b7885863d1e1 100644 --- a/java-storage-nio/google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageReadChannelTest.java +++ b/java-storage-nio/google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageReadChannelTest.java @@ -97,7 +97,8 @@ public void testReadRetry() throws IOException { new IOException( "outer", new IOException( - "Connection closed prematurely: bytesRead = 33554432, Content-Length = 41943040")))) + "Connection closed prematurely: bytesRead = 33554432, Content-Length =" + + " 41943040")))) .thenReturn(1); assertThat(chan.position()).isEqualTo(0L); assertThat(chan.read(buffer)).isEqualTo(1); @@ -131,11 +132,13 @@ public void testReadRetryEventuallyGivesUp() throws IOException { .thenThrow( new StorageException( new IOException( - "Connection closed prematurely: bytesRead = 33554432, Content-Length = 41943040"))) + "Connection closed prematurely: bytesRead = 33554432, Content-Length =" + + " 41943040"))) .thenThrow( new StorageException( new IOException( - "Connection closed prematurely: bytesRead = 33554432, Content-Length = 41943040"))) + "Connection closed prematurely: bytesRead = 33554432, Content-Length =" + + " 41943040"))) .thenReturn(1); assertThat(chan.position()).isEqualTo(0L); chan.read(buffer);