File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/mappings/reactive Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -9,23 +9,23 @@ trap 'report_error $? $LINENO' ERR
9
9
10
10
case " $JDK_VERSION " in
11
11
java8)
12
- BASE_URL=" https://api.adoptopenjdk.net/v3/assets/feature_releases/8"
12
+ BASE_URL=" https://api.adoptopenjdk.net/v3/assets/feature_releases/8/ga "
13
13
ISSUE_TITLE=" Upgrade Java 8 version in CI image"
14
14
;;
15
15
java11)
16
- BASE_URL=" https://api.adoptopenjdk.net/v3/assets/feature_releases/11"
16
+ BASE_URL=" https://api.adoptopenjdk.net/v3/assets/feature_releases/11/ga "
17
17
ISSUE_TITLE=" Upgrade Java 11 version in CI image"
18
18
;;
19
- java14 )
20
- BASE_URL=" https://api.adoptopenjdk.net/v3/assets/feature_releases/14 "
21
- ISSUE_TITLE=" Upgrade Java 14 version in CI image"
19
+ java15 )
20
+ BASE_URL=" https://api.adoptopenjdk.net/v3/assets/feature_releases/15/ga "
21
+ ISSUE_TITLE=" Upgrade Java 15 version in CI image"
22
22
;;
23
23
* )
24
24
echo $" Unknown java version"
25
25
exit 1;
26
26
esac
27
27
28
- response=$( curl -s ${BASE_URL} \/ ga \ ? architecture\= x64\& heap_size\= normal\& image_type\= jdk\& jvm_impl\= hotspot\& os\= linux\& sort_order\= DESC\& vendor\= adoptopenjdk )
28
+ response=$( curl -s ${BASE_URL} \? architecture\= x64\& heap_size\= normal\& image_type\= jdk\& jvm_impl\= hotspot\& os\= linux\& sort_order\= DESC\& vendor\= adoptopenjdk )
29
29
latest=$( jq -r ' .[0].binaries[0].package.link' <<< " $response" )
30
30
if [[ ${latest} = " null" || ${latest} = " " ]]; then
31
31
echo " Could not parse JDK response: $response "
Original file line number Diff line number Diff line change @@ -29,7 +29,13 @@ public class HandlerFunctionDescription {
29
29
private final String className ;
30
30
31
31
HandlerFunctionDescription (HandlerFunction <?> handlerFunction ) {
32
- this .className = handlerFunction .getClass ().getCanonicalName ();
32
+ this .className = getHandlerFunctionClassName (handlerFunction );
33
+ }
34
+
35
+ private static String getHandlerFunctionClassName (HandlerFunction <?> handlerFunction ) {
36
+ Class <?> functionClass = handlerFunction .getClass ();
37
+ String canonicalName = functionClass .getCanonicalName ();
38
+ return (canonicalName != null ) ? canonicalName : functionClass .getName ();
33
39
}
34
40
35
41
public String getClassName () {
You can’t perform that action at this time.
0 commit comments