Skip to content

Commit bd60a4e

Browse files
Apply suggestions from code review
Co-authored-by: Sivanantham Gnanavel <158702293+sivanantham-gnanavel@users.noreply.github.com>
1 parent ef2a2fe commit bd60a4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/main/java/io/minio/HeadBucketResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ public String accessPointAlias() {
4040

4141
@Override
4242
public String toString() {
43-
return "HeadObjectResponse{" + "bucket=" + bucket() + ", region=" + region() + "}";
43+
return "HeadBucketResponse{" + "bucket=" + bucket() + ", region=" + region() + "}";
4444
}
4545
}

api/src/main/java/io/minio/HeadObjectResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public HeadObjectResponse(okhttp3.Headers headers, String bucket, String region,
8585
if (value != null && !value.isEmpty()) checksums.put(Checksum.Algorithm.SHA1, value);
8686
value = headers.get("x-amz-checksum-sha256");
8787
if (value != null && !value.isEmpty()) checksums.put(Checksum.Algorithm.SHA256, value);
88-
if (checksums.size() != 0) this.checksums = checksums;
88+
if (!checksums.isEmpty()) this.checksums = checksums;
8989
}
9090

9191
public String etag() {

0 commit comments

Comments
 (0)