Browse Source

Merge branch '3.4.x' into 3.5.x

Closes gh-48305
3.5.x
Stéphane Nicoll 3 weeks ago
parent
commit
8881d38202
  1. 2
      spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/properties/AnnotationsPropertySource.java
  2. 2
      spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java

2
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/properties/AnnotationsPropertySource.java

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

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

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

Loading…
Cancel
Save