-
Notifications
You must be signed in to change notification settings - Fork 753
Comparing changes
Open a pull request
base repository: google/error-prone
base: v2.29.2
head repository: google/error-prone
compare: v2.30.0
Commits on Jul 19, 2024
-
Treat all
com.google.protobuf.ProtocolMessageEnum
s as immutablePiperOrigin-RevId: 653806506
Configuration menu - View commit details
-
Copy full SHA for 8e1bd10 - Browse repository at this point
Copy the full SHA 8e1bd10View commit details -
Add
TraditionalSwitchExpression.md
.PiperOrigin-RevId: 654138846
Configuration menu - View commit details
-
Copy full SHA for 053f721 - Browse repository at this point
Copy the full SHA 053f721View commit details
Commits on Jul 22, 2024
-
[Test-only change] Use TEXT_MATCH mode for StatementSwitchToExpressio…
…nSwitch direct conversion unit tests involving comment processing PiperOrigin-RevId: 654746861
Configuration menu - View commit details
-
Copy full SHA for df5eec2 - Browse repository at this point
Copy the full SHA df5eec2View commit details -
StatementSwitchToExpressionSwitch: Enhance code comment handling for …
…assignment switch and return switch, including retaining comments after the final statement in a case. PiperOrigin-RevId: 654761204
Configuration menu - View commit details
-
Copy full SHA for 94f5eb0 - Browse repository at this point
Copy the full SHA 94f5eb0View commit details -
Flag
@OtherNullnessAnnotation void
as we already do@Nullable void
.We got this wrong with `@CheckForNull` in one file in Guava (unknown commit). PiperOrigin-RevId: 654797514
Configuration menu - View commit details
-
Copy full SHA for dd94f4a - Browse repository at this point
Copy the full SHA dd94f4aView commit details -
#4488 PiperOrigin-RevId: 654844314
Configuration menu - View commit details
-
Copy full SHA for 62c454e - Browse repository at this point
Copy the full SHA 62c454eView commit details -
Ban more class loading primitives
No new violations are found after TGP. PiperOrigin-RevId: 654858529
Configuration menu - View commit details
-
Copy full SHA for 868626b - Browse repository at this point
Copy the full SHA 868626bView commit details
Commits on Jul 23, 2024
-
Remove unused dependency on guice
See 1c3c09f PiperOrigin-RevId: 655210727
Configuration menu - View commit details
-
Copy full SHA for fefeef9 - Browse repository at this point
Copy the full SHA fefeef9View commit details -
Add kotlin
Result
to WellKnownThreadSafety -[]`Result<T>` is an immutable wrapper over a `T` in the case of success, or `Throwable` in the case of an error. Kotlin docs - https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-result/ TAP train - [] PiperOrigin-RevId: 655230537
Configuration menu - View commit details
-
Copy full SHA for f97736d - Browse repository at this point
Copy the full SHA f97736dView commit details -
Disable implicit annotation processing in some tests
Fixes ``` Note: Annotation processing is enabled because one or more processors were found on the class path. A future release of javac may disable annotation processing unless at least one processor is specified by name (-processor), or a search path is specified (--processor-path, --processor-module-path), or annotation processing is enabled explicitly (-proc:only, -proc:full). Use -Xlint:-options to suppress this message. Use -proc:none to disable annotation processing. ``` PiperOrigin-RevId: 655236694
Configuration menu - View commit details
-
Copy full SHA for 9f4b7d0 - Browse repository at this point
Copy the full SHA 9f4b7d0View commit details -
Add DefaultLocale check to discourage use of the default locale
Configuration menu - View commit details
-
Copy full SHA for 996d09c - Browse repository at this point
Copy the full SHA 996d09cView commit details -
Add more tests for arrow and multi-case switch statements in MissingC…
…asesInEnumSwitchTest PiperOrigin-RevId: 655288858
Configuration menu - View commit details
-
Copy full SHA for 7b58ec9 - Browse repository at this point
Copy the full SHA 7b58ec9View commit details -
Handle multiple labels in UnnecessaryDefaultInEnumSwitch
Fixes #4443 PiperOrigin-RevId: 655300423
Configuration menu - View commit details
-
Copy full SHA for 0ec88c0 - Browse repository at this point
Copy the full SHA 0ec88c0View commit details
Commits on Jul 24, 2024
-
Disallow unnecessary
break
statements at the end of the body of a `……->` switch statement Startblock: * unknown commit is submitted PiperOrigin-RevId: 655602239
Configuration menu - View commit details
-
Copy full SHA for fc339e0 - Browse repository at this point
Copy the full SHA fc339e0View commit details -
Improve fix to prepare for a change to the return type of `JCCompilat…
…ionUnit#getImports` in an upcoming JDK version Follow-up to 9e0fbf7 This allows the code to work if it's compiled and executed against different javac versions. PiperOrigin-RevId: 655688755
Configuration menu - View commit details
-
Copy full SHA for a94279c - Browse repository at this point
Copy the full SHA a94279cView commit details -
Migrate Error Prone to use JSpecify nullness annotations
PiperOrigin-RevId: 655693769
Configuration menu - View commit details
-
Copy full SHA for bfe69f8 - Browse repository at this point
Copy the full SHA bfe69f8View commit details
Commits on Jul 26, 2024
-
Demonstrate that
NullableVoid
already handles@Nullable
on constr……uctors. PiperOrigin-RevId: 656164310
Configuration menu - View commit details
-
Copy full SHA for 3ad4e45 - Browse repository at this point
Copy the full SHA 3ad4e45View commit details -
Verify that UnnecessaryBoxedVariable handles AutoValue factories
PiperOrigin-RevId: 656498912
Configuration menu - View commit details
-
Copy full SHA for 40f5b21 - Browse repository at this point
Copy the full SHA 40f5b21View commit details
Commits on Jul 27, 2024
-
Make
ASTHelpers.getSymbol(Tree)
delegate to the `MemberReferenceTre……e` overload. This may or may not actually change behavior: The handling that I added in e5a6d0d was definitely important for `MethodInvocationTree`, since it affects behavior when code uses static imports. However, static imports can't be used with a `MemberReferenceTree`, so the change might not be important there. Still, as I noted in that previous CL's description, I get the impression that this might also help with cases like `someSerializable.equals`—and presumably `someSerializable::equals`, too. Anyway, this change seems clearly like either an improvement in behavior or a no-op that makes the implementation more consistent, so either way feels like a win. PiperOrigin-RevId: 656731744
Configuration menu - View commit details
-
Copy full SHA for 9884911 - Browse repository at this point
Copy the full SHA 9884911View commit details -
PiperOrigin-RevId: 656794179
Configuration menu - View commit details
-
Copy full SHA for 8e39783 - Browse repository at this point
Copy the full SHA 8e39783View commit details
Commits on Jul 29, 2024
-
Copy a key line from the
@Rule
Javadoc to[]https://junit.org/junit4/javadoc/4.13/org/junit/Rule.html#order() PiperOrigin-RevId: 657355882
Configuration menu - View commit details
-
Copy full SHA for dbfd4a6 - Browse repository at this point
Copy the full SHA dbfd4a6View commit details
Commits on Jul 30, 2024
-
Recognize more unnecessary breaks in UnnecessaryBreakInSwitch
PiperOrigin-RevId: 657598108
Configuration menu - View commit details
-
Copy full SHA for 198903c - Browse repository at this point
Copy the full SHA 198903cView commit details -
Recognize AutoValue extension generated code in ClassInitializationDe…
…adlock and AutoValueSubclassLeaked PiperOrigin-RevId: 657606731
Configuration menu - View commit details
-
Copy full SHA for 5413aa5 - Browse repository at this point
Copy the full SHA 5413aa5View commit details -
Improve handling of AutoValue extensions in AutoValueSubclassLeaked
Follow-up to 5413aa5 Don't rely on the extension generated code having `@Generated` annotations. A number of extensions omit the annotation, and AutoValueSubclassLeaked relies on the generated annotation to recognize generated code, so after 5413aa5 it was reporting errors for references from extensions. PiperOrigin-RevId: 657715233
Configuration menu - View commit details
-
Copy full SHA for ca7b569 - Browse repository at this point
Copy the full SHA ca7b569View commit details
Commits on Jul 31, 2024
-
Confirm that https://errorprone.info/bugpattern/CannotMockFinalClass …
…covers records. Relevant to #4384. PiperOrigin-RevId: 657972168
Configuration menu - View commit details
-
Copy full SHA for f56c8b2 - Browse repository at this point
Copy the full SHA f56c8b2View commit details -
PiperOrigin-RevId: 658145394
Configuration menu - View commit details
-
Copy full SHA for ba7e3b3 - Browse repository at this point
Copy the full SHA ba7e3b3View commit details
Commits on Aug 1, 2024
-
Allow any package's @CanIgnoreReturnValue to suppress CanIgnoreReturn…
…ValueSuggester This brings it into alignment with the CheckReturnValue checker logic. PiperOrigin-RevId: 658248419
Configuration menu - View commit details
-
Copy full SHA for 6ff6f35 - Browse repository at this point
Copy the full SHA 6ff6f35View commit details -
Don't fire
CanIgnoreReturnValueSuggester
if the function is directl……y annotated w/ `@CheckReturnValue` (from any package). #checkreturnvalue PiperOrigin-RevId: 658409445
Configuration menu - View commit details
-
Copy full SHA for 1e0e03c - Browse repository at this point
Copy the full SHA 1e0e03cView commit details -
Minor documentation tweak in
SuggestedFix.Builder
.PiperOrigin-RevId: 658434707
Configuration menu - View commit details
-
Copy full SHA for 4ec7faa - Browse repository at this point
Copy the full SHA 4ec7faaView commit details -
Add Error Prone check for unnecessary boxed types in AutoValue classes.
This check will warn users when they are using boxed types in their AutoValue classes that are not Nullable. This is because boxed types are not necessary in AutoValue classes, and they can actually be harmful because they can cause unnecessary boxing and unboxing. Clean up reference: unknown commit This check is currently enabled as a warning, but it can be made into an error in the future. PiperOrigin-RevId: 658493053
Configuration menu - View commit details
-
Copy full SHA for fe07236 - Browse repository at this point
Copy the full SHA fe07236View commit details -
Omit some unnecessary break statements when translating to
->
switchesPiperOrigin-RevId: 658578239
Configuration menu - View commit details
-
Copy full SHA for d887307 - Browse repository at this point
Copy the full SHA d887307View commit details -
toBuilder() was identified as a getter leading to not correctly identifying the case where all the getters are prefixed. PiperOrigin-RevId: 658585727
Configuration menu - View commit details
-
Copy full SHA for ccd3ca6 - Browse repository at this point
Copy the full SHA ccd3ca6View commit details
Commits on Aug 2, 2024
-
Handle
var
in MustBeClosedCheckerFixes #4164 PiperOrigin-RevId: 658802144
Configuration menu - View commit details
-
Copy full SHA for ac7ebf5 - Browse repository at this point
Copy the full SHA ac7ebf5View commit details -
Remove
// fall out
comments, which are sometimes used to document a……n empty `default:` statement group PiperOrigin-RevId: 658827224
Configuration menu - View commit details
-
Copy full SHA for 474554a - Browse repository at this point
Copy the full SHA 474554aView commit details -
Convert some simple blocks to return switches using
yield
PiperOrigin-RevId: 658843015
Configuration menu - View commit details
-
Copy full SHA for 86df5cf - Browse repository at this point
Copy the full SHA 86df5cfView commit details
Commits on Aug 6, 2024
-
Add ability to suppress warning for the entire AutoValue class
PiperOrigin-RevId: 660029479
Configuration menu - View commit details
-
Copy full SHA for a706e8d - Browse repository at this point
Copy the full SHA a706e8dView commit details -
Do not update getters that override methods from a superclass.
The change would be incorrect as the modified method is no longer matching the signature of the method in the superclass. PiperOrigin-RevId: 660049434
Configuration menu - View commit details
-
Copy full SHA for ba8f9a2 - Browse repository at this point
Copy the full SHA ba8f9a2View commit details
Commits on Aug 8, 2024
-
Don't fire the
CanIgnoreReturnValueSuggester
for `dagger.producers.……ProductionComponent.Builder` and `dagger.producers.ProductionSubcomponent.Builder`. #checkreturnvalue PiperOrigin-RevId: 660826447
Configuration menu - View commit details
-
Copy full SHA for af175b0 - Browse repository at this point
Copy the full SHA af175b0View commit details
Commits on Aug 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5ada179 - Browse repository at this point
Copy the full SHA 5ada179View commit details
There are no files selected for viewing