Releases: openrewrite/rewrite-migrate-java
Releases · openrewrite/rewrite-migrate-java
3.36.0
What's Changed
- Move StringFormatted recipe from Java 17 upgrade to Java best practices by @timtebeek in #1106
- Skip
IfElseIfConstructToSwitchwhen a trailing non-== nullbinary check is present by @timtebeek in #1109 - Skip
UseTextBlockswhen literal value matches its source by @timtebeek in #1111 - Skip
UseMapOfforHashMapsubclasses likeLinkedHashMapandTreeMapby @timtebeek in #1113 - Skip
RenameUnderscoreIdentifieron Kotlin and Groovy sources by @MBoegers in #1114 - Do not add
java.io.IOimport inReplaceSystemOutWithIOPrintby @timtebeek in #1118 - fix: do not replace lambda params with underscore when used as assignment target by @darrencilia in #1117
- Route WSS4J message.token classes to their real 2.x packages by @Jenson3210 in #1122
- Migrate
com.sun.xml.bind.marshaller.NamespacePrefixMappertoorg.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapperby @Jenson3210 in #1121 - Fix
RefineSwitchCasesgenerating invalid guard on enum constant labels by @timtebeek in #1124 - Skip unparseable Java versions in FindJavaVersion instead of reporting -1 by @timtebeek in #1125
New Contributors
- @darrencilia made their first contribution in #1117
Full Changelog: v3.35.0...v3.36.0
3.35.0
What's Changed
- Add
java.io.IOimport inReplaceSystemOutWithIOPrintby @timtebeek in #1093 - Skip
UseMapOfwhenput()argument is a null literal by @timtebeek in #1094 - Migrate JAXB XJC binding files declaring version 2.0/2.1/2.2 by @MBoegers in #1098
- Preserve explicit type arguments in MigrateCollections* recipes by @timtebeek in #1099
- Route Maven through Moderne Artifactory cache to avoid HTTP 429 by @Jenson3210 in #1096
- Load sun.internal.new[Class].jar directly to fix CI test failures by @timtebeek in #1101
- Skip explicit type arguments containing wildcards in
UseVarForGenericMethodInvocationsby @timtebeek in #1102 - Skip
varwhen target type inference widens a generic argument by @timtebeek in #1103 - Skip
IfElseIfConstructToSwitchwheninstanceoftypes are missing by @timtebeek in #1095 - Revert inline Maven mirror (now in gh-automation#95) by @Jenson3210 in #1104
- Aggregate FindJavaVersion to one row per repository by @timtebeek in #1105
Full Changelog: v3.34.1...v3.35.0
v3.34.1
What's Changed
- OpenRewrite v8.81.6
- Refresh UpdateSdkManTest fixtures after SDKMAN CSV update by @steve-aom-elliott in #1073
- Add more static analysis recipes to java-best-practices by @timtebeek in #1075
- OpenRewrite recipe best practices by @timtebeek in #1074
- Add jspecify hyperlink by @sullis in #1076
- Skip
varwhen reassignment relies on declared supertype by @timtebeek in #1078 - Keep parentheses when renaming typed lambda parameter to underscore by @timtebeek in #1082
- Document null-probing semantic differences in singleton migrations by @timtebeek in #1081
- Skip main migration when referenced as static API by @timtebeek in #1084
- Skip
Immutable*.copyOfrewrite when argument is not aCollectionby @timtebeek in #1089 - Keep block body when refined switch arm contains an if statement by @timtebeek in #1088
- Use
Map.ofEntrieswhen migrating more than 10 entries by @timtebeek in #1090
Full Changelog: v3.34.0...v3.34.1
3.34.0
What's Changed
- Ensure
casealways has a space before the label inIfElseIfConstructToSwitchby @timtebeek in #1071 - Add
UsePredicateNotto replace cast-and-negate withPredicate.not(..)by @timtebeek in #1072
Full Changelog: v3.33.0...v3.34.0
3.33.1
Full Changelog: v3.33.0...v3.33.1
3.33.0
What's Changed
- Add URLEqualsHashCodeRecipes to Java best practices by @timtebeek in #1058
- Add --add-opens JVM args to surefire/failsafe for Java 25 by @timtebeek in #1055
- Collapse UpgradeDockerImageVersion cartesian via ChangeFrom capture by @jkschneider in #1060
- Add NoJodaTime to Java best practices by @timtebeek in #1061
- Support
copyOfmigration for Guava by @greg-at-moderne in #1062 - Rename
_identifier to__for Java ≤ 8 source files by @Jenson3210 in #1063 - Fix
ClassCastExceptionon parenthesized initializers invarrecipes by @knutwannheden in #1064 - Gate Kotlin-based Java version cap on actual Kotlin sources by @timtebeek in #1066
- Fix
MigrateCollections*template errors on complex expression contexts by @knutwannheden in #1067
Full Changelog: v3.32.1...v3.33.0
v3.32.1
What's Changed
- Remove parentheses from single unnamed lambda parameters by @timtebeek in #1054
- Skip Kotlin and Groovy files in ReplaceUnusedVariablesWithUnderscore by @timtebeek in #1056
Full Changelog: v3.32.0...v3.32.1
3.32.0
What's Changed
- Cap Java version at 24 for Kotlin <2.3 in UpgradeToJava25 by @timtebeek in #1035
- Inline JavaTemplate fields at their usage sites by @timtebeek in #1036
- Use
JavaTemplate.apply()static method by @timtebeek in #1037 - Fix ClassCastException in UseVarForGenericMethodInvocations by @knutwannheden in #1039
- Upgrade Mockito to 5.17.x in Java 25 migration recipe by @timtebeek in #1041
- Migrate Mojarra and Glassfish JSF dependencies to Jakarta Faces by @timtebeek in #1040
- Upgrade jakarta.annotation-api to 3.0.x in Jakarta EE 11 recipe by @timtebeek in #1042
- Move type-use annotations to array brackets during JSpecify migration by @timtebeek in #1038
- Add explicit casts for visitor visit() return type by @timtebeek in #1049
- Add UseVarForTypeCast and UseVarForConstructors to UseVar recipe by @timtebeek in #1050
- Replace Collections.emptyXXX with Immutable Static Factory Methods by @mkarg in #1045
- Fix
AddMissingMethodImplementationgenerating stubs for inherited methods by @timtebeek in #1051 - Add EnableLombokAnnotationProcessor to LombokBestPractices by @timtebeek in #1052
New Contributors
Full Changelog: v3.31.3...v3.32.0
3.31.3
What's Changed
- Add acceptTransitive to javax-to-jakarta AddDependency entries by @steve-aom-elliott in #1034
Full Changelog: v3.31.2...v3.31.3
3.31.2
What's Changed
- Only add lombok annotation processor to modules that use lombok by @Jenson3210 in #1031
- Add missing AddDependency fallback for jakarta.servlet.jsp-api in JSP migration by @steve-aom-elliott in #1032
- Add missing AddDependency fallback entries for all javax-to-jakarta migrations by @steve-aom-elliott in #1033
Full Changelog: v3.31.1...v3.31.2