Releases: PicnicSupermarket/error-prone-support
Releases · PicnicSupermarket/error-prone-support
v0.19.1
What's Changed
🐛 Bug fixes
- Fix
error-prone-contrib
runtime classpath by @Stephan202 in #1387
📈 Dependency upgrades
- Upgrade Checkstyle 10.19.0 -> 10.20.0 by @Picnic-DevPla-Bot in #1386
Full Changelog: v0.19.0...v0.19.1
v0.19.0
What's Changed
🚀 New Error Prone checks and Refaster rules
- Introduce additional
File
andPath
Refaster rules by @Stephan202 in #1282 - Introduce
{Max,Min}Of{Array,Collection}
Refaster rules by @Stephan202 in #1276 - Introduce
Collections{Max,Min,Sort}
Refaster rules by @mohamedsamehsalah in #1297 - Introduce
MonoFromFutureAsyncLoadingCacheGet
Refaster rule by @Stephan202 in #1290 - Introduce assorted unsigned int/long Refaster rules by @Stephan202 in #1291
- Introduce Refaster rules for Sonar's java:S4635 rule by @Stephan202 in #1320
- Introduce
ImmutableEnumSetRules
Refaster rule collection by @mohamedsamehsalah in #1302 - Introduce
MicrometerRules
Refaster rule collection by @danylo-naumenko in #1365 - Introduce
ConstantNaming
check by @mohamedsamehsalah in #794 - Introduce
Slf4jLoggerDeclaration
check by @mohamedsamehsalah in #783 - Introduce
NameContentEquals
Refaster rule by @Stephan202 in #1379
✨ Improvements
- Improve
Optional#orElse{,Get}
support by @Stephan202 in #1283 - Have
LexicographicalAnnotationAttributeListing
also sort booleans and chars by @Stephan202 in #1334 - Introduce
CollectionIterator
Refaster rule by @mohamedsamehsalah in #1347 - Introduce
ClassCastLambdaUsage
check by @mohamedsamehsalah in #1381
🐛 Bug fixes
- Ignore primitive casts in
ClassCastLambdaUsage
check by @mohamedsamehsalah in #1385
📚 Documentation, test and build improvements
- Update Error Prone compatibility matrix by @Stephan202 in #1281
- Introduce
RefasterRuleTestExtractor
for documentation generation by @Stephan202 in #1317 - Update Error Prone compatibility matrix by @Stephan202 in #1358
- Use dynamic Reproducible Builds badge by @Stephan202 in #1378
- Upgrade JDKs used by GitHub Actions builds by @Stephan202 in #1329
📈 Dependency upgrades
- Upgrade Maven API 3.9.5 -> 3.9.8 by @Picnic-Bot in #701
- Upgrade Project Reactor 2023.0.8 -> 2023.0.9 by @Picnic-DevPla-Bot in #1285
- Upgrade maven-gpg-plugin 3.2.4 -> 3.2.5 by @Picnic-DevPla-Bot in #1284
- Upgrade OpenRewrite Templating 1.12.3 -> 1.13.0 by @Picnic-DevPla-Bot in #1287
- Upgrade JUnit 5 5.10.3 -> 5.11.0 by @Picnic-DevPla-Bot in #1289
- Upgrade NullAway 0.11.1 -> 0.11.2 by @Picnic-DevPla-Bot in #1299
- Upgrade Byte Buddy 1.14.18 -> 1.14.19 by @Picnic-DevPla-Bot in #1292
- Upgrade Byte Buddy 1.14.19 -> 1.15.0 by @Picnic-DevPla-Bot in #1306
- Upgrade maven-checkstyle-plugin 3.4.0 -> 3.5.0 by @Picnic-DevPla-Bot in #1307
- Upgrade Spring Boot 3.3.2 -> 3.3.3 by @Picnic-DevPla-Bot in #1305
- Upgrade Checkstyle 10.17.0 -> 10.18.0 by @Picnic-DevPla-Bot in #1308
- Upgrade Spring Security 6.3.1 -> 6.3.3 by @Picnic-DevPla-Bot in #1303
- Upgrade Guava 33.2.1-jre -> 33.3.0-jre by @Picnic-DevPla-Bot in #1293
- Upgrade OpenRewrite 2.16.0 -> 2.17.0 by @Picnic-DevPla-Bot in #1286
- Upgrade OpenRewrite Templating 1.13.0 -> 1.14.0 by @Picnic-DevPla-Bot in #1294
- Upgrade Spring 6.1.11 -> 6.1.12 by @Picnic-DevPla-Bot in #1288
- Upgrade Mockito 5.12.0 -> 5.13.0 by @Picnic-DevPla-Bot in #1309
- Upgrade Swagger 2.2.22 -> 2.2.23 by @Picnic-DevPla-Bot in #1312
- Upgrade Byte Buddy 1.15.0 -> 1.15.1 by @Picnic-DevPla-Bot in #1316
- Upgrade Error Prone 2.30.0 -> 2.31.0 by @Picnic-DevPla-Bot in #1314
- Upgrade fmt-maven-plugin 2.22.1 -> 2.24 by @Picnic-Bot in #1069
- Upgrade Maven 3.9.8 -> 3.9.9 by @Picnic-DevPla-Bot in #1295
- Upgrade OpenRewrite Templating 1.14.0 -> 1.14.1 by @Picnic-DevPla-Bot in #1311
- Upgrade Checker Framework Annotations 3.46.0 -> 3.47.0 by @Picnic-DevPla-Bot in #1322
- Upgrade pomchecker-maven-plugin 1.11.0 -> 1.13.0 by @Picnic-DevPla-Bot in #1319
- Upgrade Surefire 3.3.1 -> 3.5.0 by @Picnic-DevPla-Bot in #1298
- Upgrade maven-deploy-plugin 3.1.2 -> 3.1.3 by @Picnic-DevPla-Bot in #1300
- Upgrade MongoDB driver 5.1.3 -> 5.1.4 by @Picnic-DevPla-Bot in #1321
- Upgrade OpenRewrite 2.17.0 -> 2.18.0 by @Picnic-DevPla-Bot in #1315
- Upgrade maven-install-plugin 3.1.2 -> 3.1.3 by @Picnic-DevPla-Bot in #1301
- Upgrade maven-javadoc-plugin 3.8.0 -> 3.10.0 by @Picnic-DevPla-Bot in #1310
- Upgrade Checkstyle 10.18.0 -> 10.18.1 by @Picnic-DevPla-Bot in #1318
- Upgrade maven-dependency-plugin 3.7.1 -> 3.8.0 by @Picnic-DevPla-Bot in #1304
- Upgrade errorprone-slf4j 0.1.25 -> 0.1.28 by @Picnic-DevPla-Bot in #1324
- Upgrade Project Reactor 2023.0.9 -> 2023.0.10 by @Picnic-DevPla-Bot in #1323
- Upgrade Error Prone 2.31.0 -> 2.32.0 by @Picnic-DevPla-Bot in #1325
- Use
rewrite-java-17
rather thanrewrite-java-11
by @Stephan202 in #1330 - Upgrade NullAway 0.11.2 -> 0.11.3 by @Picnic-DevPla-Bot in #1332
- Upgrade OpenRewrite 2.18.0 -> 2.19.0 by @Picnic-DevPla-Bot in #1326
- Upgrade OpenRewrite Templating 1.14.1 -> 1.15.0 by @Picnic-DevPla-Bot in #1327
- Upgrade Spring 6.1.12 -> 6.1.13 by @Picnic-DevPla-Bot in #1328
- Upgrade pitest-maven-plugin 1.16.1 -> 1.17.0 by @Picnic-DevPla-Bot in #1313
- Upgrade Spring Boot 3.3.3 -> 3.3.4 by @Picnic-DevPla-Bot in #1333
- Upgrade maven-site-plugin 3.12.1 -> 3.20.0 by @Picnic-DevPla-Bot in #1296
- Upgrade extra-enforcer-rules 1.8.0 -> 1.9.0 by @Picnic-DevPla-Bot in #1335
- Upgrade maven-gpg-plugin 3.2.5 -> 3.2.6 by @Picnic-DevPla-Bot in #1331
- Upgrade JUnit 5 5.11.0 -> 5.11.1 by @Picnic-DevPla-Bot in #1342
- Upgrade Checkstyle 10.18.1 -> 10.18.2 by @Picnic-DevPla-Bot in #1346
- Upgrade Error Prone 2.32.0 -> 2.33.0 by @Picnic-DevPla-Bot in #1348
- Upgrade Byte Buddy 1.15.1 -> 1.15.4 by @Picnic-DevPla-Bot in #1340
- Upgrade Check...
v0.18.0
What's Changed
🚀 New Error Prone checks and Refaster rules
- Introduce
SetStream
Refaster rule by @mohamedsamehsalah in #1264 - Introduce
FluxFromStreamSupplier
Refaster rule by @rickie in #1261 - Introduce
FilesCreateTempFileToFile
Refaster rule by @Stephan202 in #1162 - Introduce
ArraysAsList
Refaster rule by @mohamedsamehsalah in #1275 - Introduce
Class{Literal,Reference}Cast
Refaster rules by @mohamedsamehsalah in #1269
✨ Improvements
- Package OpenRewrite recipes in separate JAR, targeting Java 8 by @Stephan202 in #1270
- Make the build JDK 22-compatible by @Stephan202 in #1277
📚 Documentation, test and build improvements
- Update
step-security/harden-runner
configuration by @Stephan202 in #1271 - Introduce generic
run-integration-test.sh
script by @rickie in #1141
📈 Dependency upgrades
- Upgrade Google Java Format 1.22.0 -> 1.23.0 by @Picnic-DevPla-Bot in #1263
- Upgrade NullAway 0.11.0 -> 0.11.1 by @Picnic-DevPla-Bot in #1262
- Upgrade maven-javadoc-plugin 3.7.0 -> 3.8.0 by @Picnic-DevPla-Bot in #1259
- Upgrade Hamcrest 2.2 -> 3.0 by @Picnic-DevPla-Bot in #1267
- Upgrade OpenRewrite 2.15.0 -> 2.16.0 by @Picnic-DevPla-Bot in #1266
- Upgrade OpenRewrite Templating 1.12.0 -> 1.12.1 by @Picnic-DevPla-Bot in #1265
- Upgrade Checker Framework Annotations 3.45.0 -> 3.46.0 by @Picnic-DevPla-Bot in #1268
- Upgrade OpenRewrite Templating 1.12.1 -> 1.12.3 by @Picnic-DevPla-Bot in #1273
- Upgrade SLF4J 2.0.13 -> 2.0.15 by @Picnic-DevPla-Bot in #1272
- Upgrade SLF4J 2.0.15 -> 2.0.16 by @Picnic-DevPla-Bot in #1279
- Upgrade MongoDB driver 5.1.2 -> 5.1.3 by @Picnic-DevPla-Bot in #1274
- Upgrade Error Prone 2.29.2 -> 2.30.0 by @Picnic-DevPla-Bot in #1280
Full Changelog: v0.17.0...v0.18.0
v0.17.0
What's Changed
🚀 New Error Prone checks and Refaster rules
- Introduce
OptionalOrElse
check by @Stephan202 in #1024 - Introduce Refaster rules that resolve
EnumOrdinal
violations by @Stephan202 in #1104 - Update
FluxTake
Refaster rule for Reactor 3.5.0+ by @Stephan202 in #1128 - Introduce
OptionalEmpty
Refaster rule by @werli in #1156 - Extend
FluxConcatMap
Refaster rule by @Stephan202 in #1213 - Introduce
EnumReferenceEqualityLambda
Refaster rule by @mohamedsamehsalah in #1239 - Introduce
MonoFromFutureSupplier{,Boolean}
Refaster rules by @Venorcis in #1244 - Extend
FluxJust
Refaster rule by @tijana-ninkovic in #1253
✨ Improvements
- Compact and replace
StreamIs{,Not}Empty
Refaster rules by @Stephan202 in #1028
📚 Documentation, test and build improvements
- Drop unused field in
Slf4jLogStatementTest
by @rickie in #1084 - Update Error Prone compatibility matrix by @Stephan202 in #1092
- Start release notes with "Update considerations and deprecations" section by @rickie in #1105
- Introduce Cody as IntelliJ icon by @rickie in #1075
- Update
step-security/harden-runner
configuration by @Stephan202 in #1177 - Simplify Renovate matchers by @Badbond in #1179
- Allow OpenSSF Scorecard analysis to access
api.scorecard.dev
by @Stephan202 in #1193 - Update
step-security/harden-runner
configuration by @Stephan202 in #1246 - Suppress new SonarCloud warning by @Stephan202 in #1248
📈 Dependency upgrades
- Upgrade Jackson 2.16.2 -> 2.17.0 by @Picnic-Bot in #1087
- Upgrade OpenRewrite 2.7.1 -> 2.8.0 by @Picnic-Bot in #1081
- Upgrade sonar-maven-plugin 3.10.0.2594 -> 3.11.0.3922 by @Picnic-Bot in #1090
- Upgrade maven-gpg-plugin 3.1.0 -> 3.2.0 by @Picnic-Bot in #1082
- Upgrade sortpom-maven-plugin 3.4.0 -> 3.4.1 by @Picnic-Bot in #1077
- Upgrade Spring 6.1.4 -> 6.1.5 by @Picnic-Bot in #1091
- Upgrade AspectJ 1.9.21.1 -> 1.9.21.2 by @Picnic-Bot in #1089
- Upgrade Project Reactor 2023.0.3 -> 2023.0.4 by @Picnic-Bot in #1085
- Upgrade Checkstyle 10.14.0 -> 10.14.2 by @Picnic-Bot in #1079
- Upgrade Error Prone 2.25.0 -> 2.26.1 by @Picnic-Bot in #1078
- Upgrade actions/deploy-pages v4.0.4 -> v4.0.5 by @Picnic-Bot in #1094
- Upgrade git-commit-id-maven-plugin 8.0.1 -> 8.0.2 by @Picnic-Bot in #1095
- Upgrade OpenRewrite 2.8.0 -> 2.8.1 by @Picnic-Bot in #1098
- Upgrade maven-gpg-plugin 3.2.0 -> 3.2.1 by @Picnic-Bot in #1096
- Upgrade OpenRewrite Templating 1.6.2 -> 1.6.3 by @Picnic-Bot in #1099
- Upgrade Guava 33.0.0-jre -> 33.1.0-jre by @Picnic-Bot in #1086
- Upgrade swagger-annotations 1.6.13 -> 1.6.14 by @Picnic-Bot in #1100
- Upgrade Spring Security 6.2.2 -> 6.2.3 by @Picnic-Bot in #1093
- Upgrade maven-compiler-plugin 3.12.1 -> 3.13.0 by @Picnic-Bot in #1101
- Upgrade Swagger 2.2.20 -> 2.2.21 by @Picnic-Bot in #1102
- Upgrade Spring Boot 3.2.3 -> 3.2.4 by @Picnic-Bot in #1103
- Upgrade CodeQL v3.24.5 -> v3.24.9 by @Picnic-Bot in #1108
- Upgrade ruby/setup-ruby v1.172.0 -> v1.173.0 by @Picnic-Bot in #1110
- Upgrade AspectJ 1.9.21.2 -> 1.9.22 by @Picnic-Bot in #1106
- Upgrade dawidd6/action-download-artifact v3.1.2 -> v3.1.4 by @Picnic-Bot in #1109
- Upgrade Forbidden APIs plugin 3.6 -> 3.7 by @Picnic-Bot in #1107
- Upgrade Byte Buddy 1.14.12 -> 1.14.13 by @Picnic-Bot in #1115
- Upgrade NullAway 0.10.24 -> 0.10.25 by @Picnic-Bot in #1116
- Upgrade errorprone-slf4j 0.1.22 -> 0.1.23 by @Picnic-Bot in #1111
- Upgrade actions/configure-pages v4.0.0 -> v5.0.0 by @Picnic-Bot in #1117
- Upgrade maven-gpg-plugin 3.2.1 -> 3.2.2 by @Picnic-Bot in #1113
- Upgrade pomchecker-maven-plugin 1.10.0 -> 1.11.0 by @Picnic-Bot in #1112
- Upgrade Google Java Format 1.21.0 -> 1.22.0 by @Picnic-Bot in #1120
- Upgrade Checkstyle 10.14.2 -> 10.15.0 by @Picnic-Bot in #1118
- Upgrade Error Prone fork v2.26.1-picnic-1 -> v2.26.1-picnic-2 by @Stephan202 in #1119
- Upgrade jacoco-maven-plugin 0.8.11 -> 0.8.12 by @Picnic-Bot in #1122
- Upgrade MongoDB driver 5.0.0 -> 5.0.1 by @Picnic-Bot in #1121
- Upgrade OpenRewrite 2.8.1 -> 2.9.0 by @Picnic-Bot in #1123
- Upgrade maven-source-plugin 3.3.0 -> 3.3.1 by @Picnic-Bot in #1125
- Upgrade TestNG 7.9.0 -> 7.10.0 by @Picnic-Bot in #1126
- Upgrade pitest-maven-plugin 1.15.8 -> 1.16.0 by @Picnic-Bot in #1127
- Upgrade TestNG 7.10.0 -> 7.10.1 by @Picnic-Bot in #1131
- Upgrade Project Reactor 2023.0.4 -> 2023.0.5 by @Picnic-Bot in #1130
- Upgrade SLF4J 2.0.12 -> 2.0.13 by @Picnic-Bot in #1136
- Upgrade maven-gpg-plugin 3.2.2 -> 3.2.3 by @Picnic-Bot in #1134
- Upgrade Spring 6.1.5 -> 6.1.6 by @Picnic-Bot in #1133
- Upgrade maven-jar-plugin 3.3.0 -> 3.4.0 by @Picnic-Bot in #1137
- Upgrade Spring Security 6.2.3 -> 6.2.4 by @Picnic-Bot in #1140
- Upgrade OpenRewrite Templating 1.6.3 -> 1.6.4 by @Picnic-Bot in #1142
- Upgrade actions/upload-artifact v4.3.1 -> v4.3.2 by @Picnic-Bot in #1143
- Upgrade Spring Boot 3.2.4 -> 3.2.5 by @Picnic-Bot in #1144
- Upgrade ruby/setup-ruby v1.173.0 -> v1.174.0 by @Picnic-Bot in #1148
- Upgrade CodeQL v3.24.9 -> v3.25.1 by @Picnic-Bot in #1147
- Upgrade maven-gpg-plugin 3.2.3 -> 3.2.4 by @Picnic-Bot in #1145
- Upgrade maven-jar-plugin 3.4.0 -> 3.4.1 by @Picnic-Bot in #1146
- Upgrade actions/checkout v4.1.1 -> v4.1.3 by @Picnic-Bot in #1149
- Upgrade actions/upload-artifact v4.3.2 -> v4.3.3 by @Picnic-Bot i...
v0.16.1
What's Changed
📚 Documentation, test and build improvements
- Update
step-security/harden-runner
configuration by @Stephan202 in #1083
📈 Dependency upgrades
- Upgrade OpenRewrite Templating 1.6.0 -> 1.6.2 by @Picnic-Bot in #1080
Full Changelog: v0.16.0...v0.16.1
v0.16.0
⚠️ Update considerations and deprecations
- Require JDK 17 rather than JDK 11 by @Stephan202 in #603
What's Changed
🚀 New Error Prone checks and Refaster rules
- Introduce
BugPatternLink
check by @Stephan202 in #1026 - Introduce
InputStream{Read,Skip}NBytes
Refaster rules by @Stephan202 in #993 - Extend
CollectionIsEmpty
Refaster rule by @giovannizotta in #1027 - Introduce
FluxFromIterable
Refaster rule by @dirkvbok in #1047 - Introduce
EmptyMonoZip
check by @DimaLegeza in #733
✨ Improvements
📚 Documentation, test and build improvements
- Re-enable SonarCloud analysis on default branch by @Stephan202 in #1029
- Upgrade JDKs used by GitHub Actions builds by @Stephan202 in #1043
- Have Renovate file
action-download-artifact
PRs once every four weeks by @rickie in #1046 - Exclude
error-prone-{experimental,guidelines}
checks from integration tests by @rickie in #1060 - Sync Checkstyle integration test by @rickie in #1064
- Introduce GitHub Actions
step-security/harden-runner
step by @Stephan202 in #1063 - Have
step-security/harden-runner
audit the OpenSSF Scorecard update workflow by @Stephan202 in #1076
📈 Dependency upgrades
- Upgrade s4u/setup-maven-action v1.11.0 -> v1.12.0 by @Picnic-Bot in #1030
- Upgrade Spring 5.3.31 -> 6.1.3 by @Picnic-Bot in #679
- Upgrade Spring Security 5.8.9 -> 6.2.1 by @Picnic-Bot in #1010
- Upgrade Spring Boot 2.7.18 -> 3.2.2 by @Picnic-Bot in #680
- Upgrade pitest-maven-plugin 1.15.7 -> 1.15.8 by @Picnic-Bot in #1032
- Upgrade Project Reactor 2023.0.2 -> 2023.0.3 by @Picnic-Bot in #1034
- Upgrade dawidd6/action-download-artifact v3.0.0 -> v3.1.0 by @Picnic-Bot in #1037
- Upgrade Spring 6.1.3 -> 6.1.4 by @Picnic-Bot in #1036
- Upgrade NullAway 0.10.22 -> 0.10.23 by @Picnic-Bot in #1035
- Upgrade AspectJ 1.9.21 -> 1.9.21.1 by @Picnic-Bot in #1033
- Upgrade Byte Buddy 1.14.11 -> 1.14.12 by @Picnic-Bot in #1040
- Upgrade Truth 1.4.0 -> 1.4.1 by @Picnic-Bot in #1041
- Upgrade Spring Security 6.2.1 -> 6.2.2 by @Picnic-Bot in #1038
- Upgrade dawidd6/action-download-artifact v3.1.0 -> v3.1.1 by @Picnic-Bot in #1039
- Upgrade Immutables Annotations 2.10.0 -> 2.10.1 by @Picnic-Bot in #1045
- Upgrade OpenRewrite Templating 1.5.0 -> 1.5.1 by @Picnic-Bot in #1049
- Upgrade Google Java Format 1.19.2 -> 1.20.0 by @Picnic-Bot in #1050
- Upgrade OpenRewrite 2.6.4 -> 2.7.1 by @Picnic-Bot in #1048
- Upgrade sortpom-maven-plugin 3.3.0 -> 3.4.0 by @Picnic-Bot in #1051
- Upgrade Spring Boot 3.2.2 -> 3.2.3 by @Picnic-Bot in #1052
- Upgrade Error Prone 2.24.1 -> 2.25.0 by @Picnic-Bot in #1042
- Upgrade ruby/setup-ruby v1.170.0 -> v1.172.0 by @Picnic-Bot in #1055
- Upgrade dawidd6/action-download-artifact v3.1.1 -> v3.1.2 by @Picnic-Bot in #1053
- Upgrade CodeQL v3.23.2 -> v3.24.5 by @Picnic-Bot in #1054
- Upgrade Modernizer Maven Plugin 2.7.0 -> 2.8.0 by @Picnic-Bot in #1057
- Upgrade Truth 1.4.1 -> 1.4.2 by @Picnic-Bot in #1061
- Upgrade Mockito 5.10.0 -> 5.11.0 by @Picnic-Bot in #1062
- Upgrade MongoDB driver 4.11.1 -> 5.0.0 by @Picnic-Bot in #1059
- Upgrade Error Prone fork v2.25.0-picnic-1 -> v2.25.0-picnic-2 by @Stephan202 in #1065
- Upgrade Checkstyle 10.13.0 -> 10.14.0 by @Picnic-Bot in #1058
- Upgrade Google Java Format 1.20.0 -> 1.21.0 by @Picnic-Bot in #1068
- Upgrade NullAway 0.10.23 -> 0.10.24 by @Picnic-Bot in #1066
- Upgrade git-commit-id-maven-plugin 7.0.0 -> 8.0.0 by @Picnic-Bot in #1067
- Upgrade git-commit-id-maven-plugin 8.0.0 -> 8.0.1 by @Picnic-Bot in #1072
- Upgrade OpenRewrite Templating 1.5.1 -> 1.6.0 by @Picnic-Bot in #1073
- Upgrade Jackson 2.16.1 -> 2.16.2 by @Picnic-Bot in #1071
- Upgrade extra-enforcer-rules 1.7.0 -> 1.8.0 by @Picnic-Bot in #1074
New Contributors
- @dirkvbok made their first contribution in #1047
- @DimaLegeza made their first contribution in #733
Full Changelog: v0.15.0...v0.16.0
v0.15.0
Announcements 🌟
- This is the final release that can be run with JDK 11. Starting with the next release, JDK 17 will be the new baseline. Note that this only places a constraint on the JDK used by your build; it will still be possible to target JDK 11.
- We introduced support for OpenRewrite's
rewrite-templating
annotation processor (see rewrite-templating). Refaster rules are now converted into matching recipes and bundled as part of theerror-prone-contrib
artifact. Note that not all rules are supported yet.- Add
rewrite-templating
annotation processor to also produce OpenRewrite recipes by @timtebeek in #925
- Add
What's Changed
🚀 New Error Prone checks and Refaster rules
- Introduce assorted Reactor Refaster rules by @Stephan202 in #763
- Extend
StepVerifierLastStepVerifyErrorClass
Refaster rule by @Venorcis in #813 - Introduce
ClassRules
Refaster rule collection by @Stephan202 in #811 - Introduce additional Mockito Refaster rules by @Stephan202 in #777
- Introduce
FluxEmpty
Refaster rule by @Venorcis in #815 - Introduce
{Mono,Flux}OfType
Refaster rules by @werli in #810 - Introduce
PatternRules
Refaster rule collection by @Stephan202 in #771 - Introduce
StreamOf{1,2,3,4,5}
Refaster rules by @Venorcis in #814 - Introduce assorted
BigDecimal#signum
Refaster rules by @Venorcis in #812 - Introduce
{Integer,Long}SignumIs{Positive,Negative}
Refaster rules by @Stephan202 in #822 - Introduce
IsEmpty
matcher for use by Refaster templates by @Stephan202 in #744 - Introduce
JUnitNullaryParameterizedTestDeclaration
check by @Venorcis in #817 - Introduce
IsIdentityOperation
matcher for use by Refaster templates by @Stephan202 in #749 - Introduce
NonStaticImport
check by @cernat-catalin in #450 - Introduce
ConstantsFormat
Refaster rule by @Stephan202 in #883 - Introduce
CanonicalClassNameUsage
check by @Stephan202 in #881 - Introduce
UnqualifiedSuggestedFixImport
check by @Stephan202 in #880 - Introduce
ErrorProneRuntimeClasspath
check by @Stephan202 in #882 - Extend
OptionalIdentity
Refaster rule by @werli in #951 - Introduce
RefasterMethodParameterOrder
check by @Stephan202 in #775 - Introduce
InputStreamRules
Refaster rule collection by @Stephan202 in #963 - Introduce additional
Multimap
Refaster rules by @Stephan202 in #971 - Introduce
{Max,Min}ByNaturalOrder
Refaster rules by @Stephan202 in #970 - Introduce additional Reactor Refaster rules by @Stephan202 in #969
- Extend
TimeRules
Refaster rule collection by @Venorcis in #979 - Extend
StreamIsEmpty
Refaster rule by @giovannizotta in #1025 - Introduce
NewStringFromCharArray{,SubSequence}
Refaster rules by @BLasan in #1012 - Introduce
ExhaustiveRefasterTypeMigration
check by @Stephan202 in #770
✨ Improvements
- Disallow static import of
BugCheckerRefasctoringTestHelper.TestMode#TEXT_MATCH
by @rickie in #862 - Simplify
AbstractMatcherTestChecker
by @Stephan202 in #853 - Require static importing of some
com.fasterxml.jackson.annotation
enums by @arichapn in #910 - Disallow static import of
com.google.errorprone.{VisitorState,util.ASTHelpers}
members by @rickie in #922 - Prevent likely static import clash with
FailWithMessage{,AndThrowable}
Refaster rules by @Stephan202 in #939 - Allow static imports of
ZERO
andONE
identifiers by @rickie in #996 - Have
ErrorProneRuntimeClasspath
ignore non-public types by @Stephan202 in #972 - Have
RequestMappingAnnotation
recognize@CurrentSecurityContext
parameters by @MLabusquiere in #1006 - Disallow static import of
{Mono,Flux}
and partially allowempty
by @rickie in #992 - Introduce
error-prone-experimental
module by @rickie in #1003 - Introduce
error-prone-guidelines
module by @rickie in #1002
🐛 Bug fixes
- Have
ThrowsCheckedException
also consider supertypes by @Stephan202 in #914 - Avoid NPE in
IsEmpty
matcher by @Stephan202 in #978 - Prevent
ExplicitEnumOrdering
from throwing an NPE by @Stephan202 in #998
📚 Documentation, test and build improvements
- Enable test for
ClassRules
rule collection by @rickie in #826 - Build and test against JDK 21 instead of JDK 20 by @Stephan202 in #832
- Drop obsolete Maven configuration by @Stephan202 in #851
- Introduce
BugPatternTestExtractor
with tests by @rickie in #494 - Introduce Checkstyle integration test by @Stephan202 in #865
- Renew Arcmutate OSS license by @Stephan202 in #864
- Apply assorted build improvements by @Stephan202 in #866
- Add link to conference talk in README by @rickie in #877
- Show Christmas Cody in README and on website home page by @rickie in #923
- Skip SonarCloud analysis of PRs from forked repositories by @Stephan202 in #926
- Update Error Prone
-XepExcludedPaths
flag to be Windows-compatible by @Stephan202 in #927 - Show original Cody in README and on website home page by @rickie in #956
- Update year to 2024 in
footer_custom.html
andLICENSE.md
by @Stephan202 in #955 - Make
BugPattern{,Test}Extractor
tests more maintainable by @Stephan202 in #937 - Work around IntelliJ IDEA bug IDEA-342187 by @Stephan202 in #958
- Build with Maven 3.9.6 by @Stephan202 in #964
- Run
org.kordamp.maven:pomchecker-maven-plugin:1.10.0:check-maven-central
by @Stephan202 in #491 - Drop workaround for resolved Refaster bug by @Stephan202 in #974
- Drop unnecessary dependency declarations by @Stephan202 in #973
- Fix the mutation test setup by @Stephan202 in #976
- Publish Error Prone compatibility matrix on website by @Stephan202 in #938
- Actually skip test failures during SonarCloud analysis by @Stephan202 in #986
- Sync Checkstyle integration test by @Stephan202 in #999
- Run builds on macOS 14 rather than macOS 12 by @Stephan202 in https://github.com/PicnicSupermarket/error-prone-support...
v0.14.0
What's Changed
🚀 New Error Prone checks and Refaster rules
- Introduce
StreamIterate
Refaster rule by @Stephan202 in #762 - Introduce
FileRules
Refaster rule collection by @Stephan202 in #767 - Introduce
CollectionContains
Refaster rule by @Stephan202 in #766 - Introduce assorted
Optional
Refaster rules by @Stephan202 in #764 - Introduce additional equality Refaster rules by @Stephan202 in #765
⚠️ Update considerations and deprecations
- Drop
ScheduledTransactionTrace
check by @Stephan202 in #788
📚 Documentation, test and build improvements
- Disallow
autovalue.shaded.*
imports by @Stephan202 in #774 - Upgrade JDKs used by GitHub Actions builds by @Stephan202 in #780
📈 Dependency upgrades
- Upgrade Checkstyle 10.12.2 -> 10.12.3 by @Picnic-Bot in #769
- Upgrade Pitest Git plugins 1.1.1 -> 1.1.2 by @Picnic-Bot in #772
- Upgrade Arcmutate 1.1.3 -> 1.2.0 by @Picnic-Bot in #805
- Upgrade Forbidden APIs plugin 3.5.1 -> 3.6 by @Picnic-Bot in #806
- Upgrade CodeQL v2.21.4 -> v2.21.9 by @Picnic-Bot in #786
- Upgrade Spring Boot 2.7.15 -> 2.7.16 by @Picnic-Bot in #799
- Upgrade NullAway 0.10.12 -> 0.10.14 by @Picnic-Bot in #776
- Upgrade Checker Framework Annotations 3.37.0 -> 3.38.0 by @Picnic-Bot in #773
- Upgrade pitest-maven-plugin 1.14.4 -> 1.15.0 by @Picnic-Bot in #803
- Upgrade Modernizer Maven Plugin 2.6.0 -> 2.7.0 by @Picnic-Bot in #801
- Upgrade Google Java Format 1.17.0 -> 1.18.0 by @Picnic-Bot in #809
- Upgrade Checker Framework Annotations 3.38.0 -> 3.39.0 by @Picnic-Bot in #808
- Upgrade versions-maven-plugin 2.16.0 -> 2.16.1 by @Picnic-Bot in #797
- Upgrade Byte Buddy 1.14.7 -> 1.14.8 by @Picnic-Bot in #790
- Upgrade Checkstyle 10.12.3 -> 10.12.4 by @Picnic-Bot in #807
- Upgrade actions/checkout v3.6.0 -> v4.1.0 by @Picnic-Bot in #779
- Upgrade dawidd6/action-download-artifact v2.27.0 -> v2.28.0 by @Picnic-Bot in #796
- Upgrade maven-javadoc-plugin 3.5.0 -> 3.6.0 by @Picnic-Bot in #793
- Upgrade actions/setup-java v3.12.0 -> v3.13.0 by @Picnic-Bot in #798
- Upgrade New Relic Java Agent 8.5.0 -> 8.6.0 by @Picnic-Bot in #785
- Upgrade maven-enforcer-plugin 3.4.0 -> 3.4.1 by @Picnic-Bot in #787
- Upgrade actions/upload-artifact v3.1.2 -> v3.1.3 by @Picnic-Bot in #782
- Upgrade AutoValue 1.10.3 -> 1.10.4 by @Picnic-Bot in #784
- Upgrade Project Reactor 2022.0.10 -> 2022.0.11 by @Picnic-Bot in #789
- Upgrade Spring 5.3.29 -> 5.3.30 by @Picnic-Bot in #791
- Upgrade AspectJ 1.9.20 -> 1.9.20.1 by @Picnic-Bot in #781
- Upgrade Swagger 2.2.15 -> 2.2.16 by @Picnic-Bot in #795
- Upgrade fmt-maven-plugin 2.20 -> 2.21.1 by @Picnic-Bot in #804
- Upgrade SLF4J 2.0.7 -> 2.0.9 by @Picnic-Bot in #778
- Upgrade sonar-maven-plugin 3.9.1.2184 -> 3.10.0.2594 by @Picnic-Bot in #792
- Upgrade Error Prone 2.21.1 -> 2.22.0 by @Picnic-Bot in #800
Full Changelog: v0.13.0...v0.14.0
v0.13.0
What's Changed
🚀 New Error Prone checks and Refaster rules
- Introduce
MonoSingle
Refaster rule by @rickie in #703 - Introduce
MongoDBTextFilterUsage
check by @philleonard in #649 - Introduce
{Flux,{Double,Int,Long,}Stream}TakeWhile
Refaster rules by @mohamedsamehsalah in #727 - Introduce
NestedPublishers
check by @mohamedsamehsalah in #642 - Introduce
VerifyOnlyElementInFlux
Refaster rule by @giovannizotta in #617
📚 Documentation, test and build improvements
- Fix typos in
CanonicalSyntaxAnnotation
source by @rickie in #738 - Have Renovate file GitHub CodeQL upgrade PRs once every four weeks by @rickie in #745
- Introduce mutation test script for changed code by @Stephan202 in #757
📈 Dependency upgrades
- Upgrade Arcmutate 1.0.5 -> 1.1.0 by @Picnic-Bot in #692
- Upgrade New Relic Java Agent 8.3.0 -> 8.4.0 by @Picnic-Bot in #690
- Upgrade Truth 1.1.4 -> 1.1.5 by @Picnic-Bot in #688
- Upgrade Mockito 5.3.1 -> 5.4.0 by @Picnic-Bot in #689
- Upgrade Spring 5.3.27 -> 5.3.28 by @Picnic-Bot in #687
- Upgrade AutoCommon 1.2.1 -> 1.2.2 by @Picnic-Bot in #681
- Upgrade Spring Boot 2.7.12 -> 2.7.13 by @Picnic-Bot in #694
- Upgrade maven-clean-plugin 3.2.0 -> 3.3.1 by @Picnic-Bot in #693
- Upgrade Swagger 2.2.12 -> 2.2.13 by @Picnic-Bot in #698
- Upgrade ossf/scorecard-action v2.1.3 -> v2.2.0 by @Picnic-Bot in #697
- Upgrade Checkstyle 10.12.0 -> 10.12.1 by @Picnic-Bot in #699
- Upgrade NullAway 0.10.10 -> 0.10.11 by @Picnic-Bot in #695
- Upgrade pitest-maven-plugin 1.14.1 -> 1.14.2 by @Picnic-Bot in #696
- Upgrade Swagger 2.2.13 -> 2.2.14 by @Picnic-Bot in #702
- Upgrade github/codeql-action v2.2.11 -> v2.20.1 by @Picnic-Bot in #670
- Upgrade AutoValue 1.10.1 -> 1.10.2 by @Picnic-Bot in #704
- Upgrade ruby/setup-ruby v1.126.0 -> v1.152.0 by @Picnic-Bot in #706
- Upgrade version.pitest-git 1.0.11 -> 1.0.12 by @Picnic-Bot in #710
- Upgrade Arcmutate 1.1.0 -> 1.1.1 by @Picnic-Bot in #708
- Upgrade license-maven-plugin 2.1.0 -> 2.2.0 by @Picnic-Bot in #712
- Upgrade Pitest JUnit 5 Accelerator 1.0.5 -> 1.0.6 by @Picnic-Bot in #709
- Upgrade CodeQL v2.20.1 -> v2.20.2 by @Picnic-Bot in #707
- Upgrade Guava 32.0.1-jre -> 32.1.1-jre by @Picnic-Bot in #705
- Upgrade Checker Framework Annotations 3.35.0 -> 3.36.0 by @Picnic-Bot in #711
- Upgrade Arcmutate 1.1.1 -> 1.1.2 by @Picnic-Bot in #714
- Upgrade CodeQL v2.20.2 -> v2.20.3 by @Picnic-Bot in #715
- Upgrade Swagger 2.2.14 -> 2.2.15 by @Picnic-Bot in #717
- Upgrade actions/upload-pages-artifact v1.0.9 -> v2.0.0 by @Picnic-Bot in #720
- Upgrade actions/deploy-pages v2.0.2 -> v2.0.3 by @Picnic-Bot in #718
- Upgrade Project Reactor 2022.0.8 -> 2022.0.9 by @Picnic-Bot in #721
- Upgrade Error Prone fork v2.20.0-picnic-1 -> v2.20.0-picnic-2 by @Stephan202 in #725
- Upgrade Spring Boot 2.7.13 -> 2.7.14 by @Picnic-Bot in #726
- Upgrade Spring 5.3.28 -> 5.3.29 by @Picnic-Bot in #723
- Upgrade Checkstyle 10.12.1 -> 10.12.2 by @Picnic-Bot in #734
- Upgrade New Relic Java Agent 8.4.0 -> 8.5.0 by @Picnic-Bot in #732
- Upgrade actions/setup-java v3.11.0 -> v3.12.0 by @Picnic-Bot in #730
- Upgrade JUnit 5 5.9.3 -> 5.10.0 by @Picnic-Bot in #729
- Upgrade sortpom-maven-plugin 3.2.1 -> 3.3.0 by @Picnic-Bot in #731
- Upgrade Checker Framework Annotations 3.36.0 -> 3.37.0 by @Picnic-Bot in #736
- Upgrade Error Prone 2.20.0 -> 2.21.0 by @Picnic-Bot in #737
- Upgrade NullAway 0.10.11 -> 0.10.12 by @Picnic-Bot in #740
- Upgrade Arcmutate 1.1.2 -> 1.1.3 by @Picnic-Bot in #739
- Upgrade Pitest Git plugins 1.0.12 -> 1.1.0 by @Picnic-Bot in #742
- Upgrade Error Prone 2.21.0 -> 2.21.1 by @Picnic-Bot in #743
- Upgrade errorprone-slf4j 0.1.18 -> 0.1.20 by @Picnic-Bot in #741
- Upgrade CodeQL v2.20.3 -> v2.21.2 by @Picnic-Bot in #722
- Upgrade pitest-maven-plugin 1.14.2 -> 1.14.3 by @Picnic-Bot in #748
- Upgrade Guava 32.1.1-jre -> 32.1.2-jre by @Picnic-Bot in #735
- Upgrade actions/deploy-pages v2.0.3 -> v2.0.4 by @Picnic-Bot in #747
- Upgrade CodeQL v2.21.2 -> v2.21.3 by @Picnic-Bot in #746
- Upgrade version.pitest-git 1.1.0 -> 1.1.1 by @Picnic-Bot in #750
- Upgrade CodeQL v2.21.3 -> v2.21.4 by @Picnic-Bot in #751
- Upgrade Project Reactor 2022.0.9 -> 2022.0.10 by @Picnic-Bot in #754
- Upgrade Byte Buddy 1.14.5 -> 1.14.6 by @Picnic-Bot in #753
- Upgrade pitest-maven-plugin 1.14.3 -> 1.14.4 by @Picnic-Bot in #756
- Upgrade AutoValue 1.10.2 -> 1.10.3 by @Picnic-Bot in #752
- Upgrade AspectJ 1.9.19 -> 1.9.20 by @Picnic-Bot in #755
- Upgrade actions/checkout v3.5.3 -> v3.6.0 by @Picnic-Bot in #761
- Upgrade Spring Boot 2.7.14 -> 2.7.15 by @Picnic-Bot in #760
- Upgrade Mockito 5.4.0 -> 5.5.0 by @Picnic-Bot in #758
- Upgrade maven-enforcer-plugin 3.3.0 -> 3.4.0 by @Picnic-Bot in #759
- Upgrade Byte Buddy 1.14.6 -> 1.14.7 by @Picnic-Bot in #768
Full Changelog: v0.12.0...v0.13.0
v0.12.0
What's Changed
🚀 New Error Prone checks and Refaster rules
- Rewrite
Optional#orElse
toOptional#orElseGet
for non-constant expressions by @mlrprananta in #527
✨ Improvements
- Align TestMode import across test classes by @philleonard in #630
- Improve
AbstractMatcherTestChecker
by @Stephan202 in #599
📚 Documentation, test and build improvements
📈 Dependency upgrades
- Upgrade com.fasterxml.jackson:jackson-bom 2.15.0 -> 2.15.1 by @Picnic-Bot in #631
- Upgrade io.swagger.core.v3:swagger-annotations 2.2.9 -> 2.2.10 by @Picnic-Bot in #628
- Upgrade io.swagger:swagger-annotations 1.6.10 -> 1.6.11 by @Picnic-Bot in #629
- Upgrade org.testng:testng 7.7.1 -> 7.8.0 by @Picnic-Bot in #639
- Upgrade org.apache.maven.plugins:maven-checkstyle-plugin 3.2.2 -> 3.3.0 by @Picnic-Bot in #645
- Upgrade org.apache.maven.plugins:maven-dependency-plugin 3.5.0 -> 3.6.0 by @Picnic-Bot in #646
- Upgrade version.auto-service 1.0.1 -> 1.1.0 by @Picnic-Bot in #647
- Upgrade io.github.git-commit-id:git-commit-id-maven-plugin 5.0.0 -> 6.0.0 by @Picnic-Bot in #635
- Upgrade version.pitest-git 1.0.10 -> 1.0.11 by @Picnic-Bot in #634
- Upgrade org.pitest:pitest-maven 1.13.1 -> 1.14.0 by @Picnic-Bot in #633
- Upgrade org.apache.maven.plugins:maven-source-plugin 3.2.1 -> 3.3.0 by @Picnic-Bot in #643
- Upgrade org.pitest:pitest-junit5-plugin 1.1.2 -> 1.2.0 by @Picnic-Bot in #638
- Upgrade org.springframework.boot:spring-boot-test 2.7.11 -> 2.7.12 by @Picnic-Bot in #637
- Upgrade org.pitest:pitest-maven 1.14.0 -> 1.14.1 by @Picnic-Bot in #648
- Upgrade com.puppycrawl.tools:checkstyle 10.11.0 -> 10.12.0 by @Picnic-Bot in #651
- Upgrade com.google.guava:guava-bom 31.1-jre -> 32.0.0-jre by @Picnic-Bot in #650
- Upgrade org.codehaus.mojo:extra-enforcer-rules 1.6.2 -> 1.7.0 by @Picnic-Bot in #661
- Upgrade org.checkerframework:checker-qual 3.34.0 -> 3.35.0 by @Picnic-Bot in #660
- Upgrade com.newrelic.agent.java:newrelic-api 8.2.0 -> 8.3.0 by @Picnic-Bot in #659
- Upgrade org.apache.maven.plugins:maven-release-plugin 3.0.0 -> 3.0.1 by @Picnic-Bot in #662
- Upgrade com.google.truth:truth 1.1.3 -> 1.1.4 by @Picnic-Bot in #653
- Upgrade com.fasterxml.jackson:jackson-bom 2.15.1 -> 2.15.2 by @Picnic-Bot in #652
- Upgrade com.groupcdg.arcmutate:base 1.0.4 -> 1.0.5 by @Picnic-Bot in #656
- Upgrade net.bytebuddy:byte-buddy 1.14.4 -> 1.14.5 by @Picnic-Bot in #658
- Upgrade io.swagger.core.v3:swagger-annotations 2.2.10 -> 2.2.11 by @Picnic-Bot in #657
- Upgrade license-maven-plugin 2.0.1 -> 2.1.0 by @Picnic-Bot in #671
- Upgrade versions-maven-plugin 2.15.0 -> 2.16.0 by @Picnic-Bot in #678
- Upgrade Surefire 3.1.0 -> 3.1.2 by @Picnic-Bot in #666
- Upgrade Guava 32.0.0-jre -> 32.0.1-jre by @Picnic-Bot in #677
- Upgrade AutoService 1.1.0 -> 1.1.1 by @Picnic-Bot in #682
- Upgrade Swagger 2.2.11 -> 2.2.12 by @Picnic-Bot in #684
- Upgrade actions/setup-java v3.8.0 -> v3.11.0 by @Picnic-Bot in #668
- Upgrade Project Reactor 2022.0.7 -> 2022.0.8 by @Picnic-Bot in #683
- Upgrade actions/deploy-pages v1.2.3 -> v1.2.8 by @Picnic-Bot in #663
- Upgrade actions/checkout v3.1.0 -> v3.5.3 by @Picnic-Bot in #667
- Upgrade actions/deploy-pages v1.2.8 -> v2.0.2 by @Picnic-Bot in #674
- Upgrade actions/configure-pages v2.1.3 -> v3.0.6 by @Picnic-Bot in #673
- Upgrade actions/upload-pages-artifact v1.0.5 -> v1.0.9 by @Picnic-Bot in #665
- Upgrade dawidd6/action-download-artifact v2.24.2 -> v2.27.0 by @Picnic-Bot in #669
- Upgrade actions/upload-artifact v3.1.1 -> v3.1.2 by @Picnic-Bot in #664
- Upgrade Error Prone 2.19.1 -> 2.20.0 by @Stephan202 in #685
New Contributors
- @philleonard made their first contribution in #630
Full Changelog: v0.11.1...v0.12.0