Skip to content

Commit 9850eea

Browse files
committed
SpotBugs
1 parent 8508042 commit 9850eea

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
<artifactId>spotbugs-maven-plugin</artifactId>
183183
<version>4.7.0.0</version>
184184
<configuration>
185+
<excludeFilterFile>spotbugs-filter.xml</excludeFilterFile>
185186
<plugins>
186187
<plugin>
187188
<groupId>com.h3xstream.findsecbugs</groupId>

spotbugs-filter.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<FindBugsFilter>
3+
<Match>
4+
<Package name="org.leplus.antlr4"/>
5+
</Match>
6+
</FindBugsFilter>

src/main/java/org/leplus/sql/ConstantListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.leplus.sql;
22

33
import java.util.ArrayList;
4+
import java.util.Collections;
45
import java.util.List;
56

67
import org.leplus.antlr4.PLSQLBaseListener;
@@ -28,7 +29,7 @@ public void enterConstant(final ConstantContext ctx) {
2829
}
2930

3031
public List<Result> getResults() {
31-
return results;
32+
return Collections.unmodifiableList(results);
3233
}
3334

3435
}

0 commit comments

Comments
 (0)