Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade OpenRewrite Templating 1.17.1 -> 1.19.1 #1437

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

Picnic-DevPla-Bot
Copy link
Contributor

@Picnic-DevPla-Bot Picnic-DevPla-Bot commented Nov 26, 2024

This PR contains the following updates:

Package Type Update Change
OpenRewrite Templating minor 1.17.1 -> 1.19.1
OpenRewrite Templating compile minor 1.17.1 -> 1.19.1

Release Notes

openrewrite/rewrite-templating (OpenRewrite Templating)

v1.19.1: 1.19.1

Compare Source

What's Changed

Full Changelog: https://github.com/openrewrite/rewrite-templating

v1.19.0: 1.19.0

Compare Source

Full Changelog: openrewrite/rewrite-templating@v1.18.0...v1.19.0

v1.18.0: 1.18.0

Compare Source

What's Changed

Full Changelog: openrewrite/rewrite-templating@v1.17.1...v1.18.0


  • If you want to rebase/retry this PR, check this box

@Picnic-DevPla-Bot
Copy link
Contributor Author

Picnic-DevPla-Bot commented Nov 26, 2024

Suggested commit message:

Upgrade OpenRewrite Templating 1.17.1 -> 1.19.1

See:
- https://github.com/openrewrite/rewrite-templating/releases/tag/v1.18.0
- https://github.com/openrewrite/rewrite-templating/releases/tag/v1.19.0
- https://github.com/openrewrite/rewrite-templating/releases/tag/v1.19.1
- https://github.com/openrewrite/rewrite-templating/compare/v1.17.1...v1.19.1

@Stephan202 Stephan202 added this to the 0.20.0 milestone Nov 26, 2024
Copy link
Member

@Stephan202 Stephan202 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the generated recipes, a few maybeRemoveImport calls are removed or added (perhaps moved around), and in EqualityRulesRecipes a visitUnary method is added.

