Error Prone v2.3.1 Release Notes

Release Date: 2018-04-20 // almost 6 years ago
  • 🆕 New checks:

    • [AssertThrowsMultipleStatements] The lambda passed to assertThows should contain exactly one statement
    • [FieldCanBeFinal] This field is only assigned during initialization; consider making it final
    • [ObjectToString] Calling toString on Objects that don't override toString() doesn't provide useful information

    Other changes:

    • 👉 Make ParcelableCreator check an ERROR
    • OrphanedFormatString detects string literals correctly passed to @FormatMethod methods

    🛠 Fixes issues: #996, #999, #1001, #1004