Skip to content

Commit 05f8946

Browse files
committed
[refactor] Reduce build warnings for 'old' "new Integer(int)" constructs. Copied from exist-core.
1 parent bfb764c commit 05f8946

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

extensions/modules/simpleql/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,25 @@
8181
</execution>
8282
</executions>
8383
</plugin>
84+
<plugin>
85+
<groupId>software.xdev</groupId>
86+
<artifactId>find-and-replace-maven-plugin</artifactId>
87+
<executions>
88+
<execution>
89+
<id>replace-underscore-with-hyphen</id>
90+
<phase>process-sources</phase>
91+
<goals>
92+
<goal>file-contents</goal>
93+
</goals>
94+
<configuration>
95+
<baseDir>target/generated-sources/antlr/org/exist/xquery/modules/simpleql</baseDir>
96+
<fileMask>SimpleQLLexer.java</fileMask>
97+
<findRegex>new Integer</findRegex>
98+
<replaceValue>Integer.valueOf</replaceValue>
99+
</configuration>
100+
</execution>
101+
</executions>
102+
</plugin>
84103
</plugins>
85104
</build>
86105

0 commit comments

Comments
 (0)