Skip to content

Commit f428da2

Browse files
author
Vladimir Kotal
committed
disable fallthrough warning for all since autogen code uses it
1 parent 03de9bd commit f428da2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/search/QueryBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ private String getQueryText(String field) {
413413
* @param query the query string to escape
414414
* @return the escaped query string
415415
*/
416+
@SuppressWarnings("fallthrough")
416417
private String escapeQueryString(String field, String query) {
417418
switch (field) {
418419
case FULL:

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
204204
<arg>-Xlint:-serial</arg>
205205
<!-- meant for autogenerated sources -->
206206
<arg>-Xlint:-auxiliaryclass</arg>
207+
<arg>-Xlint:-fallthrough</arg>
207208
</compilerArgs>
208209
</configuration>
209210
<version>3.6.1</version>

0 commit comments

Comments
 (0)