Polish
Signed-off-by: Piyal Ahmed <piya.salamence@gmail.com> See gh-46291
This commit is contained in:
parent
8c261ce2fc
commit
b9589203dc
|
@ -125,10 +125,7 @@ public class HeapDumpWebEndpoint {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
String vmVendor = System.getProperty("java.vm.vendor");
|
String vmVendor = System.getProperty("java.vm.vendor");
|
||||||
if (StringUtils.hasLength(vmVendor) && vmVendor.toLowerCase(Locale.ROOT).contains("openj9")) {
|
return StringUtils.hasLength(vmVendor) && vmVendor.toLowerCase(Locale.ROOT).contains("openj9");
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -73,13 +73,11 @@ public final class UrlDecoder {
|
||||||
|
|
||||||
private static int fillByteBuffer(ByteBuffer byteBuffer, String string, int index, int length) {
|
private static int fillByteBuffer(ByteBuffer byteBuffer, String string, int index, int length) {
|
||||||
byteBuffer.clear();
|
byteBuffer.clear();
|
||||||
while (true) {
|
do {
|
||||||
byteBuffer.put(unescape(string, index));
|
byteBuffer.put(unescape(string, index));
|
||||||
index += 3;
|
index += 3;
|
||||||
if (index >= length || string.charAt(index) != '%') {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
while (index < length && string.charAt(index) == '%');
|
||||||
byteBuffer.flip();
|
byteBuffer.flip();
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue