diff --git a/_service b/_service index 9b196f9..3650996 100644 --- a/_service +++ b/_service @@ -2,7 +2,7 @@ git https://github.com/google/error-prone.git - v2.11.0 + v2.26.1 v* @PARENT_TAG@ v(.*) diff --git a/error-prone-2.11.0.tar.xz b/error-prone-2.11.0.tar.xz deleted file mode 100644 index 01816ae..0000000 --- a/error-prone-2.11.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35825e370845d517ebfc59e6c6f7be1d2bcd5835a4d1fa0e83fd684d5b84c440 -size 1281292 diff --git a/error-prone-2.26.1.tar.xz b/error-prone-2.26.1.tar.xz new file mode 100644 index 0000000..012ddb2 --- /dev/null +++ b/error-prone-2.26.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7364f736f49eab5251e03aa1d84e1f781c555dcc7be3ebc56c945c65856d5b63 +size 1527300 diff --git a/google-errorprone-annotations-build.xml b/google-errorprone-annotations-build.xml index 3cae61e..7dc344e 100644 --- a/google-errorprone-annotations-build.xml +++ b/google-errorprone-annotations-build.xml @@ -8,9 +8,10 @@ - + - + + @@ -41,6 +42,7 @@ encoding="UTF-8" optimize="false" deprecation="true" + release="${compiler.release}" target="${compiler.target}" verbose="false" fork="false" @@ -48,6 +50,23 @@ + + + + + + + @@ -98,7 +117,20 @@ basedir="${build.outputDir}" excludes="**/package.html"> - + + + + + + + + + + + + + + diff --git a/google-errorprone-annotations.changes b/google-errorprone-annotations.changes index 4972653..802ab58 100644 --- a/google-errorprone-annotations.changes +++ b/google-errorprone-annotations.changes @@ -1,3 +1,269 @@ +------------------------------------------------------------------- +Mon Apr 15 05:13:37 UTC 2024 - Fridrich Strba + +- Upgrade to version 2.26.1 + * Changes of version 2.26.1: + + Fixes the module name: from 'com.google.errorprone.annotation' + to 'com.google.errorprone.annotations'. Amends the OSGi build + not to include 'Automatic-Module-Name' in the MANIFEST.MF for the + 'annotations' project. + * Changes of version 2.26.0: + + The 'annotations' artifact now includes a module-info.java for + Java Platform Module System support. + + Disabled checks passed to -XepPatchChecks are now ignored, + instead of causing a crash. + + New checks: + - SystemConsoleNull: Null-checking System.console() is not a + reliable way to detect if the console is connected to a + terminal. + - EnumOrdinal: Discourage uses of Enum.ordinal() + + Closed issues: + - Add module-info.java #2649 + - 2.19.x: Exception thrown when a disabled check is passed to + -XepPatchChecks #3908 + - Ignore disabled checks passed to -XepPatchChecks #4028 + - feat: add jpms definition for annotations #4311 + - Add the 'compile' goal for 'compile-java9' #4314 + * Changes of version 2.25.0: + + New checks: + - JUnitIncompatibleType: Detects incompatible types passed to + an assertion, similar to TruthIncompatibleType + - RedundantSetterCall: Detects fields set twice in the same + chained expression. Generalization of previous + ProtoRedundantSet check to also handle AutoValue. + + Closed issues: + - Crash in UnnecessaryStringBuilder #4195 + - Fix typos #4224 + - Add support for specifying badEnclosingTypes for BadImport + via flags #4228 + - Some BugPattern docs are missing code examples #4248 + - Remove incorrect statement from BugPattern index doc #4249 + - Do not report NonFinalStaticField findings for fields + modified in @BeforeAll methods #4251 + * Changes of version 2.24.1: + + Add an assertion to try to help debug #4225 + * Changes of version 2.24.0: + + New checks: + - MultipleNullnessAnnotations: Discourage multiple nullness + annotations + - NullableTypeParameter: Discourage nullness annotations on + type parameters + - NullableWildcard: Discourage nullness annotations on + wildcards + - SuperCallToObjectMethod: Generalization of + SuperEqualsIsObjectEquals, now covers hashCode + * Changes of version 2.23.0: + + New checks: DuplicateDateFormatField, NonFinalStaticField, + StringCharset, StringFormatWithLiteral, + SuperEqualsIsObjectEquals + + Bug fixes and improvements: #3897, #4114, #4123 + * Changes of version 2.22.0: + + New checks: + - ClosingStandardOutputStreams: Prevents accidentally closing + System.{out,err} with try-with-resources + - TruthContainsExactlyElementsInUsage: containsExactly is + preferred over containsExactlyElementsIn when creating new + iterables + - UnnecessaryAsync: detects unnecessary use of async + primitives in local (and hence single-threaded) scopes + - ReturnAtTheEndOfVoidFunction: detects unnecessary return + statements at the end of void functions + - MultimapKeys: Suggests using keySet() instead of iterating + over Multimap.keys(), which does not collapse duplicates + + Bug fixes and improvements: + - Don't complain about literal IP addresses in + AddressSelection + - Prevent SuggestedFixes#renameMethod from modifying return + type declaration + - Fix UnusedVariable false positives for private record + parameters + - When running in conservative mode, no longer assume that + implementations of Map.get, etc. return null + - CanIgnoreReturnValueSuggester: Support additional exempting + method annotations + - UnusedVariable: exclude junit5's @RegisterExtension + - Support running all available patch checks + - Upgrade java-diff-utils 4.0 -> 4.12 + - Flag unused Refaster template parameters + - Support @SuppressWarnings("all") + - Prevent Refaster UMemberSelect from matching method + parameters + - MissingDefault : Don't require // fall out comments on + expression switches + - Skip UnnecessaryLambda findings for usages in enhanced for + loops + - Fix bug where nested MissingBraces violations' suggested + fixes result in broken code + - Add support for specifying exemptPrefixes/exemptNames for + UnusedVariable via flags + - UnusedMethod: Added exempting variable annotations + * Changes of version 2.21.1: + + Handle overlapping ranges in suppressedRegions + + Add AddressSelection to discourage APIs that convert a + hostname to a single address + * Changes of version 2.21.0: + + New Checkers: + - AttemptedNegativeZero: Prevents accidental use of -0, which + is the same as 0. The floating-point negative zero is -0.0. + - ICCProfileGetInstance: Warns on uses of + ICC_Profile.getInstance(String), due to JDK-8191622. + - MutableGuiceModule: Fields in Guice modules should be final. + - NullableOptional: Discourages @Nullable-annotated Optionals. + - OverridingMethodInconsistentArgumentNamesChecker: Arguments + of overriding method are inconsistent with overridden + method. + + Fixed issues: + - Avoid MemberName IOOBE on lambda parameters inside + overriding methods #3976 + - Improve LockOnNonEnclosingClassLiteral documentation #3986 + - Security scan reported high CVE for + com.google.guava:guava:31.1-jre #4001 + - Upgrade guava to 32.0.1 #4002 + - Proposal: checker to prevent other checkers from calling + javac methods that changed across JDKs #4026 + - Add support in ASTHelpersSuggestions for getEnclosedElements + #4027 + * Changes of version 2.20.0: + + This release is compatible with early-access builds of JDK 21. + + New Checkers: InlineTrivialConstant, UnnecessaryStringBuilder, + BanClassLoader, DereferenceWithNullBranch, DoNotUseRuleChain, + LockOnNonEnclosingClassLiteral, MissingRefasterAnnotation, + NamedLikeContextualKeyword, NonApiType + + Fixes issues: + - Introduce MissingRefasterAnnotation checker #2232 + - Fix minor typo in URepeated #2243 + - Drop unused constant Template#AUTOBOXING_DEFAULT #2997 + - Introduce command-line flag -XepAllSuggestionsAsWarnings + #3301 + - JDK21 compatibility #3843 + - Add OSGi runtime metadata to error-prone's MANIFEST.MF files + #3903 + - Use EISOP Checker Framework version 3.34.0-eisop1 #3918 + - NotJavadoc pattern does not allow Javadoc on module + declarations #3923 + - ErrorProneInjector incorrectly picks up the no-args + constructor #3931 + - Several high CVEs related to dependency + com.google.protobuf:protobuf-java:3.19.2 #3945 + - Upgrade protobuf-java to 3.19.6 #3946 + * Changes of version 2.19.1: + + This release fixes a binary compatibility issue when running + on JDK 11 + * Changes of version 2.19.0: + + New Checkers: NotJavadoc, StringCaseLocaleUsage, + UnnecessaryTestMethodPrefix + + Fixes issues: + - Exclude inner classes annotated with @Nested from + ClassCanBeStatic rule #956 + - Optimize VisitorState#getSymbolFromName #3504 + - ClassCanBeStatic: Exclude JUnit @Nested classes #3654 + - BadImport: flag static import of newInstance methods #3703 + - Support given for enforcing DirectInvocationOnMock: issue + 3396 #3731 + - Handle yield statement case in ASTHelpers#targetType #3737 + - Should ASTHelpers.getSymbol(Tree) be annotated with + @Nullable? #3760 + - Fix '@' character in javadoc code snippets #3779 + - Replace guava cache with caffeine #3796 + - Discourage APIs locale-dependent APIs like + String.to{Lower,Upper}Case #3809 + - Introduce StringCaseLocaleUsage check #3813 + * Changes of version 2.18.0: + + New Checkers: InjectOnBugCheckers, LabelledBreakTarget, + UnusedLabel, YodaCondition + + Fixes issues: + - @SuppressWarnings("InlineFormatString") doesn't work #1650 + - Refaster: support method invocation type argument inlining + #2706 + - java.lang.IllegalArgumentException: Cannot edit synthetic + AST nodes with specific record constructor #3404 + - Rename class to match filename #3493 + - Optimize VisitorState#getSymbolFromName #3504 + - refactor: refactor bad smell UnusedLabel #3519 + - LambdaFunctionalInterface crash with + IllegalArgumentException when processing an enum constructor + taking a lambda #3579 + - Fix JDK 20-ea build compatibility #3610 + - UngroupedOverloads: ignore generated constructors #3632 + - [errorprone 2.17.0] NPE in + StatementSwitchToExpressionSwitch.analyzeSwitchTree #3638 + - StatementSwitchToExpressionSwitch: handle empty statement + blocks #3645 + - StatementSwitchToExpressionSwitch: only trigger on + compatible target versions #3646 + - Fix Finalize bugpattern to match protected finalize() #3652 + - Make MemoizeConstantVisitorStateLookups check suppressible + #3690 + * Changes of version 2.17.0: + + New Checkers: AvoidObjectArrays, Finalize, IgnoredPureGetter, + ImpossibleNullComparison, MathAbsoluteNegative, NewFileSystem, + StatementSwitchToExpressionSwitch, UnqualifiedYield + + Fixed issues: + - InvalidParam warning on Javadoc for Java record components + #2321 + - UnusedMethod flags @JsonValue methods as unused #3144 + - UnusedMethod: Add more JPA lifecycle annotations or make + annotations configurable #3297 + - UnusedMethod: Support additional exempting method + annotations #3428 + - Have InvalidParam support records #3437 + - Fix -XepDisableAllWarnings flag when passed on its own #3462 + - ASTHelpersSuggestions does not flag call to packge() on + com.sun.tools.javac.code.Symbol.ClassSymbol #3482 + - @SupressWarnings on record compact constructor causes crash + #3494 + * Changes of version 2.16.0: + + New Checkers: ASTHelpersSuggestions, + CanIgnoreReturnValueSuggester, LenientFormatStringValidation, + UnnecessarilyUsedValue + + Fixed issues: + - Avoid using non-ASCII Unicode characters outside of comments + and literals #3092 + - NullPointerException thrown during analysis #3220 + - NPE analysing new style switch statement (2.14.0) #3225 + - ImmutableChecker handles null types #3267 + - Drop pre-JDK 11 logic from Refaster's Inliner class #3441 + * Changes of version 2.15.0: + + New Checkers: BuilderReturnThis, + CanIgnoreReturnValueSuggester, CannotMockFinalClass, + CannotMockFinalMethod, DirectInvocationOnMock, ExtendsObject, + MockNotUsedInProduction, NoCanIgnoreReturnValueOnClasses, + NullArgumentForNonNullParameter, SelfAlwaysReturnsThis, + UnsafeWildcard, UnusedTypeParameter + * Changes of version 2.14.0: + + New checkers: BanJNDI, EmptyTopLevelDeclaration, + ErroneousBitwiseExpression, + FuzzyEqualsShouldNotBeUsedInEqualsMethod, Interruption, + NullableOnContainingClass + * Changes of version 2.13.1: + + Fix a crash in UnnecessaryBoxedVariable + + Include the unicode character in the diagnostic message + * Changes of version 2.13.0: + + Handle all annotations with the simple name Generated in + -XepDisableWarningsInGeneratedCode + + Reconcile BugChecker#isSuppressed with suppression handling in + ErrorProneScanner + + Fix a bug in enclosingPackage + + Improve performance of fix application + + Implicitly treat @AutoBuilder setter methods as + @CanIgnoreReturnValue. + + Remove some obsolete checks + (PublicConstructorForAbstractClass, HashCodeToString) + * Changes of version 2.12.1: + + This release adds an infrastructure optimization to AppliedFix + source code processing. + * Changes of version 2.12.0: + + New checks: BoxedPrimitiveEquality, DoubleBraceInitialization, + IgnoredPureGetter, LockOnBoxedPrimitive, IncorrectMainMethod, + LongDoubleConversion, RobolectricShadowDirectlyOn, + StaticAssignmentOfThrowable, UnnecessaryLongToIntConversion, + Varifier + +------------------------------------------------------------------- +Tue Sep 19 11:00:56 UTC 2023 - Fridrich Strba + +- Do not require maven-javadoc-plugin that we don't use + ------------------------------------------------------------------- Thu May 4 11:40:47 UTC 2023 - Dominique Leuenberger @@ -5,7 +271,6 @@ Thu May 4 11:40:47 UTC 2023 - Dominique Leuenberger Eliminates the need for source package links in OBS. ------------------------------------------------------------------- -Tue May 17 11:40:20 UTC 2022 - Fridrich Strba +Mon Mar 7 14:17:02 UTC 2022 - Fridrich Strba -- Initial packaging of org.google.error_prone:error_prone_annotations - artifact version 2.11.0 +- Initial packaging of some error_prone artifacts version 2.11.0 diff --git a/google-errorprone-annotations.spec b/google-errorprone-annotations.spec index 21b10db..3b7883b 100644 --- a/google-errorprone-annotations.spec +++ b/google-errorprone-annotations.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package google-errorprone-annotations # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ %global artifactId error_prone_annotations %global group_name google-errorprone Name: %{group_name}-annotations -Version: 2.11.0 +Version: 2.26.1 Release: 0 Summary: error-prone annotations License: Apache-2.0 @@ -30,7 +30,8 @@ Source0: %{source_name}-%{version}.tar.xz Source1: %{name}-build.xml BuildRequires: ant BuildRequires: fdupes -BuildRequires: javapackages-local +BuildRequires: java-devel >= 9 +BuildRequires: javapackages-local >= 6 BuildArch: noarch %description @@ -49,14 +50,10 @@ This package contains the API documentation for %{name}. %prep %setup -q -n %{source_name}-%{version} cp %{SOURCE1} annotations/build.xml -%pom_remove_parent annotations -%pom_xpath_inject pom:project " - com.google.errorprone - 2.11.0" annotations %build pushd annotations -%{ant} jar javadoc +%{ant} -Dproject.version=%{version} jar javadoc popd %install @@ -65,7 +62,7 @@ install -d -m 0755 %{buildroot}%{_javadir}/%{group_name} install -p -m 0644 annotations/target/%{artifactId}-%{version}.jar %{buildroot}%{_javadir}/%{group_name}/annotations.jar # pom install -d -m 755 %{buildroot}%{_mavenpomdir}/%{group_name} -install -pm 644 annotations/pom.xml %{buildroot}%{_mavenpomdir}/%{group_name}/annotations.pom +%{mvn_install_pom} annotations/pom.xml %{buildroot}%{_mavenpomdir}/%{group_name}/annotations.pom %add_maven_depmap %{group_name}/annotations.pom %{group_name}/annotations.jar # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} diff --git a/google-errorprone.changes b/google-errorprone.changes index d3ebfca..802ab58 100644 --- a/google-errorprone.changes +++ b/google-errorprone.changes @@ -1,8 +1,275 @@ +------------------------------------------------------------------- +Mon Apr 15 05:13:37 UTC 2024 - Fridrich Strba + +- Upgrade to version 2.26.1 + * Changes of version 2.26.1: + + Fixes the module name: from 'com.google.errorprone.annotation' + to 'com.google.errorprone.annotations'. Amends the OSGi build + not to include 'Automatic-Module-Name' in the MANIFEST.MF for the + 'annotations' project. + * Changes of version 2.26.0: + + The 'annotations' artifact now includes a module-info.java for + Java Platform Module System support. + + Disabled checks passed to -XepPatchChecks are now ignored, + instead of causing a crash. + + New checks: + - SystemConsoleNull: Null-checking System.console() is not a + reliable way to detect if the console is connected to a + terminal. + - EnumOrdinal: Discourage uses of Enum.ordinal() + + Closed issues: + - Add module-info.java #2649 + - 2.19.x: Exception thrown when a disabled check is passed to + -XepPatchChecks #3908 + - Ignore disabled checks passed to -XepPatchChecks #4028 + - feat: add jpms definition for annotations #4311 + - Add the 'compile' goal for 'compile-java9' #4314 + * Changes of version 2.25.0: + + New checks: + - JUnitIncompatibleType: Detects incompatible types passed to + an assertion, similar to TruthIncompatibleType + - RedundantSetterCall: Detects fields set twice in the same + chained expression. Generalization of previous + ProtoRedundantSet check to also handle AutoValue. + + Closed issues: + - Crash in UnnecessaryStringBuilder #4195 + - Fix typos #4224 + - Add support for specifying badEnclosingTypes for BadImport + via flags #4228 + - Some BugPattern docs are missing code examples #4248 + - Remove incorrect statement from BugPattern index doc #4249 + - Do not report NonFinalStaticField findings for fields + modified in @BeforeAll methods #4251 + * Changes of version 2.24.1: + + Add an assertion to try to help debug #4225 + * Changes of version 2.24.0: + + New checks: + - MultipleNullnessAnnotations: Discourage multiple nullness + annotations + - NullableTypeParameter: Discourage nullness annotations on + type parameters + - NullableWildcard: Discourage nullness annotations on + wildcards + - SuperCallToObjectMethod: Generalization of + SuperEqualsIsObjectEquals, now covers hashCode + * Changes of version 2.23.0: + + New checks: DuplicateDateFormatField, NonFinalStaticField, + StringCharset, StringFormatWithLiteral, + SuperEqualsIsObjectEquals + + Bug fixes and improvements: #3897, #4114, #4123 + * Changes of version 2.22.0: + + New checks: + - ClosingStandardOutputStreams: Prevents accidentally closing + System.{out,err} with try-with-resources + - TruthContainsExactlyElementsInUsage: containsExactly is + preferred over containsExactlyElementsIn when creating new + iterables + - UnnecessaryAsync: detects unnecessary use of async + primitives in local (and hence single-threaded) scopes + - ReturnAtTheEndOfVoidFunction: detects unnecessary return + statements at the end of void functions + - MultimapKeys: Suggests using keySet() instead of iterating + over Multimap.keys(), which does not collapse duplicates + + Bug fixes and improvements: + - Don't complain about literal IP addresses in + AddressSelection + - Prevent SuggestedFixes#renameMethod from modifying return + type declaration + - Fix UnusedVariable false positives for private record + parameters + - When running in conservative mode, no longer assume that + implementations of Map.get, etc. return null + - CanIgnoreReturnValueSuggester: Support additional exempting + method annotations + - UnusedVariable: exclude junit5's @RegisterExtension + - Support running all available patch checks + - Upgrade java-diff-utils 4.0 -> 4.12 + - Flag unused Refaster template parameters + - Support @SuppressWarnings("all") + - Prevent Refaster UMemberSelect from matching method + parameters + - MissingDefault : Don't require // fall out comments on + expression switches + - Skip UnnecessaryLambda findings for usages in enhanced for + loops + - Fix bug where nested MissingBraces violations' suggested + fixes result in broken code + - Add support for specifying exemptPrefixes/exemptNames for + UnusedVariable via flags + - UnusedMethod: Added exempting variable annotations + * Changes of version 2.21.1: + + Handle overlapping ranges in suppressedRegions + + Add AddressSelection to discourage APIs that convert a + hostname to a single address + * Changes of version 2.21.0: + + New Checkers: + - AttemptedNegativeZero: Prevents accidental use of -0, which + is the same as 0. The floating-point negative zero is -0.0. + - ICCProfileGetInstance: Warns on uses of + ICC_Profile.getInstance(String), due to JDK-8191622. + - MutableGuiceModule: Fields in Guice modules should be final. + - NullableOptional: Discourages @Nullable-annotated Optionals. + - OverridingMethodInconsistentArgumentNamesChecker: Arguments + of overriding method are inconsistent with overridden + method. + + Fixed issues: + - Avoid MemberName IOOBE on lambda parameters inside + overriding methods #3976 + - Improve LockOnNonEnclosingClassLiteral documentation #3986 + - Security scan reported high CVE for + com.google.guava:guava:31.1-jre #4001 + - Upgrade guava to 32.0.1 #4002 + - Proposal: checker to prevent other checkers from calling + javac methods that changed across JDKs #4026 + - Add support in ASTHelpersSuggestions for getEnclosedElements + #4027 + * Changes of version 2.20.0: + + This release is compatible with early-access builds of JDK 21. + + New Checkers: InlineTrivialConstant, UnnecessaryStringBuilder, + BanClassLoader, DereferenceWithNullBranch, DoNotUseRuleChain, + LockOnNonEnclosingClassLiteral, MissingRefasterAnnotation, + NamedLikeContextualKeyword, NonApiType + + Fixes issues: + - Introduce MissingRefasterAnnotation checker #2232 + - Fix minor typo in URepeated #2243 + - Drop unused constant Template#AUTOBOXING_DEFAULT #2997 + - Introduce command-line flag -XepAllSuggestionsAsWarnings + #3301 + - JDK21 compatibility #3843 + - Add OSGi runtime metadata to error-prone's MANIFEST.MF files + #3903 + - Use EISOP Checker Framework version 3.34.0-eisop1 #3918 + - NotJavadoc pattern does not allow Javadoc on module + declarations #3923 + - ErrorProneInjector incorrectly picks up the no-args + constructor #3931 + - Several high CVEs related to dependency + com.google.protobuf:protobuf-java:3.19.2 #3945 + - Upgrade protobuf-java to 3.19.6 #3946 + * Changes of version 2.19.1: + + This release fixes a binary compatibility issue when running + on JDK 11 + * Changes of version 2.19.0: + + New Checkers: NotJavadoc, StringCaseLocaleUsage, + UnnecessaryTestMethodPrefix + + Fixes issues: + - Exclude inner classes annotated with @Nested from + ClassCanBeStatic rule #956 + - Optimize VisitorState#getSymbolFromName #3504 + - ClassCanBeStatic: Exclude JUnit @Nested classes #3654 + - BadImport: flag static import of newInstance methods #3703 + - Support given for enforcing DirectInvocationOnMock: issue + 3396 #3731 + - Handle yield statement case in ASTHelpers#targetType #3737 + - Should ASTHelpers.getSymbol(Tree) be annotated with + @Nullable? #3760 + - Fix '@' character in javadoc code snippets #3779 + - Replace guava cache with caffeine #3796 + - Discourage APIs locale-dependent APIs like + String.to{Lower,Upper}Case #3809 + - Introduce StringCaseLocaleUsage check #3813 + * Changes of version 2.18.0: + + New Checkers: InjectOnBugCheckers, LabelledBreakTarget, + UnusedLabel, YodaCondition + + Fixes issues: + - @SuppressWarnings("InlineFormatString") doesn't work #1650 + - Refaster: support method invocation type argument inlining + #2706 + - java.lang.IllegalArgumentException: Cannot edit synthetic + AST nodes with specific record constructor #3404 + - Rename class to match filename #3493 + - Optimize VisitorState#getSymbolFromName #3504 + - refactor: refactor bad smell UnusedLabel #3519 + - LambdaFunctionalInterface crash with + IllegalArgumentException when processing an enum constructor + taking a lambda #3579 + - Fix JDK 20-ea build compatibility #3610 + - UngroupedOverloads: ignore generated constructors #3632 + - [errorprone 2.17.0] NPE in + StatementSwitchToExpressionSwitch.analyzeSwitchTree #3638 + - StatementSwitchToExpressionSwitch: handle empty statement + blocks #3645 + - StatementSwitchToExpressionSwitch: only trigger on + compatible target versions #3646 + - Fix Finalize bugpattern to match protected finalize() #3652 + - Make MemoizeConstantVisitorStateLookups check suppressible + #3690 + * Changes of version 2.17.0: + + New Checkers: AvoidObjectArrays, Finalize, IgnoredPureGetter, + ImpossibleNullComparison, MathAbsoluteNegative, NewFileSystem, + StatementSwitchToExpressionSwitch, UnqualifiedYield + + Fixed issues: + - InvalidParam warning on Javadoc for Java record components + #2321 + - UnusedMethod flags @JsonValue methods as unused #3144 + - UnusedMethod: Add more JPA lifecycle annotations or make + annotations configurable #3297 + - UnusedMethod: Support additional exempting method + annotations #3428 + - Have InvalidParam support records #3437 + - Fix -XepDisableAllWarnings flag when passed on its own #3462 + - ASTHelpersSuggestions does not flag call to packge() on + com.sun.tools.javac.code.Symbol.ClassSymbol #3482 + - @SupressWarnings on record compact constructor causes crash + #3494 + * Changes of version 2.16.0: + + New Checkers: ASTHelpersSuggestions, + CanIgnoreReturnValueSuggester, LenientFormatStringValidation, + UnnecessarilyUsedValue + + Fixed issues: + - Avoid using non-ASCII Unicode characters outside of comments + and literals #3092 + - NullPointerException thrown during analysis #3220 + - NPE analysing new style switch statement (2.14.0) #3225 + - ImmutableChecker handles null types #3267 + - Drop pre-JDK 11 logic from Refaster's Inliner class #3441 + * Changes of version 2.15.0: + + New Checkers: BuilderReturnThis, + CanIgnoreReturnValueSuggester, CannotMockFinalClass, + CannotMockFinalMethod, DirectInvocationOnMock, ExtendsObject, + MockNotUsedInProduction, NoCanIgnoreReturnValueOnClasses, + NullArgumentForNonNullParameter, SelfAlwaysReturnsThis, + UnsafeWildcard, UnusedTypeParameter + * Changes of version 2.14.0: + + New checkers: BanJNDI, EmptyTopLevelDeclaration, + ErroneousBitwiseExpression, + FuzzyEqualsShouldNotBeUsedInEqualsMethod, Interruption, + NullableOnContainingClass + * Changes of version 2.13.1: + + Fix a crash in UnnecessaryBoxedVariable + + Include the unicode character in the diagnostic message + * Changes of version 2.13.0: + + Handle all annotations with the simple name Generated in + -XepDisableWarningsInGeneratedCode + + Reconcile BugChecker#isSuppressed with suppression handling in + ErrorProneScanner + + Fix a bug in enclosingPackage + + Improve performance of fix application + + Implicitly treat @AutoBuilder setter methods as + @CanIgnoreReturnValue. + + Remove some obsolete checks + (PublicConstructorForAbstractClass, HashCodeToString) + * Changes of version 2.12.1: + + This release adds an infrastructure optimization to AppliedFix + source code processing. + * Changes of version 2.12.0: + + New checks: BoxedPrimitiveEquality, DoubleBraceInitialization, + IgnoredPureGetter, LockOnBoxedPrimitive, IncorrectMainMethod, + LongDoubleConversion, RobolectricShadowDirectlyOn, + StaticAssignmentOfThrowable, UnnecessaryLongToIntConversion, + Varifier + ------------------------------------------------------------------- Tue Sep 19 11:00:56 UTC 2023 - Fridrich Strba - Do not require maven-javadoc-plugin that we don't use +------------------------------------------------------------------- +Thu May 4 11:40:47 UTC 2023 - Dominique Leuenberger + +- Add _multibuild to define 2nd spec file as additional flavor. + Eliminates the need for source package links in OBS. + ------------------------------------------------------------------- Mon Mar 7 14:17:02 UTC 2022 - Fridrich Strba diff --git a/google-errorprone.spec b/google-errorprone.spec index 5697d79..6387603 100644 --- a/google-errorprone.spec +++ b/google-errorprone.spec @@ -1,7 +1,7 @@ # # spec file for package google-errorprone # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %global source_name error-prone Name: google-errorprone -Version: 2.11.0 +Version: 2.26.1 Release: 0 Summary: Google Error Prone License: Apache-2.0 @@ -27,6 +27,7 @@ URL: https://errorprone.info Source0: %{source_name}-%{version}.tar.xz BuildRequires: fdupes BuildRequires: maven-local +BuildRequires: mvn(biz.aQute.bnd:bnd-maven-plugin) BuildRequires: mvn(com.google.auto.service:auto-service) BuildRequires: mvn(com.google.auto.service:auto-service-annotations) BuildRequires: mvn(com.google.code.gson:gson) @@ -98,7 +99,7 @@ This package contains the API documentation for %{name}. %{mvn_file} ":error_prone_{*}" %{name}/@1 %build -%{mvn_build} -f +%{mvn_build} -f -- -Dsource=8 %install %mvn_install