Merge branch '3.5.x'

Closes gh-48306
This commit is contained in:
Stéphane Nicoll
2025-11-26 16:02:42 +01:00
2 changed files with 2 additions and 2 deletions
@@ -244,7 +244,7 @@ public class CommandRunner implements Iterable<Command> {
if (ex instanceof CommandException commandException) {
options = commandException.getOptions();
if (options.contains(CommandException.Option.RETHROW)) {
throw (CommandException) ex;
throw commandException;
}
}
boolean couldNotShowMessage = false;
@@ -138,7 +138,7 @@ class AnnotationsPropertySource extends EnumerablePropertySource<Class<?>> {
}
else if (value instanceof MergedAnnotation<?> annotation) {
for (Method attribute : annotation.getType().getDeclaredMethods()) {
collectProperties(name, defaultSkip, (MergedAnnotation<?>) value, attribute, properties);
collectProperties(name, defaultSkip, annotation, attribute, properties);
}
}
else {