Skip to content

Error Prone 2.3.1

Compare
Choose a tag to compare
@eaftan eaftan released this 20 Apr 22:36
· 3326 commits to master since this release

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