google/error-prone
Catch common Java mistakes as compile-time errors
https://skillcdn.ai/gh/google/error-proneConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
master - Commit
1a82c75 - License
Apache-2.0
Explore this repository
Searches the original text of skills and documents; display translations are not searched.
Documents
- EqualsBrokenForNull.mdObject.equals() contract states that "For any non-null reference value x, x.equals(null) should return false". Thus all classes implementing equals() function should gracefully handle null as an argu…docs/bugpattern/nullness/EqualsBrokenForNull.md
- NullNeedsCastForVarargs.mdNote: The Truth methods covered by this check still accept a literal null in Truth 1.4.5, but we expect to change that in a forthcoming version.docs/bugpattern/nullness/NullNeedsCastForVarargs.md
- RedundantNullCheck.mdA null check (e.g., x == null or x != null) is redundant if it is performed on an expression that is statically determined to be non-null according to language semantics or nullness annotations. This…docs/bugpattern/nullness/RedundantNullCheck.md
- RequireNonNullRefactoring.mdConsider using requireNonNull(value) which is shorter and more readable thandocs/bugpattern/nullness/RequireNonNullRefactoring.md
- UnnecessaryCheckNotNull.mdThere are various libraries available to check if a variable is null or not. Most notable ones are :docs/bugpattern/nullness/UnnecessaryCheckNotNull.md