File tree 3 files changed +22
-0
lines changed
main/resources/com/qulice/pmd
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 54
54
<exclude name =" CommentDefaultAccessModifier" />
55
55
<exclude name =" DefaultPackage" />
56
56
<exclude name =" LinguisticNaming" />
57
+ <exclude name =" CallSuperInConstructor" />
57
58
</rule >
58
59
<rule ref =" category/java/design.xml" >
59
60
<exclude name =" LoosePackageCoupling" />
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ public static Collection<String[]> parameters() {
71
71
{"ExcessiveImports" },
72
72
{"PositionLiteralsFirstInComparisons" },
73
73
{"MissingSerialVersionUID" },
74
+ {"CallSuperInConstructor" },
74
75
}
75
76
);
76
77
}
Original file line number Diff line number Diff line change
1
+ package foo ;
2
+
3
+ public final class CallSuperInConstructor {
4
+
5
+ private final int number ;
6
+ private final int other ;
7
+
8
+ public CallSuperInConstructor (final int parameter ) {
9
+ this (parameter , parameter * 2 );
10
+ }
11
+
12
+ public CallSuperInConstructor (final int parameter , final int other ) {
13
+ this .number = parameter ;
14
+ this .another = other ;
15
+ }
16
+
17
+ public int num () {
18
+ return number + another ;
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments