Skip to content

Commit b6d27f0

Browse files
author
Revathi Vijayaraghavan
committed
Fix isEmpty() not found compilation error due to jdk version mismatch
1 parent 8257459 commit b6d27f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/ArnResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public String getEndpoint() {
142142
String format;
143143
if(isExpress()) {
144144
Optional<String> zoneId = getZoneIdFromResourceName(name);
145-
if(zoneId.isEmpty()) {
145+
if(!zoneId.isPresent()) {
146146
throw new IllegalArgumentException("Zone ID could not be extracted from S3Express resource name: " + name);
147147
}
148148

0 commit comments

Comments
 (0)