jflex
jflex copied to clipboard
Re-enable check against FallThrough violations
Fix #222 Fix #239
IIRC, this can only be done with code generated with 1.8.0, hence can only be done in 1.9.0
IIRC, this can only be done with code generated with 1.8.0, hence can only be done in 1.9.0
Makes sense, let's leave this here until 1.8.0 is out.
This seems to be passing even though bazel is still building with 1.7.0. Is this Ok to merge?
I'm afraid not. I tried to update to jflex-1.8 in the corp repository, and I get a number of errors. Sorry that I didn't take the time to investigate.
No worries. Are the errors about fall-through or other jflex 1.8.0 things?
So, the scope of the suppress warning (either via @SuppressWarnings or via javacop -X:ep is only about FallThrough. I'm running a presubmit now.
There are remaining violations on 1.8.0.
jflex/java/jflex/core/LexScan.java:2483: error: [FallThrough] Execution may fall through from the previous case; add a `// fall through` comment before this line if it was deliberate
case 800: break;
^
(see https://errorprone.info/bugpattern/FallThrough)