We are pleased to announce the release of Error Prone 2.0.5.
New checks:
HashtableContains: disallows legacy {ConcurrentHashMap,Hashtable}.contains methods
UnusedAnonymousClass: detects unused anonymous classes
IsInstanceOfClass: prevents passing a Class to Class#isInstance(Object)
NonCanonicalStaticImport: disallows non-canonical static imports
AsyncFunctionReturnsNull: prevents returning null from AsyncFunctions
ClassName: enforces that filenames and top-level class names match
Other changes:
Allow warnings to be suppressed for generated code: added a -XepDisableWarningsInGeneratedCode flag, which if set suppresses warnings from being emitted inside code annotated with @Generated. Error are not affected. (Fixes #329)