error-prone icon indicating copy to clipboard operation
error-prone copied to clipboard

Catch common Java mistakes as compile-time errors

Results 366 error-prone issues
Sort by recently updated
recently updated
newest added

Adding errorprone to a new codebase is currently quite tedious as it complains about all the existing issues. In an ideal world, this means that we should go back and...

### Description of the problem / feature request: A few false-positives for `JdkObsolete`. ### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if...

Partially fixes https://github.com/google/error-prone/issues/2881

Partially fixes https://github.com/google/error-prone/issues/2881

Building Gerrit with Bazel@Head reporting most if ctors annotated with `@AssistedInject` as unused. To reproduce, clone https://gerrit.googlesource.com/gerrit recursively and run with Bazel@HEAD: `$ bazeldev build release`. This related change: [1]...

Consider the following code: ```java public final class RedundantOverrideHashCode { @Override public int hashCode() { return super.hashCode(); } } ``` The `RedundantOverride` bug checker doesn't suggest dropping the redundant `#hashCode`...

Adding errorprone to a new codebase is currently quite tedious as it complains about all the existing issues. In an ideal world, this means that we should go back and...

### Description of the problem / feature request: Class initialization deadlocks are common when a type uses one of its subtypes in a static field or block. ### Feature requests:...

This is in error-prone 2.10.0. If I use a new-style `switch` statement with a `default` case, `MissingDefault` will usually complain that the default case doesn't have a comment. I think...