Skip to content

Commit 8eb9064

Browse files
committed
Merge branch '3.5.x'
Closes gh-48306
2 parents b5703ea + 8881d38 commit 8eb9064

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private int handleError(boolean debug, Exception ex) {
244244
if (ex instanceof CommandException commandException) {
245245
options = commandException.getOptions();
246246
if (options.contains(CommandException.Option.RETHROW)) {
247-
throw (CommandException) ex;
247+
throw commandException;
248248
}
249249
}
250250
boolean couldNotShowMessage = false;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private void putProperties(String name, Skip defaultSkip, Object value, Map<Stri
138138
}
139139
else if (value instanceof MergedAnnotation<?> annotation) {
140140
for (Method attribute : annotation.getType().getDeclaredMethods()) {
141-
collectProperties(name, defaultSkip, (MergedAnnotation<?>) value, attribute, properties);
141+
collectProperties(name, defaultSkip, annotation, attribute, properties);
142142
}
143143
}
144144
else {

0 commit comments

Comments
 (0)