From f56c18237498253377a491d370d46bceb4b69955 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Sat, 19 Mar 2022 16:35:17 +0100 Subject: [PATCH] Don't fail `readResolve` check if there is no `readResolve` implemented. --- src/test/java/edu/hm/hafner/util/ArchitectureRules.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/edu/hm/hafner/util/ArchitectureRules.java b/src/test/java/edu/hm/hafner/util/ArchitectureRules.java index cc79ded8..1da9bc56 100644 --- a/src/test/java/edu/hm/hafner/util/ArchitectureRules.java +++ b/src/test/java/edu/hm/hafner/util/ArchitectureRules.java @@ -89,7 +89,7 @@ public final class ArchitectureRules { public static final ArchRule READ_RESOLVE_SHOULD_BE_PROTECTED = methods().that().haveName("readResolve").and().haveRawReturnType(Object.class) .should().beDeclaredInClassesThat().implement(Serializable.class) - .andShould().beProtected(); + .andShould().beProtected().allowEmptyShould(true); private ArchitectureRules() { // prevents instantiation