Skip to content

Commit 2cf2162

Browse files
committedDec 22, 2018
#963 remove requirement for serial version UID
1 parent 52495ce commit 2cf2162

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
 

‎qulice-pmd/src/main/resources/com/qulice/pmd/ruleset.xml

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
<exclude name="DataflowAnomalyAnalysis"/>
6969
<exclude name="AvoidLiteralsInIfCondition"/>
7070
<exclude name="BeanMembersShouldSerialize"/>
71+
<exclude name="MissingSerialVersionUID"/>
7172
</rule>
7273
<rule ref="category/java/performance.xml">
7374
<exclude name="AvoidInstantiatingObjectsInLoops"/>

‎qulice-pmd/src/test/java/com/qulice/pmd/PmdDisabledRulesTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public static Collection<String[]> parameters() {
7070
{"DefaultPackage"},
7171
{"ExcessiveImports"},
7272
{"PositionLiteralsFirstInComparisons"},
73+
{"MissingSerialVersionUID"},
7374
}
7475
);
7576
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package foo;
2+
3+
public final class MissingSerialVersionUID extends Exception {
4+
5+
public boolean method(String other) {
6+
return other.equals("True");
7+
}
8+
}

0 commit comments

Comments
 (0)
Please sign in to comment.