Skip to content

Commit

Permalink
Don't fail readResolve check if there is no readResolve implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Mar 19, 2022
1 parent ebb388b commit f56c182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/edu/hm/hafner/util/ArchitectureRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f56c182

Please sign in to comment.