We are pleased to announce the release of Error Prone 2.0.9.
New checks:
- [FragmentNotInstantiable]: Subclasses of Fragment must be instantiable via Class#newInstance()
- [DaggerProvidesNull]: Dagger @Provides methods may not return null unless annotated with @Nullable
- [StaticGuardedByInstance]: Writes to static fields should not be guarded by instance locks
- [IterableAndIterator]: Classes should not implement both Iterable and Iterator
Other notable changes:
- Fix NPE in GuardedByBinder
- [CheckReturnValue]: recognize in-order mockito mocks
- [TryFailThrowable] now runs on catch() blocks for Error, AssertionError, and AssertionFailedError
Fixes issues: #226, #387, #393