Skip to content

Commit

Permalink
Simplify implementation of SpelNodeImpl.loadClassForExitDescriptor(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed May 14, 2024
1 parent f7a6a7b commit 716e7de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ private static Class<?> loadClassForExitDescriptor(@Nullable String exitDescript
return null;
}
String typeDescriptor = exitDescriptor;
if (typeDescriptor.startsWith("[") || typeDescriptor.startsWith("L")) {
// If the SpEL exitDescriptor is not for a primitive (single character),
// ASM expects the typeDescriptor to end with a ';'.
if (typeDescriptor.length() > 1) {
typeDescriptor += ";";
}
String className = Type.getType(typeDescriptor).getClassName();
Expand Down

0 comments on commit 716e7de

Please sign in to comment.