Skip to content

Conversation

@regisd
Copy link
Member

@regisd regisd commented Dec 12, 2019

No description provided.

regisd added 13 commits December 8, 2019 21:50
Follow-up of jflex-de#660 that reveals some jUnit assertions where inverting expected and actual.
Make MacroException a checked exception
Except for cup generated code
The problem was with new Integer(). Replaced by Integer.valueOf().
…, DeprecatedThreadMethods, IncrementInForLoopAndHeader, JdkObsolete, MissingOverride, FieldCanBeFinal, RemoveUnusedImports
Note that LexScan.java is produced with MissingOverride. I fixed it, and when we bootstrap with 1.8.0, we should be able to check the generated classes.
@regisd regisd requested a review from lsf37 as a code owner December 12, 2019 21:57
@regisd regisd added the code quality Code health and clean-up label Dec 12, 2019
@regisd regisd self-assigned this Dec 12, 2019
@regisd regisd merged commit b34361f into jflex-de:master Dec 14, 2019
@regisd regisd deleted the error_prone branch December 14, 2019 11:08
regisd pushed a commit that referenced this pull request Dec 14, 2019
commit b34361f
Author:     Régis Décamps <[email protected]>
AuthorDate: Sat Dec 14 12:08:16 2019 +0100
Commit:     GitHub <[email protected]>
CommitDate: Sat Dec 14 12:08:16 2019 +0100

    Fix error-prone violations (#683)

    * Increase many error-prone checks from WARN to ERROR

    * Exclude third_party and generated code from checks

    * Fix error-prone TruthConstantAsserts

      Follow-up of #660 that reveals some jUnit assertions where inverting expected and actual.

    * Fix error-prone AssertionFailureIgnored

    * Fix error-prone ThrowsUncheckedException in initthrow_eol

    * Fix error-prone ThrowsUncheckedException

    * Fix error-prone ThrowsUncheckedException

      Make MacroException a checked exception

    * Fix error-prone ThrowsUncheckedException

    * Fix error-prone ClassCanBeStatic

    * Fix error-prone BoxedPrimitiveConstructor

      The problem was with new Integer(). Replaced by Integer.valueOf().

    * Show error-prone warnings for CatchAndPrintStackTrace, DefaultCharSet, DeprecatedThreadMethods, IncrementInForLoopAndHeader, JdkObsolete, MissingOverride, FieldCanBeFinal, RemoveUnusedImports

    * expandMacro can throw a MacroException

    * Declare that IntCharSet implements Comparable<IntCharSet>

      The compare() method already exists.

    * Extract IntCharSetComparator

Updated from target/jflex-parent-1.8.0-SNAPSHOT-sources.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality Code health and clean-up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant