Skip to content

Releases: openrewrite/rewrite-migrate-java

3.36.0

03 Jun 14:24
d4df178

Choose a tag to compare

What's Changed

  • Move StringFormatted recipe from Java 17 upgrade to Java best practices by @timtebeek in #1106
  • Skip IfElseIfConstructToSwitch when a trailing non-== null binary check is present by @timtebeek in #1109
  • Skip UseTextBlocks when literal value matches its source by @timtebeek in #1111
  • Skip UseMapOf for HashMap subclasses like LinkedHashMap and TreeMap by @timtebeek in #1113
  • Skip RenameUnderscoreIdentifier on Kotlin and Groovy sources by @MBoegers in #1114
  • Do not add java.io.IO import in ReplaceSystemOutWithIOPrint by @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.NamespacePrefixMapper to org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper by @Jenson3210 in #1121
  • Fix RefineSwitchCases generating 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

Full Changelog: v3.35.0...v3.36.0

3.35.0

21 May 10:54

Choose a tag to compare

What's Changed

  • Add java.io.IO import in ReplaceSystemOutWithIOPrint by @timtebeek in #1093
  • Skip UseMapOf when put() 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 UseVarForGenericMethodInvocations by @timtebeek in #1102
  • Skip var when target type inference widens a generic argument by @timtebeek in #1103
  • Skip IfElseIfConstructToSwitch when instanceof types 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

07 May 07:26
cb4f1bc

Choose a tag to compare

What's Changed

Full Changelog: v3.34.0...v3.34.1

3.34.0

27 Apr 10:19

Choose a tag to compare

What's Changed

  • Ensure case always has a space before the label in IfElseIfConstructToSwitch by @timtebeek in #1071
  • Add UsePredicateNot to replace cast-and-negate with Predicate.not(..) by @timtebeek in #1072

Full Changelog: v3.33.0...v3.34.0

3.33.1

23 Apr 10:06
eac4344

Choose a tag to compare

Full Changelog: v3.33.0...v3.33.1

3.33.0

21 Apr 09:23
eac4344

Choose a tag to compare

What's Changed

Full Changelog: v3.32.1...v3.33.0

v3.32.1

10 Apr 13:17
fde81eb

Choose a tag to compare

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

08 Apr 13:23
2388f91

Choose a tag to compare

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 AddMissingMethodImplementation generating 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

30 Mar 19:31
d4107b9

Choose a tag to compare

What's Changed

Full Changelog: v3.31.2...v3.31.3

3.31.2

30 Mar 17:49
bef57d1

Choose a tag to compare

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