Browse Source

Merge branch '3.5.x'

Closes gh-46306
pull/46314/head
Andy Wilkinson 7 months ago
parent
commit
53b66d0da7
  1. 5
      spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/management/HeapDumpWebEndpoint.java
  2. 6
      spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/util/UrlDecoder.java

5
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/management/HeapDumpWebEndpoint.java

@ -126,10 +126,7 @@ public class HeapDumpWebEndpoint { @@ -126,10 +126,7 @@ public class HeapDumpWebEndpoint {
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");
}
/**

6
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/util/UrlDecoder.java

@ -73,13 +73,11 @@ public final class UrlDecoder { @@ -73,13 +73,11 @@ public final class UrlDecoder {
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;
}

Loading…
Cancel
Save