Browse Source

Merge branch '3.5.x'

Closes gh-48306
pull/48312/head
Stéphane Nicoll 3 weeks ago
parent
commit
8eb90644a6
  1. 2
      cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java
  2. 2
      core/spring-boot-test/src/main/java/org/springframework/boot/test/context/AnnotationsPropertySource.java

2
cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java

@ -244,7 +244,7 @@ public class CommandRunner implements Iterable<Command> { @@ -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;

2
core/spring-boot-test/src/main/java/org/springframework/boot/test/context/AnnotationsPropertySource.java

@ -138,7 +138,7 @@ class AnnotationsPropertySource extends EnumerablePropertySource<Class<?>> { @@ -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 {

Loading…
Cancel
Save