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

errorprone version 2.15.0 For binary logical operations with multiple decrements on an array index like this ```java if (((sieveArray[x--] | sieveArray[x--] | sieveArray[x--] | sieveArray[x--]) & 0x80) != 0) {...

Code like this should be allowed for `DirectInvocationOnMock`: ```java import static org.mockito.Mockito.mock; import static org.mockito.BDDMockito.given; @Test void test() { Caller caller = mock(Caller.class); given(caller.call()).willReturn(1); } ```

``` public class ErrorPronePlugins { public static ScannerSupplier loadPlugins(ScannerSupplier scannerSupplier, Context context) { JavaFileManager fileManager = context.get(JavaFileManager.class); // Unlike in annotation processor discovery, we never search CLASS_PATH if // ANNOTATION_PROCESSOR_PATH...

specail jar struct as below : ![image](https://user-images.githubusercontent.com/6429799/184810191-f4198fe3-dbea-46a8-bb04-23053c5798f4.png) com.sun.tools.javac.file.JavacFileManager.ArchiveContainer issue code as below: this map has same object with new RelativeDirectory(relativePath). ``` while(var5.hasNext()) { final Path root = (Path)var5.next(); Files.walkFileTree(root, EnumSet.noneOf(FileVisitOption.class),...

Bumps [maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.3.1 to 3.4.1. Release notes Sourced from maven-javadoc-plugin's releases. 3.4.1 [MJAVADOC-723] - Upgrade Maven Reporting API to 3.1.1/Complete with Maven Reporting Impl 3.2.0 (#158) @​pzygielo Skip Java...

dependencies

The following code leveraging the sealed interface + record pattern (to make sum types) should not violate the [InterfaceWithOnlyStatics](https://errorprone.info/bugpattern/InterfaceWithOnlyStatics) rule as the interface is `sealed`: ```java public sealed interface Sum...

In error-prone 2.11.0 I've started getting the following error when building within IntelliJ ``` Foo.java:17:2 java: [UnicodeInCode] Avoid using non-ASCII Unicode characters outside of comments and literals, as they can...

Bumps [maven-gpg-plugin](https://github.com/apache/maven-gpg-plugin) from 1.6 to 3.0.1. Commits 5255080 [maven-release-plugin] prepare release maven-gpg-plugin-3.0.1 e4dc062 [MGPG-79] fix handling of external pinentry programs in case the passphrase i... 5902b2b deps: update JUnit 12fbd63...

dependencies

Bumps [assertj-core](https://github.com/assertj/assertj-core) from 3.22.0 to 3.23.1. Commits 0256688 [maven-release-plugin] prepare release assertj-core-3.23.1 6529933 Downgrade junit-jupiter from 5.9.0-M1 to 5.8.2 d9cd2da [maven-release-plugin] prepare for next development iteration 6f19754 [maven-release-plugin] prepare release...

dependencies

Bumps [caffeine](https://github.com/ben-manes/caffeine) from 3.0.5 to 3.1.1. Release notes Sourced from caffeine's releases. 3.1.1 Fixed refreshAfterWrite when racing with a removed entry (#715) Fixed gradle module metadata variant selection (#716) 3.1.0...

dependencies