Skip to content
Closed

Polish #46291

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,7 @@ private boolean isRunningOnOpenJ9() {
return true;
}
String vmVendor = System.getProperty("java.vm.vendor");
if (StringUtils.hasLength(vmVendor) && vmVendor.toLowerCase(Locale.ROOT).contains("openj9")) {
return true;
}
return false;
return StringUtils.hasLength(vmVendor) && vmVendor.toLowerCase(Locale.ROOT).contains("openj9");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,11 @@ public static String decode(String string) {

private static int fillByteBuffer(ByteBuffer byteBuffer, String string, int index, int length) {
byteBuffer.clear();
while (true) {
do {
byteBuffer.put(unescape(string, index));
index += 3;
if (index >= length || string.charAt(index) != '%') {
break;
}
}
while (index < length && string.charAt(index) == '%');
byteBuffer.flip();
return index;
}
Expand Down