Skip to content

Commit 059cb4f

Browse files
SirCotareclaude
andcommitted
use a multiline string for the empty-import message
Review feedback on #4: text block instead of concatenation. The message now reads over two lines, which also matches how the other rules format multi-line output. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 3ad7191 commit 059cb4f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/main/java/it/aboutbits/archunit/toolbox/rule/base/AnalyzedPackagesMustContainClassesArchRule.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ public interface AnalyzedPackagesMustContainClassesArchRule {
1818
@ArchTest
1919
default void analyzed_packages_must_contain_classes(JavaClasses classes) {
2020
if (classes.isEmpty()) {
21-
throw new AssertionError(
22-
"No classes were imported, so none of the architecture rules checked anything. "
23-
+ "Verify the packages passed to @AnalyzeClasses."
24-
);
21+
throw new AssertionError("""
22+
No classes were imported, so none of the architecture rules checked anything.
23+
Verify the packages passed to @AnalyzeClasses.""");
2524
}
2625
}
2726
}

0 commit comments

Comments
 (0)