Skip to content

Commit 991afe0

Browse files
committed
Fix formatting for @⁠DisabledInAotMode error messages
See spring-projectsgh-30834
1 parent 1281f03 commit 991afe0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,15 @@ private MultiValueMap<ClassName, Class<?>> processAheadOfTime(
258258
if (numDisabled != testClasses.size()) {
259259
if (this.failOnError) {
260260
throw new TestContextAotException("""
261-
All test classes that share an ApplicationContext must be annotated
262-
with @DisabledInAotMode if one of them is: """ + classNames(testClasses));
261+
All test classes that share an ApplicationContext must be annotated \
262+
with @DisabledInAotMode if one of them is: \
263+
""" + classNames(testClasses));
263264
}
264265
else if (logger.isWarnEnabled()) {
265266
logger.warn("""
266-
All test classes that share an ApplicationContext must be annotated
267-
with @DisabledInAotMode if one of them is: """ + classNames(testClasses));
267+
All test classes that share an ApplicationContext must be annotated \
268+
with @DisabledInAotMode if one of them is: \
269+
""" + classNames(testClasses));
268270
}
269271
}
270272
if (logger.isInfoEnabled()) {

0 commit comments

Comments
 (0)