-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jflex has error-prone fall-through #222
Comments
Note that FallThrough violations have been reduced to warnings. issue #222
The fall-through violations seem to be in generated code -- we could automatically add the |
* Add google error-prone in compile step. Note that FallThrough violations have been reduced to warnings. See issue #222 * Enable error-prone in the java 8 profile only, because the plugin was compiled for java 8, and cannot be used in openjdk7.
Unfortunately, that's not enough. At the end of
The problem is that action.content can contain a |
Right, that's actually what that specific fall through is for: to guard for the cases where there is no |
Curious... why use fall through to a new case instead of adding an explicit |
|
I understand, but I noticed quite a few cases that fall-through to cases that only Sorry for the noise. |
There are still violations |
Work around: Use javac option |
I also believe that JFlex 1.7.0 has fall-through violations that 1.6.1 didn't have. |
jflex/jflex-unicode-maven-plugin/target/generated-sources/jflex/jflex/ArchaicLineBreakScanner.java:702: error: [FallThrough] Execution may fall through from the previous case; add a
// fall through
comment before this line if it was deliberatesee http://errorprone.info/bugpattern/FallThrough
The text was updated successfully, but these errors were encountered: