Skip to content

Commit a3209f1

Browse files
committed
Checkstyle fixes
1 parent a08d484 commit a3209f1

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

test/http-client-benchmarks/src/main/java/software/amazon/awssdk/benchmark/AsyncVirtualThreadBenchmark.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,14 @@ public class AsyncVirtualThreadBenchmark {
7070
static {
7171
try {
7272
Path tmp = Paths.get(AsyncVirtualThreadBenchmark.class.getSimpleName() + "-stdout-" + UUID.randomUUID() + ".log");
73-
PrintStream fileOut = new PrintStream(Files.newOutputStream(tmp, StandardOpenOption.APPEND, StandardOpenOption.CREATE));
73+
PrintStream fileOut = new PrintStream(
74+
Files.newOutputStream(tmp, StandardOpenOption.APPEND, StandardOpenOption.CREATE));
7475
System.setOut(fileOut);
7576
} catch (IOException e) {
7677
throw new RuntimeException("Unable to create STDOUT file", e);
7778
}
7879
}
80+
7981
public enum Client {
8082
Netty,
8183
Crt

test/http-client-benchmarks/src/main/java/software/amazon/awssdk/benchmark/VirtualThreadBenchmark.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
import software.amazon.awssdk.utils.AttributeMap;
5858
import software.amazon.awssdk.utils.IoUtils;
5959
import software.amazon.awssdk.utils.JavaSystemSetting;
60-
import software.amazon.awssdk.utils.Logger;
6160

6261
/**
6362
* Http client benchmark using virtual threads. This class requires Java 21+.
@@ -73,12 +72,14 @@ public class VirtualThreadBenchmark {
7372
// benchmark run.
7473
try {
7574
Path tmp = Paths.get(VirtualThreadBenchmark.class.getSimpleName() + "-stdout-" + UUID.randomUUID() + ".log");
76-
PrintStream fileOut = new PrintStream(Files.newOutputStream(tmp, StandardOpenOption.APPEND, StandardOpenOption.CREATE));
75+
PrintStream fileOut = new PrintStream(
76+
Files.newOutputStream(tmp, StandardOpenOption.APPEND, StandardOpenOption.CREATE));
7777
System.setOut(fileOut);
7878
} catch (IOException e) {
7979
throw new RuntimeException("Unable to create STDOUT file", e);
8080
}
8181
}
82+
8283
public enum Client {
8384
Apache5,
8485
Apache4,

test/http-client-benchmarks/src/main/java/software/amazon/awssdk/benchmark/core/ObjectSize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public enum ObjectSize {
2323

2424
private final long sizeInBytes;
2525

26-
private ObjectSize(long sizeInBytes) {
26+
ObjectSize(long sizeInBytes) {
2727
this.sizeInBytes = sizeInBytes;
2828
}
2929

test/http-client-benchmarks/src/main/java/software/amazon/awssdk/benchmark/core/S3BenchmarkHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public S3BenchmarkHelper(String name, S3AsyncClient s3AsyncClient) {
5959

6060
public void setup() {
6161
try {
62-
this.bucketName = name.toLowerCase(Locale.ENGLISH)+ "-bucket-" + System.currentTimeMillis();
62+
this.bucketName = name.toLowerCase(Locale.ENGLISH) + "-bucket-" + System.currentTimeMillis();
6363
// Create bucket
6464
s3Wrapper.createBucket(CreateBucketRequest.builder().bucket(bucketName).build());
6565

test/http-client-benchmarks/src/main/java/software/amazon/awssdk/benchmark/core/S3Wrapper.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@
2828
*/
2929
public interface S3Wrapper {
3030
void createBucket(CreateBucketRequest request);
31+
3132
void putObject(PutObjectRequest request, Path file);
33+
3234
ListObjectsV2Response listObjectsV2(ListObjectsV2Request request);
35+
3336
void deleteObject(DeleteObjectRequest request);
37+
3438
void deleteBucket(DeleteBucketRequest request);
39+
3540
void waitUntilBucketExists(String bucketName);
3641
}

0 commit comments

Comments
 (0)