Skip to content

Commit e702d28

Browse files
committed
Add missing @OVERRIDES and enforce this rule
1 parent 58bbb44 commit e702d28

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

pmd-rules.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
<exclude name="WhileLoopWithLiteralBoolean" />
1919
<exclude name="AvoidReassigningParameters" />
2020
<exclude name="UnusedFormalParameter" />
21+
<exclude name="PositionLiteralsFirstInComparisons" />
22+
<exclude name="ForLoopCanBeForeach" />
23+
<exclude name="ArrayIsStoredDirectly" />
24+
<exclude name="MethodReturnsInternalArray" />
25+
<exclude name="CheckResultSet" />
26+
<exclude name="UseVarargs" />
27+
<exclude name="UseTryWithResources" />
28+
<exclude name="AvoidReassigningLoopVariables" />
29+
<exclude name="AbstractClassWithoutAbstractMethod" />
30+
<priority>2</priority>
2131
</rule>
2232

2333

src/sqlancer/postgres/ast/PostgresBinaryArithmeticOperation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ private static PostgresConstant applyBitOperation(PostgresConstant left, Postgre
7575
this.textRepresentation = textRepresentation;
7676
}
7777

78+
@Override
7879
public String getTextRepresentation() {
7980
return textRepresentation;
8081
}

src/sqlancer/postgres/ast/PostgresBinaryComparisonOperation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public PostgresConstant getExpectedValue(PostgresConstant leftVal, PostgresConst
9999

100100
private final String textRepresentation;
101101

102+
@Override
102103
public String getTextRepresentation() {
103104
return textRepresentation;
104105
}

0 commit comments

Comments
 (0)