Overview of differences
diff -r -u /tmp/recipes-before/AssertJNumberRulesRecipes.java /tmp/recipes-after/AssertJNumberRulesRecipes.java
--- /tmp/recipes-before/AssertJNumberRulesRecipes.java	2024-11-26 07:58:41.088981578 +0100
+++ /tmp/recipes-after/AssertJNumberRulesRecipes.java	2024-11-26 07:58:58.040105969 +0100
@@ -154,8 +154,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
+                    if ((matcher = before4.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractDoubleAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -163,8 +163,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
+                    if ((matcher = before3.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractFloatAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -172,8 +172,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
+                    if ((matcher = before6.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigDecimal");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigDecimalAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -181,8 +182,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
+                    if ((matcher = before5$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigInteger");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -190,8 +192,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
+                    if ((matcher = before5$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigInteger");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -199,8 +202,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
+                    if ((matcher = before0$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -208,8 +211,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractFloatAssert");
+                    if ((matcher = before0$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -217,8 +220,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before4.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractDoubleAssert");
+                    if ((matcher = before2$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -226,9 +229,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigInteger");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
+                    if ((matcher = before2$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -236,9 +238,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigInteger");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
+                    if ((matcher = before1$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -246,9 +247,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before6.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigDecimal");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigDecimalAssert");
+                    if ((matcher = before1$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -388,8 +388,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
+                    if ((matcher = before4.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractDoubleAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -397,8 +397,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
+                    if ((matcher = before3.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractFloatAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -406,8 +406,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
+                    if ((matcher = before6.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigDecimal");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigDecimalAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -415,8 +416,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
+                    if ((matcher = before5$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigInteger");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -424,8 +426,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
+                    if ((matcher = before5$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigInteger");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -433,8 +436,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
+                    if ((matcher = before0$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -442,8 +445,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractFloatAssert");
+                    if ((matcher = before0$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -451,8 +454,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before4.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractDoubleAssert");
+                    if ((matcher = before2$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -460,9 +463,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigInteger");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
+                    if ((matcher = before2$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -470,9 +472,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigInteger");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
+                    if ((matcher = before1$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -480,9 +481,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before6.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigDecimal");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigDecimalAssert");
+                    if ((matcher = before1$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -622,8 +622,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
+                    if ((matcher = before4.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractDoubleAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -631,8 +631,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
+                    if ((matcher = before3.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractFloatAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -640,8 +640,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
+                    if ((matcher = before6.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigDecimal");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigDecimalAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -649,8 +650,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
+                    if ((matcher = before5$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigInteger");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -658,8 +660,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
+                    if ((matcher = before5$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigInteger");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -667,8 +670,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
+                    if ((matcher = before0$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -676,8 +679,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractFloatAssert");
+                    if ((matcher = before0$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -685,8 +688,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before4.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractDoubleAssert");
+                    if ((matcher = before2$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -694,9 +697,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigInteger");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
+                    if ((matcher = before2$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -704,9 +706,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigInteger");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
+                    if ((matcher = before1$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -714,9 +715,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before6.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigDecimal");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigDecimalAssert");
+                    if ((matcher = before1$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -856,8 +856,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
+                    if ((matcher = before4.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractDoubleAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -865,8 +865,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
+                    if ((matcher = before3.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractFloatAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -874,8 +874,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
+                    if ((matcher = before6.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigDecimal");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigDecimalAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -883,8 +884,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
+                    if ((matcher = before5$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigInteger");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -892,8 +894,9 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
+                    if ((matcher = before5$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.math.BigInteger");
+                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -901,8 +904,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
+                    if ((matcher = before0$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -910,8 +913,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractFloatAssert");
+                    if ((matcher = before0$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractShortAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -919,8 +922,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before4.matcher(getCursor())).find()) {
-                        maybeRemoveImport("org.assertj.core.api.AbstractDoubleAssert");
+                    if ((matcher = before2$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -928,9 +931,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5$0.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigInteger");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
+                    if ((matcher = before2$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractLongAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -938,9 +940,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5$1.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigInteger");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigIntegerAssert");
+                    if ((matcher = before1$0.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
@@ -948,9 +949,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before6.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.math.BigDecimal");
-                        maybeRemoveImport("org.assertj.core.api.AbstractBigDecimalAssert");
+                    if ((matcher = before1$1.matcher(getCursor())).find()) {
+                        maybeRemoveImport("org.assertj.core.api.AbstractIntegerAssert");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0)),
                                 getCursor(),
diff -r -u /tmp/recipes-before/EqualityRulesRecipes.java /tmp/recipes-after/EqualityRulesRecipes.java
--- /tmp/recipes-before/EqualityRulesRecipes.java	2024-11-26 07:58:41.306983177 +0100
+++ /tmp/recipes-after/EqualityRulesRecipes.java	2024-11-26 07:58:58.184107026 +0100
@@ -161,6 +161,12 @@
                                 SHORTEN_NAMES, SIMPLIFY_BOOLEANS
                         );
                     }
+                    return super.visitMethodInvocation(elem, ctx);
+                }
+
+                @Override
+                public J visitUnary(J.Unary elem, ExecutionContext ctx) {
+                    JavaTemplate.Matcher matcher;
                     if ((matcher = before0.matcher(getCursor())).find()) {
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -177,7 +183,7 @@
                                 SHORTEN_NAMES, SIMPLIFY_BOOLEANS
                         );
                     }
-                    return super.visitMethodInvocation(elem, ctx);
+                    return super.visitUnary(elem, ctx);
                 }
 
             };
@@ -245,6 +251,12 @@
                                 SHORTEN_NAMES, SIMPLIFY_BOOLEANS
                         );
                     }
+                    return super.visitMethodInvocation(elem, ctx);
+                }
+
+                @Override
+                public J visitUnary(J.Unary elem, ExecutionContext ctx) {
+                    JavaTemplate.Matcher matcher;
                     if ((matcher = before0.matcher(getCursor())).find()) {
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -261,7 +273,7 @@
                                 SHORTEN_NAMES, SIMPLIFY_BOOLEANS
                         );
                     }
-                    return super.visitMethodInvocation(elem, ctx);
+                    return super.visitUnary(elem, ctx);
                 }
 
             };
diff -r -u /tmp/recipes-before/TestNGToAssertJRulesRecipes.java /tmp/recipes-after/TestNGToAssertJRulesRecipes.java
--- /tmp/recipes-before/TestNGToAssertJRulesRecipes.java	2024-11-26 07:58:41.646985672 +0100
+++ /tmp/recipes-after/TestNGToAssertJRulesRecipes.java	2024-11-26 07:58:58.468109110 +0100
@@ -1035,7 +1035,7 @@
                 @Override
                 public J visitMethodInvocation(J.MethodInvocation elem, ExecutionContext ctx) {
                     JavaTemplate.Matcher matcher;
-                    if ((matcher = before.matcher(getCursor())).find()) {
+                    if ((matcher = before8.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1044,7 +1044,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0.matcher(getCursor())).find()) {
+                    if ((matcher = before.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1053,7 +1053,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1.matcher(getCursor())).find()) {
+                    if ((matcher = before7.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1062,7 +1062,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2.matcher(getCursor())).find()) {
+                    if ((matcher = before9.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.util.Map");
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1071,7 +1072,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
+                    if ((matcher = before4.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1080,7 +1081,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before4.matcher(getCursor())).find()) {
+                    if ((matcher = before3.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1089,7 +1090,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5.matcher(getCursor())).find()) {
+                    if ((matcher = before6.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1098,7 +1099,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before6.matcher(getCursor())).find()) {
+                    if ((matcher = before5.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1107,7 +1108,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before7.matcher(getCursor())).find()) {
+                    if ((matcher = before0.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1116,7 +1117,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before8.matcher(getCursor())).find()) {
+                    if ((matcher = before2.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1125,8 +1126,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before9.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.util.Map");
+                    if ((matcher = before1.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1227,7 +1227,7 @@
                 @Override
                 public J visitMethodInvocation(J.MethodInvocation elem, ExecutionContext ctx) {
                     JavaTemplate.Matcher matcher;
-                    if ((matcher = before.matcher(getCursor())).find()) {
+                    if ((matcher = before8.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1236,7 +1236,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0.matcher(getCursor())).find()) {
+                    if ((matcher = before.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1245,7 +1245,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1.matcher(getCursor())).find()) {
+                    if ((matcher = before7.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1254,7 +1254,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2.matcher(getCursor())).find()) {
+                    if ((matcher = before9.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.util.Map");
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1263,7 +1264,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
+                    if ((matcher = before4.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1272,7 +1273,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before4.matcher(getCursor())).find()) {
+                    if ((matcher = before3.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1281,7 +1282,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5.matcher(getCursor())).find()) {
+                    if ((matcher = before6.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1290,7 +1291,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before6.matcher(getCursor())).find()) {
+                    if ((matcher = before5.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1299,7 +1300,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before7.matcher(getCursor())).find()) {
+                    if ((matcher = before0.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1308,7 +1309,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before8.matcher(getCursor())).find()) {
+                    if ((matcher = before2.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1317,8 +1318,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before9.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.util.Map");
+                    if ((matcher = before1.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1652,7 +1652,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0.matcher(getCursor())).find()) {
+                    if ((matcher = before7.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1661,7 +1661,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1.matcher(getCursor())).find()) {
+                    if ((matcher = before4.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1670,7 +1670,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2.matcher(getCursor())).find()) {
+                    if ((matcher = before3.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1679,7 +1679,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
+                    if ((matcher = before6.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1688,7 +1688,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before4.matcher(getCursor())).find()) {
+                    if ((matcher = before5.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1697,7 +1697,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5.matcher(getCursor())).find()) {
+                    if ((matcher = before0.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1706,7 +1706,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before6.matcher(getCursor())).find()) {
+                    if ((matcher = before2.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1715,7 +1715,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before7.matcher(getCursor())).find()) {
+                    if ((matcher = before1.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -1814,7 +1814,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0.matcher(getCursor())).find()) {
+                    if ((matcher = before7.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1823,7 +1823,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1.matcher(getCursor())).find()) {
+                    if ((matcher = before4.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1832,7 +1832,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2.matcher(getCursor())).find()) {
+                    if ((matcher = before3.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1841,7 +1841,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
+                    if ((matcher = before6.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1850,7 +1850,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before4.matcher(getCursor())).find()) {
+                    if ((matcher = before5.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1859,7 +1859,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5.matcher(getCursor())).find()) {
+                    if ((matcher = before0.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1868,7 +1868,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before6.matcher(getCursor())).find()) {
+                    if ((matcher = before2.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -1877,7 +1877,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before7.matcher(getCursor())).find()) {
+                    if ((matcher = before1.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2095,7 +2095,7 @@
                 @Override
                 public J visitMethodInvocation(J.MethodInvocation elem, ExecutionContext ctx) {
                     JavaTemplate.Matcher matcher;
-                    if ((matcher = before.matcher(getCursor())).find()) {
+                    if ((matcher = before8.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2104,7 +2104,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0.matcher(getCursor())).find()) {
+                    if ((matcher = before.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2113,7 +2113,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1.matcher(getCursor())).find()) {
+                    if ((matcher = before7.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2122,7 +2122,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2.matcher(getCursor())).find()) {
+                    if ((matcher = before10.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.util.Map");
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2131,7 +2132,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
+                    if ((matcher = before9.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.util.Set");
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2149,7 +2151,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5.matcher(getCursor())).find()) {
+                    if ((matcher = before3.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2167,7 +2169,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before7.matcher(getCursor())).find()) {
+                    if ((matcher = before5.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2176,7 +2178,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before8.matcher(getCursor())).find()) {
+                    if ((matcher = before0.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2185,8 +2187,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before9.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.util.Set");
+                    if ((matcher = before2.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2195,8 +2196,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before10.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.util.Map");
+                    if ((matcher = before1.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(1)),
@@ -2301,7 +2301,7 @@
                 @Override
                 public J visitMethodInvocation(J.MethodInvocation elem, ExecutionContext ctx) {
                     JavaTemplate.Matcher matcher;
-                    if ((matcher = before.matcher(getCursor())).find()) {
+                    if ((matcher = before8.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2310,7 +2310,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before0.matcher(getCursor())).find()) {
+                    if ((matcher = before.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2319,7 +2319,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before1.matcher(getCursor())).find()) {
+                    if ((matcher = before7.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2328,7 +2328,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before2.matcher(getCursor())).find()) {
+                    if ((matcher = before10.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.util.Map");
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2337,7 +2338,8 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before3.matcher(getCursor())).find()) {
+                    if ((matcher = before9.matcher(getCursor())).find()) {
+                        maybeRemoveImport("java.util.Set");
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2355,7 +2357,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before5.matcher(getCursor())).find()) {
+                    if ((matcher = before3.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2373,7 +2375,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before7.matcher(getCursor())).find()) {
+                    if ((matcher = before5.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2382,7 +2384,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before8.matcher(getCursor())).find()) {
+                    if ((matcher = before0.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2391,8 +2393,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before9.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.util.Set");
+                    if ((matcher = before2.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),
@@ -2401,8 +2402,7 @@
                                 SHORTEN_NAMES
                         );
                     }
-                    if ((matcher = before10.matcher(getCursor())).find()) {
-                        maybeRemoveImport("java.util.Map");
+                    if ((matcher = before1.matcher(getCursor())).find()) {
                         maybeRemoveImport("org.testng.Assert.assertNotEquals");
                         return embed(
                                 after.apply(getCursor(), elem.getCoordinates().replace(), matcher.parameter(0), matcher.parameter(2), matcher.parameter(1)),

@Picnic-DevPla-Bot Picnic-DevPla-Bot changed the title Upgrade OpenRewrite Templating 1.17.1 -> 1.18.0 Upgrade OpenRewrite Templating 1.17.1 -> 1.19.0 Nov 28, 2024
@Picnic-DevPla-Bot Picnic-DevPla-Bot force-pushed the renovate/version.rewrite-templating branch from 0eaa929 to 9f825ba Compare November 28, 2024 02:03
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

5 similar comments
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@Stephan202
Copy link
Member

Stephan202 commented Nov 28, 2024

Version 1.19.0 1.19.1 LGTM too.

@Picnic-DevPla-Bot Picnic-DevPla-Bot changed the title Upgrade OpenRewrite Templating 1.17.1 -> 1.19.0 Upgrade OpenRewrite Templating 1.17.1 -> 1.19.1 Nov 29, 2024
@Picnic-DevPla-Bot Picnic-DevPla-Bot force-pushed the renovate/version.rewrite-templating branch from 9f825ba to a500507 Compare November 29, 2024 02:04
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

3 similar comments
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@Picnic-DevPla-Bot Picnic-DevPla-Bot force-pushed the renovate/version.rewrite-templating branch 2 times, most recently from 7eedea2 to 7e9939e Compare December 3, 2024 02:07
Copy link

github-actions bot commented Dec 3, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

3 similar comments
Copy link

github-actions bot commented Dec 3, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

github-actions bot commented Dec 3, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

github-actions bot commented Dec 3, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@Picnic-DevPla-Bot Picnic-DevPla-Bot force-pushed the renovate/version.rewrite-templating branch from 7e9939e to 759ab1f Compare December 4, 2024 02:12
Copy link

github-actions bot commented Dec 4, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

1 similar comment
Copy link

github-actions bot commented Dec 4, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

github-actions bot commented Dec 4, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

3 similar comments
Copy link

github-actions bot commented Dec 4, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

github-actions bot commented Dec 4, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

github-actions bot commented Dec 4, 2024

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@Picnic-DevPla-Bot Picnic-DevPla-Bot force-pushed the renovate/version.rewrite-templating branch from 759ab1f to b16a27f Compare December 9, 2024 02:04
Copy link

sonarcloud bot commented Dec 9, 2024

@rickie rickie merged commit 75ca303 into master Dec 9, 2024
15 checks passed
@rickie rickie deleted the renovate/version.rewrite-templating branch December 9, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants