Skip to content

Commit d3fada8

Browse files
committed
Fix
1 parent 8d7e8b6 commit d3fada8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

architecture-rules/src/main/java/com/sap/ai/sdk/architecture/ArchRuleInheritGeneratedModel.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ static ArchRule create(@Nonnull final Suppressions suppressions) {
4141
val msg2 = "not configured in `suppressions.inheritModel`";
4242
val notAllowlisted = describe(msg2, (JavaClass cl) -> !allowed.contains(cl.getFullName()));
4343

44-
return classes().that(notInModelPackage).and(notAllowlisted).should(notInheritFromModelTypes());
44+
return classes()
45+
.that(notInModelPackage)
46+
.and(notAllowlisted)
47+
.should(notInheritFromModelTypes())
48+
.allowEmptyShould(true);
4549
}
4650

4751
private static ArchCondition<JavaClass> notInheritFromModelTypes() {

0 commit comments

Comments
 (0)