mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
Upgrade Error Prone 2.35.1 -> 2.36.0 (#1429)
And update the compatibility matrix and its generation script. See: - https://github.com/google/error-prone/releases/tag/v2.36.0 - https://github.com/google/error-prone/compare/v2.35.1...v2.36.0 - https://github.com/PicnicSupermarket/error-prone/compare/v2.35.1-picnic-1...v2.36.0-picnic-1
This commit is contained in:
committed by
GitHub
parent
db18d6a1fc
commit
512a3bebad
24
pom.xml
24
pom.xml
@@ -211,7 +211,7 @@
|
||||
<version.auto-value>1.11.0</version.auto-value>
|
||||
<version.error-prone>${version.error-prone-orig}</version.error-prone>
|
||||
<version.error-prone-fork>v${version.error-prone-orig}-picnic-1</version.error-prone-fork>
|
||||
<version.error-prone-orig>2.35.1</version.error-prone-orig>
|
||||
<version.error-prone-orig>2.36.0</version.error-prone-orig>
|
||||
<version.error-prone-slf4j>0.1.28</version.error-prone-slf4j>
|
||||
<version.guava-beta-checker>1.0</version.guava-beta-checker>
|
||||
<version.jdk>17</version.jdk>
|
||||
@@ -1962,12 +1962,6 @@
|
||||
<!-- XXX: Enable this once we open-source
|
||||
this library. -->
|
||||
-Xep:BetaApi:OFF
|
||||
<!-- This check flags bad member names, but
|
||||
also type names that we may want to accept.
|
||||
Consider contributing a flag to toggle this
|
||||
behavior. See
|
||||
https://github.com/google/error-prone/issues/4616 -->
|
||||
-Xep:IdentifierName:OFF
|
||||
<!-- We don't target JDK 7. -->
|
||||
-Xep:Java7ApiChecker:OFF
|
||||
<!-- We don't target JDK 8. -->
|
||||
@@ -1983,6 +1977,9 @@
|
||||
<!-- XXX: Enable once there are fewer
|
||||
false-positives.
|
||||
-XepOpt:CheckReturnValue:CheckAllMethods=true -->
|
||||
<!-- XXX: Consider renaming flagged types
|
||||
instead. -->
|
||||
-XepOpt:IdentifierName:AllowInitialismsInTypeName=true
|
||||
-XepOpt:InlineMe:SkipInliningsWithComments=false
|
||||
-XepOpt:NullAway:AnnotatedPackages=tech.picnic
|
||||
-XepOpt:NullAway:AssertsEnabled=true
|
||||
@@ -1997,11 +1994,18 @@
|
||||
</arg>
|
||||
<!-- The Error Prone plugin makes certain
|
||||
assumptions about the state of the AST at the
|
||||
moment it is invoked. Those assumptions are met
|
||||
when using the `simple` compile policy. This
|
||||
flag may be dropped after resolution of
|
||||
moment it is invoked. Those assumptions require
|
||||
the `simple` compile policy. This flag may be
|
||||
dropped after resolution of
|
||||
https://bugs.openjdk.java.net/browse/JDK-8155674. -->
|
||||
<arg>-XDcompilePolicy=simple</arg>
|
||||
<!-- Similarly, Error Prone requires that flow
|
||||
analysis has been performed, e.g. to determine
|
||||
whether variables are effectively final. This
|
||||
flag may be dropped if it ever becomes the
|
||||
default. See
|
||||
https://bugs.openjdk.org/browse/JDK-8134117. -->
|
||||
<arg>--should-stop=ifError=FLOW</arg>
|
||||
</compilerArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
releases:
|
||||
- version: 0.19.1
|
||||
compatible:
|
||||
- "2.36.0"
|
||||
- "2.35.1"
|
||||
- "2.35.0"
|
||||
- "2.34.0"
|
||||
@@ -12,6 +13,7 @@ releases:
|
||||
- "2.30.0"
|
||||
- version: 0.19.0
|
||||
compatible:
|
||||
- "2.36.0"
|
||||
- "2.35.1"
|
||||
- "2.35.0"
|
||||
- "2.34.0"
|
||||
@@ -21,6 +23,7 @@ releases:
|
||||
- "2.30.0"
|
||||
- version: 0.18.0
|
||||
compatible:
|
||||
- "2.36.0"
|
||||
- "2.35.1"
|
||||
- "2.35.0"
|
||||
- "2.34.0"
|
||||
|
||||
@@ -45,6 +45,13 @@ for eps_version in ${eps_versions}; do
|
||||
(set +u && echo n | sdk install maven "${mvn_version}")
|
||||
sdk use maven "${mvn_version}"
|
||||
|
||||
# As of version 2.36.0, Error Prone requires that the
|
||||
# `--should-stop=ifError=FLOW` flag is provided. Make sure that this flag is
|
||||
# always specified. (The `-XDcompilePolicy=simple` flag has been specified
|
||||
# since the first Error Prone Support release. It's okay if the added flag is
|
||||
# present more than once; the last variant listed wins.)
|
||||
sed -i 's,<arg>-XDcompilePolicy=simple</arg>,<arg>-XDcompilePolicy=simple</arg><arg>--should-stop=ifError=FLOW</arg>,' pom.xml
|
||||
|
||||
# Collect the list of checks supported by this version of Error Prone
|
||||
# Support.
|
||||
# XXX: Conditionally omit the `MethodReferenceUsage` exclusion once that
|
||||
|
||||
Reference in New Issue
Block a user