-
Notifications
You must be signed in to change notification settings - Fork 39
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.19.1 -> 1.20.0 #1470
base: master
Are you sure you want to change the base?
Conversation
Suggested commit message:
|
Looks good. No mutations were possible for these changes. |
3 similar comments
Looks good. No mutations were possible for these changes. |
Looks good. No mutations were possible for these changes. |
Looks good. No mutations were possible for these changes. |
Quality Gate passedIssues Measures |
Tried this build locally and got
Could we try again for the CodeQL failure? |
Thanks @timtebeek, retriggered the build! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes changes to the preconditions of the generated recipes. Didn't investigate whether correct; CC @timtebeek.
Changed to the generated recipes
diff -u -r AssertJBigDecimalRulesRecipes.java AssertJBigDecimalRulesRecipes.java
--- AssertJBigDecimalRulesRecipes.java 2024-12-19 15:51:29.485832681 +0100
+++ AssertJBigDecimalRulesRecipes.java 2024-12-19 15:51:40.359016422 +0100
@@ -116,11 +116,11 @@
Preconditions.and(
new UsesType<>("java.math.BigDecimal", true),
new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBigDecimalAssert isCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigDecimalAssert isCloseTo(..)", true)
),
javaVisitor
);
@@ -195,11 +195,11 @@
Preconditions.and(
new UsesType<>("java.math.BigDecimal", true),
new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBigDecimalAssert isNotCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigDecimalAssert isNotCloseTo(..)", true)
),
javaVisitor
);
diff -u -r AssertJBigIntegerRulesRecipes.java AssertJBigIntegerRulesRecipes.java
--- AssertJBigIntegerRulesRecipes.java 2024-12-19 15:51:29.493832821 +0100
+++ AssertJBigIntegerRulesRecipes.java 2024-12-19 15:51:40.368016568 +0100
@@ -119,11 +119,11 @@
Preconditions.and(
new UsesType<>("java.math.BigInteger", true),
new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isCloseTo(..)", true)
),
javaVisitor
);
@@ -198,11 +198,11 @@
Preconditions.and(
new UsesType<>("java.math.BigInteger", true),
new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isNotCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isNotCloseTo(..)", true)
),
javaVisitor
);
@@ -288,13 +288,13 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isZero(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isEqualTo(..)", true),
- Preconditions.and(
- new UsesType<>("java.math.BigInteger", true),
- new UsesMethod<>("org.assertj.core.api.AbstractAssert isEqualTo(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("java.math.BigInteger", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractAssert isEqualTo(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isZero(..)", true)
+ )
),
javaVisitor
);
@@ -380,13 +380,13 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isNotZero(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractAssert isNotEqualTo(..)", true),
- Preconditions.and(
- new UsesType<>("java.math.BigInteger", true),
- new UsesMethod<>("org.assertj.core.api.AbstractAssert isNotEqualTo(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("java.math.BigInteger", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractAssert isNotEqualTo(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractAssert isNotEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isNotZero(..)", true)
+ )
),
javaVisitor
);
@@ -472,13 +472,13 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isOne(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isEqualTo(..)", true),
- Preconditions.and(
- new UsesType<>("java.math.BigInteger", true),
- new UsesMethod<>("org.assertj.core.api.AbstractAssert isEqualTo(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("java.math.BigInteger", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractAssert isEqualTo(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigIntegerAssert isOne(..)", true)
+ )
),
javaVisitor
);
diff -u -r AssertJBooleanRulesRecipes.java AssertJBooleanRulesRecipes.java
--- AssertJBooleanRulesRecipes.java 2024-12-19 15:51:29.505833032 +0100
+++ AssertJBooleanRulesRecipes.java 2024-12-19 15:51:40.380016764 +0100
@@ -262,11 +262,11 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBooleanAssert", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractAssert isEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isNotEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractAssert isNotEqualTo(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractAssert isEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractAssert isNotEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isNotEqualTo(..)", true)
+ )
),
javaVisitor
);
@@ -424,11 +424,11 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBooleanAssert", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractAssert isEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isNotEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractAssert isNotEqualTo(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractAssert isEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractAssert isNotEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isNotEqualTo(..)", true)
+ )
),
javaVisitor
);
diff -u -r AssertJByteRulesRecipes.java AssertJByteRulesRecipes.java
--- AssertJByteRulesRecipes.java 2024-12-19 15:51:29.511833137 +0100
+++ AssertJByteRulesRecipes.java 2024-12-19 15:51:40.386016861 +0100
@@ -118,11 +118,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractByteAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractByteAssert isCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractByteAssert isCloseTo(..)", true)
),
javaVisitor
);
@@ -196,11 +196,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractByteAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractByteAssert isNotCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractByteAssert isNotCloseTo(..)", true)
),
javaVisitor
);
diff -u -r AssertJCharSequenceRulesRecipes.java AssertJCharSequenceRulesRecipes.java
--- AssertJCharSequenceRulesRecipes.java 2024-12-19 15:51:29.523833347 +0100
+++ AssertJCharSequenceRulesRecipes.java 2024-12-19 15:51:40.399017073 +0100
@@ -113,12 +113,12 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.lang.CharSequence length(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isNotPositive(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isNotPositive(..)", true)
+ ),
+ new UsesMethod<>("java.lang.CharSequence length(..)", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -190,12 +190,12 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractAssert", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.lang.CharSequence length(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isNotEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isPositive(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isNotEqualTo(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isPositive(..)", true)
+ ),
+ new UsesMethod<>("java.lang.CharSequence length(..)", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -255,9 +255,9 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractAssert", true),
+ new UsesMethod<>("java.lang.CharSequence length(..)", true),
new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.lang.CharSequence length(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
diff -u -r AssertJDoubleRulesRecipes.java AssertJDoubleRulesRecipes.java
--- AssertJDoubleRulesRecipes.java 2024-12-19 15:51:29.530833470 +0100
+++ AssertJDoubleRulesRecipes.java 2024-12-19 15:51:40.406017187 +0100
@@ -192,11 +192,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractDoubleAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractDoubleAssert isCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractDoubleAssert isCloseTo(..)", true)
),
javaVisitor
);
@@ -270,11 +270,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractDoubleAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractDoubleAssert isNotCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractDoubleAssert isNotCloseTo(..)", true)
),
javaVisitor
);
diff -u -r AssertJFloatRulesRecipes.java AssertJFloatRulesRecipes.java
--- AssertJFloatRulesRecipes.java 2024-12-19 15:51:29.537833593 +0100
+++ AssertJFloatRulesRecipes.java 2024-12-19 15:51:40.413017301 +0100
@@ -192,11 +192,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractFloatAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractFloatAssert isCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractFloatAssert isCloseTo(..)", true)
),
javaVisitor
);
@@ -270,11 +270,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractFloatAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractFloatAssert isNotCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractFloatAssert isNotCloseTo(..)", true)
),
javaVisitor
);
diff -u -r AssertJIntegerRulesRecipes.java AssertJIntegerRulesRecipes.java
--- AssertJIntegerRulesRecipes.java 2024-12-19 15:51:29.542833680 +0100
+++ AssertJIntegerRulesRecipes.java 2024-12-19 15:51:40.418017382 +0100
@@ -118,11 +118,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isCloseTo(..)", true)
),
javaVisitor
);
@@ -196,11 +196,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isNotCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isNotCloseTo(..)", true)
),
javaVisitor
);
diff -u -r AssertJLongRulesRecipes.java AssertJLongRulesRecipes.java
--- AssertJLongRulesRecipes.java 2024-12-19 15:51:29.548833786 +0100
+++ AssertJLongRulesRecipes.java 2024-12-19 15:51:40.424017479 +0100
@@ -118,11 +118,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractLongAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractLongAssert isCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractLongAssert isCloseTo(..)", true)
),
javaVisitor
);
@@ -196,11 +196,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractLongAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractLongAssert isNotCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractLongAssert isNotCloseTo(..)", true)
),
javaVisitor
);
diff -u -r AssertJNumberRulesRecipes.java AssertJNumberRulesRecipes.java
--- AssertJNumberRulesRecipes.java 2024-12-19 15:51:29.572834206 +0100
+++ AssertJNumberRulesRecipes.java 2024-12-19 15:51:40.449017886 +0100
@@ -263,19 +263,19 @@
return Preconditions.check(
Preconditions.or(
Preconditions.and(
- new UsesType<>("java.math.BigInteger", true),
- new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
+ new UsesType<>("java.math.BigDecimal", true),
+ new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isGreaterThan(..)", true)
),
Preconditions.and(
new UsesType<>("java.math.BigInteger", true),
new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isGreaterThanOrEqualTo(..)", true),
- new UsesMethod<>("java.math.BigInteger valueOf(..)", true)
+ new UsesMethod<>("java.math.BigInteger valueOf(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isGreaterThanOrEqualTo(..)", true)
),
Preconditions.and(
- new UsesType<>("java.math.BigDecimal", true),
- new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
+ new UsesType<>("java.math.BigInteger", true),
+ new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isGreaterThan(..)", true)
)
),
@@ -497,20 +497,20 @@
return Preconditions.check(
Preconditions.or(
Preconditions.and(
- new UsesType<>("java.math.BigInteger", true),
- new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isLessThanOrEqualTo(..)", true)
+ new UsesType<>("java.math.BigDecimal", true),
+ new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigDecimalAssert isLessThanOrEqualTo(..)", true)
),
Preconditions.and(
new UsesType<>("java.math.BigInteger", true),
new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isLessThan(..)", true),
- new UsesMethod<>("java.math.BigInteger valueOf(..)", true)
+ new UsesMethod<>("java.math.BigInteger valueOf(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isLessThan(..)", true)
),
Preconditions.and(
- new UsesType<>("java.math.BigDecimal", true),
- new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBigDecimalAssert isLessThanOrEqualTo(..)", true)
+ new UsesType<>("java.math.BigInteger", true),
+ new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isLessThanOrEqualTo(..)", true)
)
),
javaVisitor
@@ -731,19 +731,19 @@
return Preconditions.check(
Preconditions.or(
Preconditions.and(
- new UsesType<>("java.math.BigInteger", true),
- new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
+ new UsesType<>("java.math.BigDecimal", true),
+ new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isLessThan(..)", true)
),
Preconditions.and(
new UsesType<>("java.math.BigInteger", true),
new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isLessThanOrEqualTo(..)", true),
- new UsesMethod<>("java.math.BigInteger valueOf(..)", true)
+ new UsesMethod<>("java.math.BigInteger valueOf(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isLessThanOrEqualTo(..)", true)
),
Preconditions.and(
- new UsesType<>("java.math.BigDecimal", true),
- new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
+ new UsesType<>("java.math.BigInteger", true),
+ new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isLessThan(..)", true)
)
),
@@ -965,20 +965,20 @@
return Preconditions.check(
Preconditions.or(
Preconditions.and(
- new UsesType<>("java.math.BigInteger", true),
- new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isGreaterThanOrEqualTo(..)", true)
+ new UsesType<>("java.math.BigDecimal", true),
+ new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBigDecimalAssert isGreaterThanOrEqualTo(..)", true)
),
Preconditions.and(
new UsesType<>("java.math.BigInteger", true),
new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isGreaterThan(..)", true),
- new UsesMethod<>("java.math.BigInteger valueOf(..)", true)
+ new UsesMethod<>("java.math.BigInteger valueOf(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isGreaterThan(..)", true)
),
Preconditions.and(
- new UsesType<>("java.math.BigDecimal", true),
- new UsesType<>("org.assertj.core.api.AbstractBigDecimalAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBigDecimalAssert isGreaterThanOrEqualTo(..)", true)
+ new UsesType<>("java.math.BigInteger", true),
+ new UsesType<>("org.assertj.core.api.AbstractBigIntegerAssert", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractComparableAssert isGreaterThanOrEqualTo(..)", true)
)
),
javaVisitor
diff -u -r AssertJPrimitiveRulesRecipes.java AssertJPrimitiveRulesRecipes.java
--- AssertJPrimitiveRulesRecipes.java 2024-12-19 15:51:29.601834715 +0100
+++ AssertJPrimitiveRulesRecipes.java 2024-12-19 15:51:40.478018358 +0100
@@ -141,11 +141,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBooleanAssert", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -241,11 +241,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBooleanAssert", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -319,11 +319,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBooleanAssert", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -397,11 +397,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBooleanAssert", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -475,11 +475,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBooleanAssert", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -553,11 +553,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractBooleanAssert", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true),
- new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true),
+ new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
diff -u -r AssertJRulesRecipes.java AssertJRulesRecipes.java
--- AssertJRulesRecipes.java 2024-12-19 15:51:29.612834907 +0100
+++ AssertJRulesRecipes.java 2024-12-19 15:51:40.488018521 +0100
@@ -102,11 +102,11 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("org.assertj.core.api.AbstractDoubleAssert", true),
new UsesType<>("java.util.OptionalDouble", true),
+ new UsesType<>("org.assertj.core.api.AbstractDoubleAssert", true),
+ new UsesMethod<>("java.util.OptionalDouble getAsDouble(..)", true),
new UsesMethod<>("org.assertj.core.api.AbstractDoubleAssert isEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.util.OptionalDouble getAsDouble(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -166,11 +166,11 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("org.assertj.core.api.AbstractIntegerAssert", true),
new UsesType<>("java.util.OptionalInt", true),
+ new UsesType<>("org.assertj.core.api.AbstractIntegerAssert", true),
+ new UsesMethod<>("java.util.OptionalInt getAsInt(..)", true),
new UsesMethod<>("org.assertj.core.api.AbstractIntegerAssert isEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.util.OptionalInt getAsInt(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -230,11 +230,11 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("org.assertj.core.api.AbstractLongAssert", true),
new UsesType<>("java.util.OptionalLong", true),
+ new UsesType<>("org.assertj.core.api.AbstractLongAssert", true),
+ new UsesMethod<>("java.util.OptionalLong getAsLong(..)", true),
new UsesMethod<>("org.assertj.core.api.AbstractLongAssert isEqualTo(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.util.OptionalLong getAsLong(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
diff -u -r AssertJShortRulesRecipes.java AssertJShortRulesRecipes.java
--- AssertJShortRulesRecipes.java 2024-12-19 15:51:29.617834995 +0100
+++ AssertJShortRulesRecipes.java 2024-12-19 15:51:40.493018602 +0100
@@ -118,11 +118,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractShortAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractShortAssert isCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractShortAssert isCloseTo(..)", true)
),
javaVisitor
);
@@ -196,11 +196,11 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractShortAssert", true),
- new UsesMethod<>("org.assertj.core.api.AbstractShortAssert isNotCloseTo(..)", true),
Preconditions.or(
- new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
- new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
- )
+ new UsesMethod<>("org.assertj.core.data.Offset offset(..)", true),
+ new UsesMethod<>("org.assertj.core.data.Percentage withPercentage(..)", true)
+ ),
+ new UsesMethod<>("org.assertj.core.api.AbstractShortAssert isNotCloseTo(..)", true)
),
javaVisitor
);
diff -u -r AssertJStringRulesRecipes.java AssertJStringRulesRecipes.java
--- AssertJStringRulesRecipes.java 2024-12-19 15:51:29.633835276 +0100
+++ AssertJStringRulesRecipes.java 2024-12-19 15:51:40.509018862 +0100
@@ -166,9 +166,9 @@
};
return Preconditions.check(
Preconditions.and(
+ new UsesMethod<>("java.lang.String isEmpty(..)", true),
new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.lang.String isEmpty(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -288,9 +288,9 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractAssert", true),
+ new UsesMethod<>("java.lang.String isEmpty(..)", true),
new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.lang.String isEmpty(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -350,9 +350,9 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractAssert", true),
+ new UsesMethod<>("java.lang.String matches(..)", true),
new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isTrue(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.lang.String matches(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -412,9 +412,9 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractAssert", true),
+ new UsesMethod<>("java.lang.String matches(..)", true),
new UsesMethod<>("org.assertj.core.api.AbstractBooleanAssert isFalse(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.lang.String matches(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -474,12 +474,12 @@
};
return Preconditions.check(
Preconditions.and(
+ new UsesType<>("java.nio.charset.Charset", true),
new UsesType<>("java.nio.file.Files", true),
- new UsesType<>("org.assertj.core.api.AbstractStringAssert", true),
new UsesType<>("java.nio.file.Path", true),
- new UsesType<>("java.nio.charset.Charset", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.nio.file.Files readString(..)", true)
+ new UsesType<>("org.assertj.core.api.AbstractStringAssert", true),
+ new UsesMethod<>("java.nio.file.Files readString(..)", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
@@ -540,10 +540,10 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("java.nio.file.Files", true),
- new UsesType<>("org.assertj.core.api.AbstractStringAssert", true),
new UsesType<>("java.nio.file.Path", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true),
- new UsesMethod<>("java.nio.file.Files readString(..)", true)
+ new UsesType<>("org.assertj.core.api.AbstractStringAssert", true),
+ new UsesMethod<>("java.nio.file.Files readString(..)", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThat(..)", true)
),
javaVisitor
);
diff -u -r AssertJThrowingCallableRulesRecipes.java AssertJThrowingCallableRulesRecipes.java
--- AssertJThrowingCallableRulesRecipes.java 2024-12-19 15:51:29.667835872 +0100
+++ AssertJThrowingCallableRulesRecipes.java 2024-12-19 15:51:40.542019399 +0100
@@ -125,8 +125,8 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalArgumentException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalArgumentException(..)", true),
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -188,9 +188,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalArgumentException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessage(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalArgumentException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -252,9 +252,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalArgumentException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageStartingWith(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalArgumentException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -316,9 +316,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalArgumentException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageContaining(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalArgumentException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -380,8 +380,8 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true),
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -443,9 +443,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessage(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -507,9 +507,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageStartingWith(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -571,9 +571,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageContaining(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -635,9 +635,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageNotContaining(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIllegalStateException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -699,8 +699,8 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true),
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -762,9 +762,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessage(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -826,9 +826,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageStartingWith(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -890,9 +890,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageContaining(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -954,9 +954,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageNotContaining(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatNullPointerException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1018,8 +1018,8 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true),
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1081,9 +1081,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessage(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1145,9 +1145,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageStartingWith(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1209,9 +1209,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageContaining(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1273,9 +1273,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageNotContaining(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatIOException(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1337,8 +1337,8 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true)
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true),
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1400,9 +1400,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessage(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1464,9 +1464,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageStartingWith(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1528,9 +1528,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageContaining(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
@@ -1592,9 +1592,9 @@
Preconditions.and(
new UsesType<>("org.assertj.core.api.AbstractObjectAssert", true),
new UsesType<>("org.assertj.core.api.ThrowableAssert.ThrowingCallable", true),
+ new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true),
new UsesMethod<>("org.assertj.core.api.ThrowableAssertAlternative withMessageNotContaining(..)", true),
- new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true),
- new UsesMethod<>("org.assertj.core.api.Assertions assertThatExceptionOfType(..)", true)
+ new UsesMethod<>("org.assertj.core.api.ThrowableTypeAssert isThrownBy(..)", true)
),
javaVisitor
);
diff -u -r AssortedRulesRecipes.java AssortedRulesRecipes.java
--- AssortedRulesRecipes.java 2024-12-19 15:51:29.671835942 +0100
+++ AssortedRulesRecipes.java 2024-12-19 15:51:40.547019481 +0100
@@ -222,19 +222,19 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.Stream", true),
new UsesType<>("com.google.common.base.Splitter", true),
+ new UsesType<>("java.util.stream.Stream", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("com.google.common.collect.Streams", true),
- new UsesMethod<>("com.google.common.collect.Streams stream(..)", true),
- new UsesMethod<>("com.google.common.base.Splitter split(..)", true)
- ),
- Preconditions.and(
- new UsesMethod<>("java.util.Collection stream(..)", true),
- new UsesMethod<>("com.google.common.base.Splitter splitToList(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("com.google.common.base.Splitter splitToList(..)", true),
+ new UsesMethod<>("java.util.Collection stream(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.Streams", true),
+ new UsesMethod<>("com.google.common.base.Splitter split(..)", true),
+ new UsesMethod<>("com.google.common.collect.Streams stream(..)", true)
+ )
+ )
),
javaVisitor
);
diff -u -r BigDecimalRulesRecipes.java BigDecimalRulesRecipes.java
--- BigDecimalRulesRecipes.java 2024-12-19 15:51:29.677836047 +0100
+++ BigDecimalRulesRecipes.java 2024-12-19 15:51:40.553019578 +0100
@@ -116,9 +116,9 @@
Preconditions.and(
new UsesType<>("java.math.BigDecimal", true),
Preconditions.or(
- new UsesMethod<>("java.math.BigDecimal valueOf(..)", true),
- new UsesMethod<>("java.math.BigDecimal <constructor>(..)", true)
- )
+ new UsesMethod<>("java.math.BigDecimal <constructor>(..)", true),
+ new UsesMethod<>("java.math.BigDecimal valueOf(..)", true)
+ )
),
javaVisitor
);
@@ -188,9 +188,9 @@
Preconditions.and(
new UsesType<>("java.math.BigDecimal", true),
Preconditions.or(
- new UsesMethod<>("java.math.BigDecimal valueOf(..)", true),
- new UsesMethod<>("java.math.BigDecimal <constructor>(..)", true)
- )
+ new UsesMethod<>("java.math.BigDecimal <constructor>(..)", true),
+ new UsesMethod<>("java.math.BigDecimal valueOf(..)", true)
+ )
),
javaVisitor
);
@@ -260,9 +260,9 @@
Preconditions.and(
new UsesType<>("java.math.BigDecimal", true),
Preconditions.or(
- new UsesMethod<>("java.math.BigDecimal valueOf(..)", true),
- new UsesMethod<>("java.math.BigDecimal <constructor>(..)", true)
- )
+ new UsesMethod<>("java.math.BigDecimal <constructor>(..)", true),
+ new UsesMethod<>("java.math.BigDecimal valueOf(..)", true)
+ )
),
javaVisitor
);
@@ -481,11 +481,9 @@
Preconditions.and(
new UsesType<>("java.math.BigDecimal", true),
Preconditions.or(
- new UsesMethod<>("java.math.BigDecimal compareTo(..)", true),
- new UsesMethod<>("java.math.BigDecimal compareTo(..)", true),
- new UsesMethod<>("java.math.BigDecimal signum(..)", true),
- new UsesMethod<>("java.math.BigDecimal signum(..)", true)
- )
+ new UsesMethod<>("java.math.BigDecimal compareTo(..)", true),
+ new UsesMethod<>("java.math.BigDecimal signum(..)", true)
+ )
),
javaVisitor
);
@@ -577,11 +575,9 @@
Preconditions.and(
new UsesType<>("java.math.BigDecimal", true),
Preconditions.or(
- new UsesMethod<>("java.math.BigDecimal compareTo(..)", true),
- new UsesMethod<>("java.math.BigDecimal compareTo(..)", true),
- new UsesMethod<>("java.math.BigDecimal signum(..)", true),
- new UsesMethod<>("java.math.BigDecimal signum(..)", true)
- )
+ new UsesMethod<>("java.math.BigDecimal compareTo(..)", true),
+ new UsesMethod<>("java.math.BigDecimal signum(..)", true)
+ )
),
javaVisitor
);
diff -u -r BugCheckerRulesRecipes.java BugCheckerRulesRecipes.java
--- BugCheckerRulesRecipes.java 2024-12-19 15:51:29.681836117 +0100
+++ BugCheckerRulesRecipes.java 2024-12-19 15:51:40.557019643 +0100
@@ -116,12 +116,12 @@
Preconditions.and(
new UsesType<>("com.google.errorprone.BugCheckerRefactoringTestHelper", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers", true),
- new UsesMethod<>("com.google.errorprone.BugCheckerRefactoringTestHelper setFixChooser(..)", true)
- ),
- new UsesMethod<>("com.google.errorprone.BugCheckerRefactoringTestHelper setImportOrder(..)", true)
- )
+ Preconditions.and(
+ new UsesType<>("com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers", true),
+ new UsesMethod<>("com.google.errorprone.BugCheckerRefactoringTestHelper setFixChooser(..)", true)
+ ),
+ new UsesMethod<>("com.google.errorprone.BugCheckerRefactoringTestHelper setImportOrder(..)", true)
+ )
),
javaVisitor
);
@@ -181,8 +181,8 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("com.google.errorprone.BugCheckerRefactoringTestHelper", true),
- new UsesMethod<>("com.google.errorprone.BugCheckerRefactoringTestHelper.ExpectOutput addOutputLines(..)", true),
- new UsesMethod<>("com.google.errorprone.BugCheckerRefactoringTestHelper addInputLines(..)", true)
+ new UsesMethod<>("com.google.errorprone.BugCheckerRefactoringTestHelper addInputLines(..)", true),
+ new UsesMethod<>("com.google.errorprone.BugCheckerRefactoringTestHelper.ExpectOutput addOutputLines(..)", true)
),
javaVisitor
);
@@ -251,8 +251,8 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("javax.lang.model.element.Name", true),
- new UsesMethod<>("java.lang.String equals(..)", true),
- new UsesMethod<>("java.lang.CharSequence toString(..)", true)
+ new UsesMethod<>("java.lang.CharSequence toString(..)", true),
+ new UsesMethod<>("java.lang.String equals(..)", true)
),
javaVisitor
);
diff -u -r DoubleStreamRulesRecipes.java DoubleStreamRulesRecipes.java
--- DoubleStreamRulesRecipes.java 2024-12-19 15:51:29.689836258 +0100
+++ DoubleStreamRulesRecipes.java 2024-12-19 15:51:40.566019790 +0100
@@ -228,8 +228,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.DoubleStream", true),
new UsesType<>("java.util.function.DoublePredicate", true),
+ new UsesType<>("java.util.stream.DoubleStream", true),
new UsesMethod<>("java.util.stream.DoubleStream filter(..)", true),
new UsesMethod<>("java.util.stream.DoubleStream sorted(..)", true)
),
@@ -323,14 +323,12 @@
Preconditions.and(
new UsesType<>("java.util.stream.DoubleStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.DoubleStream count(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream count(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream count(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalDouble isEmpty(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream findFirst(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalDouble isEmpty(..)", true),
+ new UsesMethod<>("java.util.stream.DoubleStream findFirst(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.DoubleStream count(..)", true)
+ )
),
javaVisitor
);
@@ -422,14 +420,12 @@
Preconditions.and(
new UsesType<>("java.util.stream.DoubleStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.DoubleStream count(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream count(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream count(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalDouble isPresent(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream findFirst(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalDouble isPresent(..)", true),
+ new UsesMethod<>("java.util.stream.DoubleStream findFirst(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.DoubleStream count(..)", true)
+ )
),
javaVisitor
);
@@ -568,20 +564,20 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.DoubleStream", true),
new UsesType<>("java.util.function.DoublePredicate", true),
+ new UsesType<>("java.util.stream.DoubleStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.DoubleStream anyMatch(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.stream.DoubleStream allMatch(..)", true),
- new UsesMethod<>("java.util.function.DoublePredicate negate(..)", true)
- ),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalDouble isEmpty(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream findAny(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream filter(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalDouble isEmpty(..)", true),
+ new UsesMethod<>("java.util.stream.DoubleStream filter(..)", true),
+ new UsesMethod<>("java.util.stream.DoubleStream findAny(..)", true)
+ ),
+ Preconditions.and(
+ new UsesMethod<>("java.util.function.DoublePredicate negate(..)", true),
+ new UsesMethod<>("java.util.stream.DoubleStream allMatch(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.DoubleStream anyMatch(..)", true)
+ )
),
javaVisitor
);
@@ -649,16 +645,16 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.DoubleStream", true),
new UsesType<>("java.util.function.DoublePredicate", true),
+ new UsesType<>("java.util.stream.DoubleStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.DoubleStream noneMatch(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalDouble isPresent(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream findAny(..)", true),
- new UsesMethod<>("java.util.stream.DoubleStream filter(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalDouble isPresent(..)", true),
+ new UsesMethod<>("java.util.stream.DoubleStream filter(..)", true),
+ new UsesMethod<>("java.util.stream.DoubleStream findAny(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.DoubleStream noneMatch(..)", true)
+ )
),
javaVisitor
);
@@ -715,10 +711,10 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.DoubleStream", true),
new UsesType<>("java.util.function.DoublePredicate", true),
- new UsesMethod<>("java.util.stream.DoubleStream noneMatch(..)", true),
- new UsesMethod<>("java.util.function.DoublePredicate negate(..)", true)
+ new UsesType<>("java.util.stream.DoubleStream", true),
+ new UsesMethod<>("java.util.function.DoublePredicate negate(..)", true),
+ new UsesMethod<>("java.util.stream.DoubleStream noneMatch(..)", true)
),
javaVisitor
);
@@ -775,8 +771,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.DoubleStream", true),
new UsesType<>("java.util.function.DoublePredicate", true),
+ new UsesType<>("java.util.stream.DoubleStream", true),
new UsesMethod<>("java.util.stream.DoubleStream filter(..)", true),
new UsesMethod<>("java.util.stream.DoubleStream takeWhile(..)", true)
),
diff -u -r FileRulesRecipes.java FileRulesRecipes.java
--- FileRulesRecipes.java 2024-12-19 15:51:29.697836398 +0100
+++ FileRulesRecipes.java 2024-12-19 15:51:40.574019920 +0100
@@ -103,9 +103,9 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.nio.file.Paths", true),
- new UsesType<>("java.nio.file.Path", true),
new UsesType<>("java.net.URI", true),
+ new UsesType<>("java.nio.file.Path", true),
+ new UsesType<>("java.nio.file.Paths", true),
new UsesMethod<>("java.nio.file.Paths get(..)", true)
),
javaVisitor
@@ -222,9 +222,9 @@
};
return Preconditions.check(
Preconditions.and(
+ new UsesType<>("java.nio.charset.Charset", true),
new UsesType<>("java.nio.file.Files", true),
new UsesType<>("java.nio.file.Path", true),
- new UsesType<>("java.nio.charset.Charset", true),
new UsesMethod<>("java.lang.String <constructor>(..)", true),
new UsesMethod<>("java.nio.file.Files readAllBytes(..)", true)
),
diff -u -r InputStreamRulesRecipes.java InputStreamRulesRecipes.java
--- InputStreamRulesRecipes.java 2024-12-19 15:51:29.700836450 +0100
+++ InputStreamRulesRecipes.java 2024-12-19 15:51:40.577019968 +0100
@@ -227,8 +227,8 @@
Preconditions.and(
new UsesType<>("com.google.common.io.ByteStreams", true),
new UsesType<>("java.io.InputStream", true),
- new UsesMethod<>("java.io.InputStream readAllBytes(..)", true),
- new UsesMethod<>("com.google.common.io.ByteStreams limit(..)", true)
+ new UsesMethod<>("com.google.common.io.ByteStreams limit(..)", true),
+ new UsesMethod<>("java.io.InputStream readAllBytes(..)", true)
),
javaVisitor
);
diff -u -r IntStreamRulesRecipes.java IntStreamRulesRecipes.java
--- IntStreamRulesRecipes.java 2024-12-19 15:51:29.709836608 +0100
+++ IntStreamRulesRecipes.java 2024-12-19 15:51:40.586020115 +0100
@@ -287,8 +287,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.IntStream", true),
new UsesType<>("java.util.function.IntPredicate", true),
+ new UsesType<>("java.util.stream.IntStream", true),
new UsesMethod<>("java.util.stream.IntStream filter(..)", true),
new UsesMethod<>("java.util.stream.IntStream sorted(..)", true)
),
@@ -382,14 +382,12 @@
Preconditions.and(
new UsesType<>("java.util.stream.IntStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.IntStream count(..)", true),
- new UsesMethod<>("java.util.stream.IntStream count(..)", true),
- new UsesMethod<>("java.util.stream.IntStream count(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalInt isEmpty(..)", true),
- new UsesMethod<>("java.util.stream.IntStream findFirst(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalInt isEmpty(..)", true),
+ new UsesMethod<>("java.util.stream.IntStream findFirst(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.IntStream count(..)", true)
+ )
),
javaVisitor
);
@@ -481,14 +479,12 @@
Preconditions.and(
new UsesType<>("java.util.stream.IntStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.IntStream count(..)", true),
- new UsesMethod<>("java.util.stream.IntStream count(..)", true),
- new UsesMethod<>("java.util.stream.IntStream count(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalInt isPresent(..)", true),
- new UsesMethod<>("java.util.stream.IntStream findFirst(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalInt isPresent(..)", true),
+ new UsesMethod<>("java.util.stream.IntStream findFirst(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.IntStream count(..)", true)
+ )
),
javaVisitor
);
@@ -627,20 +623,20 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.IntStream", true),
new UsesType<>("java.util.function.IntPredicate", true),
+ new UsesType<>("java.util.stream.IntStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.IntStream anyMatch(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.stream.IntStream allMatch(..)", true),
- new UsesMethod<>("java.util.function.IntPredicate negate(..)", true)
- ),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalInt isEmpty(..)", true),
- new UsesMethod<>("java.util.stream.IntStream findAny(..)", true),
- new UsesMethod<>("java.util.stream.IntStream filter(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalInt isEmpty(..)", true),
+ new UsesMethod<>("java.util.stream.IntStream filter(..)", true),
+ new UsesMethod<>("java.util.stream.IntStream findAny(..)", true)
+ ),
+ Preconditions.and(
+ new UsesMethod<>("java.util.function.IntPredicate negate(..)", true),
+ new UsesMethod<>("java.util.stream.IntStream allMatch(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.IntStream anyMatch(..)", true)
+ )
),
javaVisitor
);
@@ -708,16 +704,16 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.IntStream", true),
new UsesType<>("java.util.function.IntPredicate", true),
+ new UsesType<>("java.util.stream.IntStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.IntStream noneMatch(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalInt isPresent(..)", true),
- new UsesMethod<>("java.util.stream.IntStream findAny(..)", true),
- new UsesMethod<>("java.util.stream.IntStream filter(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalInt isPresent(..)", true),
+ new UsesMethod<>("java.util.stream.IntStream filter(..)", true),
+ new UsesMethod<>("java.util.stream.IntStream findAny(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.IntStream noneMatch(..)", true)
+ )
),
javaVisitor
);
@@ -774,10 +770,10 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.IntStream", true),
new UsesType<>("java.util.function.IntPredicate", true),
- new UsesMethod<>("java.util.stream.IntStream noneMatch(..)", true),
- new UsesMethod<>("java.util.function.IntPredicate negate(..)", true)
+ new UsesType<>("java.util.stream.IntStream", true),
+ new UsesMethod<>("java.util.function.IntPredicate negate(..)", true),
+ new UsesMethod<>("java.util.stream.IntStream noneMatch(..)", true)
),
javaVisitor
);
@@ -834,8 +830,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.IntStream", true),
new UsesType<>("java.util.function.IntPredicate", true),
+ new UsesType<>("java.util.stream.IntStream", true),
new UsesMethod<>("java.util.stream.IntStream filter(..)", true),
new UsesMethod<>("java.util.stream.IntStream takeWhile(..)", true)
),
diff -u -r JUnitToAssertJRulesRecipes.java JUnitToAssertJRulesRecipes.java
--- JUnitToAssertJRulesRecipes.java 2024-12-19 15:51:29.740837151 +0100
+++ JUnitToAssertJRulesRecipes.java 2024-12-19 15:51:40.617020619 +0100
@@ -1349,8 +1349,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("org.junit.jupiter.api.function.ThrowingSupplier", true),
new UsesType<>("java.util.function.Supplier", true),
+ new UsesType<>("org.junit.jupiter.api.function.ThrowingSupplier", true),
new UsesMethod<>("org.junit.jupiter.api.Assertions assertDoesNotThrow(..)", true)
),
javaVisitor
diff -u -r LongStreamRulesRecipes.java LongStreamRulesRecipes.java
--- LongStreamRulesRecipes.java 2024-12-19 15:51:29.748837292 +0100
+++ LongStreamRulesRecipes.java 2024-12-19 15:51:40.625020749 +0100
@@ -287,8 +287,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.LongStream", true),
new UsesType<>("java.util.function.LongPredicate", true),
+ new UsesType<>("java.util.stream.LongStream", true),
new UsesMethod<>("java.util.stream.LongStream filter(..)", true),
new UsesMethod<>("java.util.stream.LongStream sorted(..)", true)
),
@@ -382,14 +382,12 @@
Preconditions.and(
new UsesType<>("java.util.stream.LongStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.LongStream count(..)", true),
- new UsesMethod<>("java.util.stream.LongStream count(..)", true),
- new UsesMethod<>("java.util.stream.LongStream count(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalLong isEmpty(..)", true),
- new UsesMethod<>("java.util.stream.LongStream findFirst(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalLong isEmpty(..)", true),
+ new UsesMethod<>("java.util.stream.LongStream findFirst(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.LongStream count(..)", true)
+ )
),
javaVisitor
);
@@ -481,14 +479,12 @@
Preconditions.and(
new UsesType<>("java.util.stream.LongStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.LongStream count(..)", true),
- new UsesMethod<>("java.util.stream.LongStream count(..)", true),
- new UsesMethod<>("java.util.stream.LongStream count(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalLong isPresent(..)", true),
- new UsesMethod<>("java.util.stream.LongStream findFirst(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalLong isPresent(..)", true),
+ new UsesMethod<>("java.util.stream.LongStream findFirst(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.LongStream count(..)", true)
+ )
),
javaVisitor
);
@@ -627,20 +623,20 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.LongStream", true),
new UsesType<>("java.util.function.LongPredicate", true),
+ new UsesType<>("java.util.stream.LongStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.LongStream anyMatch(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.stream.LongStream allMatch(..)", true),
- new UsesMethod<>("java.util.function.LongPredicate negate(..)", true)
- ),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalLong isEmpty(..)", true),
- new UsesMethod<>("java.util.stream.LongStream findAny(..)", true),
- new UsesMethod<>("java.util.stream.LongStream filter(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalLong isEmpty(..)", true),
+ new UsesMethod<>("java.util.stream.LongStream filter(..)", true),
+ new UsesMethod<>("java.util.stream.LongStream findAny(..)", true)
+ ),
+ Preconditions.and(
+ new UsesMethod<>("java.util.function.LongPredicate negate(..)", true),
+ new UsesMethod<>("java.util.stream.LongStream allMatch(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.LongStream anyMatch(..)", true)
+ )
),
javaVisitor
);
@@ -708,16 +704,16 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.LongStream", true),
new UsesType<>("java.util.function.LongPredicate", true),
+ new UsesType<>("java.util.stream.LongStream", true),
Preconditions.or(
- new UsesMethod<>("java.util.stream.LongStream noneMatch(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.util.OptionalLong isPresent(..)", true),
- new UsesMethod<>("java.util.stream.LongStream findAny(..)", true),
- new UsesMethod<>("java.util.stream.LongStream filter(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.util.OptionalLong isPresent(..)", true),
+ new UsesMethod<>("java.util.stream.LongStream filter(..)", true),
+ new UsesMethod<>("java.util.stream.LongStream findAny(..)", true)
+ ),
+ new UsesMethod<>("java.util.stream.LongStream noneMatch(..)", true)
+ )
),
javaVisitor
);
@@ -774,10 +770,10 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.LongStream", true),
new UsesType<>("java.util.function.LongPredicate", true),
- new UsesMethod<>("java.util.stream.LongStream noneMatch(..)", true),
- new UsesMethod<>("java.util.function.LongPredicate negate(..)", true)
+ new UsesType<>("java.util.stream.LongStream", true),
+ new UsesMethod<>("java.util.function.LongPredicate negate(..)", true),
+ new UsesMethod<>("java.util.stream.LongStream noneMatch(..)", true)
),
javaVisitor
);
@@ -834,8 +830,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.util.stream.LongStream", true),
new UsesType<>("java.util.function.LongPredicate", true),
+ new UsesType<>("java.util.stream.LongStream", true),
new UsesMethod<>("java.util.stream.LongStream filter(..)", true),
new UsesMethod<>("java.util.stream.LongStream takeWhile(..)", true)
),
diff -u -r MicrometerRulesRecipes.java MicrometerRulesRecipes.java
--- MicrometerRulesRecipes.java 2024-12-19 15:51:29.756837432 +0100
+++ MicrometerRulesRecipes.java 2024-12-19 15:51:40.633020879 +0100
@@ -122,15 +122,15 @@
new UsesType<>("com.google.common.collect.ImmutableCollection", true),
new UsesType<>("io.micrometer.core.instrument.Tag", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableSet", true),
- new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableList", true),
- new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableList", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableSet", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
+ )
+ )
),
javaVisitor
);
@@ -208,15 +208,15 @@
new UsesType<>("com.google.common.collect.ImmutableCollection", true),
new UsesType<>("io.micrometer.core.instrument.Tag", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableSet", true),
- new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableList", true),
- new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableList", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableSet", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
+ )
+ )
),
javaVisitor
);
@@ -294,15 +294,15 @@
new UsesType<>("com.google.common.collect.ImmutableCollection", true),
new UsesType<>("io.micrometer.core.instrument.Tag", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableSet", true),
- new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableList", true),
- new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableList", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableSet", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
+ )
+ )
),
javaVisitor
);
@@ -380,15 +380,15 @@
new UsesType<>("com.google.common.collect.ImmutableCollection", true),
new UsesType<>("io.micrometer.core.instrument.Tag", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableSet", true),
- new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableList", true),
- new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableList", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableSet", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
+ )
+ )
),
javaVisitor
);
@@ -466,15 +466,15 @@
new UsesType<>("com.google.common.collect.ImmutableCollection", true),
new UsesType<>("io.micrometer.core.instrument.Tag", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableSet", true),
- new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("com.google.common.collect.ImmutableList", true),
- new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableList", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableList of(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("com.google.common.collect.ImmutableSet", true),
+ new UsesMethod<>("com.google.common.collect.ImmutableSet of(..)", true)
+ )
+ )
),
javaVisitor
);
diff -u -r NullRulesRecipes.java NullRulesRecipes.java
--- NullRulesRecipes.java 2024-12-19 15:51:29.760837502 +0100
+++ NullRulesRecipes.java 2024-12-19 15:51:40.636020928 +0100
@@ -73,7 +73,7 @@
@Override
public TreeVisitor<?, ExecutionContext> getVisitor() {
- JavaVisitor<ExecutionContext> javaVisitor = new AbstractRefasterJavaVisitor() {
+ return new AbstractRefasterJavaVisitor() {
final JavaTemplate before$0 = JavaTemplate
.builder("null == #{object:any([email protected] Object)}")
.build();
@@ -108,13 +108,6 @@
}
};
- return Preconditions.check(
- Preconditions.and(
- new UsesType<>("java.util.Objects", true),
- new UsesMethod<>("java.util.Objects isNull(..)", true)
- ),
- javaVisitor
- );
}
}
@@ -143,7 +136,7 @@
@Override
public TreeVisitor<?, ExecutionContext> getVisitor() {
- JavaVisitor<ExecutionContext> javaVisitor = new AbstractRefasterJavaVisitor() {
+ return new AbstractRefasterJavaVisitor() {
final JavaTemplate before$0 = JavaTemplate
.builder("null != #{object:any([email protected] Object)}")
.build();
@@ -178,13 +171,6 @@
}
};
- return Preconditions.check(
- Preconditions.and(
- new UsesType<>("java.util.Objects", true),
- new UsesMethod<>("java.util.Objects nonNull(..)", true)
- ),
- javaVisitor
- );
}
}
diff -u -r ReactorRulesRecipes.java ReactorRulesRecipes.java
--- ReactorRulesRecipes.java 2024-12-19 15:51:29.811838396 +0100
+++ ReactorRulesRecipes.java 2024-12-19 15:51:40.686021741 +0100
@@ -167,8 +167,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("reactor.test.StepVerifier", true),
new UsesType<>("java.time.Duration", true),
+ new UsesType<>("reactor.test.StepVerifier", true),
new UsesMethod<>("reactor.test.StepVerifier verifyThenAssertThat(..)", true)
),
javaVisitor
@@ -424,17 +424,17 @@
Preconditions.and(
new UsesType<>("java.util.function.Predicate", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("java.time.Duration", true),
- new UsesMethod<>("reactor.test.StepVerifier verify(..)", true),
- new UsesMethod<>("reactor.test.StepVerifier.LastStep expectErrorMatches(..)", true)
- ),
- Preconditions.and(
- new UsesMethod<>("reactor.test.StepVerifier.Assertions hasOperatorErrorMatching(..)", true),
- new UsesMethod<>("reactor.test.StepVerifier verifyThenAssertThat(..)", true),
- new UsesMethod<>("reactor.test.StepVerifier.LastStep expectError(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("reactor.test.StepVerifier verifyThenAssertThat(..)", true),
+ new UsesMethod<>("reactor.test.StepVerifier.Assertions hasOperatorErrorMatching(..)", true),
+ new UsesMethod<>("reactor.test.StepVerifier.LastStep expectError(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.Duration", true),
+ new UsesMethod<>("reactor.test.StepVerifier verify(..)", true),
+ new UsesMethod<>("reactor.test.StepVerifier.LastStep expectErrorMatches(..)", true)
+ )
+ )
),
javaVisitor
);
diff -u -r RxJava2AdapterRulesRecipes.java RxJava2AdapterRulesRecipes.java
--- RxJava2AdapterRulesRecipes.java 2024-12-19 15:51:29.814838449 +0100
+++ RxJava2AdapterRulesRecipes.java 2024-12-19 15:51:40.689021790 +0100
@@ -111,13 +111,13 @@
};
return Preconditions.check(
Preconditions.and(
+ new UsesType<>("io.reactivex.Completable", true),
new UsesType<>("reactor.adapter.rxjava.RxJava2Adapter", true),
new UsesType<>("reactor.core.publisher.Mono", true),
- new UsesType<>("io.reactivex.Completable", true),
Preconditions.or(
- new UsesMethod<>("reactor.adapter.rxjava.RxJava2Adapter completableToMono(..)", true),
- new UsesMethod<>("io.reactivex.Completable to(..)", true)
- )
+ new UsesMethod<>("io.reactivex.Completable to(..)", true),
+ new UsesMethod<>("reactor.adapter.rxjava.RxJava2Adapter completableToMono(..)", true)
+ )
),
javaVisitor
);
diff -u -r StringRulesRecipes.java StringRulesRecipes.java
--- StringRulesRecipes.java 2024-12-19 15:51:29.833838782 +0100
+++ StringRulesRecipes.java 2024-12-19 15:51:40.709022116 +0100
@@ -261,12 +261,12 @@
Preconditions.and(
new UsesType<>("com.google.common.base.Strings", true),
new UsesType<>("java.util.Optional", true),
- new UsesMethod<>("com.google.common.base.Strings isNullOrEmpty(..)", true),
- new UsesMethod<>("java.util.Optional empty(..)", true),
Preconditions.or(
- new UsesMethod<>("java.util.Optional of(..)", true),
- new UsesMethod<>("java.util.Optional ofNullable(..)", true)
- )
+ new UsesMethod<>("java.util.Optional of(..)", true),
+ new UsesMethod<>("java.util.Optional ofNullable(..)", true)
+ ),
+ new UsesMethod<>("com.google.common.base.Strings isNullOrEmpty(..)", true),
+ new UsesMethod<>("java.util.Optional empty(..)", true)
),
javaVisitor
);
@@ -446,15 +446,15 @@
),
Preconditions.and(
new UsesType<>("com.google.common.collect.Streams", true),
- new UsesMethod<>("java.util.stream.Stream collect(..)", true),
new UsesMethod<>("com.google.common.collect.Streams stream(..)", true),
- new UsesMethod<>("java.util.stream.Collectors joining(..)", true)
+ new UsesMethod<>("java.util.stream.Collectors joining(..)", true),
+ new UsesMethod<>("java.util.stream.Stream collect(..)", true)
),
Preconditions.and(
new UsesType<>("java.util.Collection", true),
- new UsesMethod<>("java.util.stream.Stream collect(..)", true),
new UsesMethod<>("java.util.Collection stream(..)", true),
- new UsesMethod<>("java.util.stream.Collectors joining(..)", true)
+ new UsesMethod<>("java.util.stream.Collectors joining(..)", true),
+ new UsesMethod<>("java.util.stream.Stream collect(..)", true)
)
),
javaVisitor
@@ -582,8 +582,8 @@
};
return Preconditions.check(
Preconditions.or(
- new UsesMethod<>("java.lang.String valueOf(..)", true),
- new UsesMethod<>("java.lang.String copyValueOf(..)", true)
+ new UsesMethod<>("java.lang.String copyValueOf(..)", true),
+ new UsesMethod<>("java.lang.String valueOf(..)", true)
),
javaVisitor
);
@@ -651,8 +651,8 @@
};
return Preconditions.check(
Preconditions.or(
- new UsesMethod<>("java.lang.String valueOf(..)", true),
- new UsesMethod<>("java.lang.String <constructor>(..)", true)
+ new UsesMethod<>("java.lang.String <constructor>(..)", true),
+ new UsesMethod<>("java.lang.String valueOf(..)", true)
),
javaVisitor
);
@@ -709,8 +709,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesMethod<>("java.lang.String substring(..)", true),
- new UsesMethod<>("java.lang.String length(..)", true)
+ new UsesMethod<>("java.lang.String length(..)", true),
+ new UsesMethod<>("java.lang.String substring(..)", true)
),
javaVisitor
);
diff -u -r SuggestedFixRulesRecipes.java SuggestedFixRulesRecipes.java
--- SuggestedFixRulesRecipes.java 2024-12-19 15:51:29.838838870 +0100
+++ SuggestedFixRulesRecipes.java 2024-12-19 15:51:40.713022181 +0100
@@ -107,9 +107,9 @@
Preconditions.and(
new UsesType<>("com.google.errorprone.fixes.SuggestedFix", true),
new UsesType<>("com.sun.source.tree.Tree", true),
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true),
new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder build(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder delete(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true)
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder delete(..)", true)
),
javaVisitor
);
@@ -170,9 +170,9 @@
Preconditions.and(
new UsesType<>("com.google.errorprone.fixes.SuggestedFix", true),
new UsesType<>("com.sun.source.tree.Tree", true),
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true),
new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder build(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder replace(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true)
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder replace(..)", true)
),
javaVisitor
);
@@ -232,9 +232,9 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("com.google.errorprone.fixes.SuggestedFix", true),
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true),
new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder build(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder replace(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true)
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder replace(..)", true)
),
javaVisitor
);
@@ -295,9 +295,9 @@
Preconditions.and(
new UsesType<>("com.google.errorprone.fixes.SuggestedFix", true),
new UsesType<>("com.sun.source.tree.Tree", true),
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true),
new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder build(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder replace(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true)
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder replace(..)", true)
),
javaVisitor
);
@@ -358,9 +358,9 @@
Preconditions.and(
new UsesType<>("com.google.errorprone.fixes.SuggestedFix", true),
new UsesType<>("com.sun.source.tree.Tree", true),
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true),
new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder build(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder swap(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true)
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder swap(..)", true)
),
javaVisitor
);
@@ -421,9 +421,9 @@
Preconditions.and(
new UsesType<>("com.google.errorprone.fixes.SuggestedFix", true),
new UsesType<>("com.sun.source.tree.Tree", true),
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true),
new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder build(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder prefixWith(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true)
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder prefixWith(..)", true)
),
javaVisitor
);
@@ -484,9 +484,9 @@
Preconditions.and(
new UsesType<>("com.google.errorprone.fixes.SuggestedFix", true),
new UsesType<>("com.sun.source.tree.Tree", true),
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true),
new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder build(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder postfixWith(..)", true),
- new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix builder(..)", true)
+ new UsesMethod<>("com.google.errorprone.fixes.SuggestedFix.Builder postfixWith(..)", true)
),
javaVisitor
);
diff -u -r TimeRulesRecipes.java TimeRulesRecipes.java
--- TimeRulesRecipes.java 2024-12-19 15:51:30.233845767 +0100
+++ TimeRulesRecipes.java 2024-12-19 15:51:41.038027463 +0100
@@ -205,8 +205,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.Instant", true),
new UsesType<>("java.time.Clock", true),
+ new UsesType<>("java.time.Instant", true),
new UsesMethod<>("java.time.Instant now(..)", true)
),
javaVisitor
@@ -327,13 +327,10 @@
Preconditions.and(
new UsesType<>("java.time.ZoneId", true),
Preconditions.or(
- new UsesMethod<>("java.time.ZoneId of(..)", true),
- new UsesMethod<>("java.time.ZoneId of(..)", true),
- new UsesMethod<>("java.time.ZoneId of(..)", true),
- new UsesMethod<>("java.time.ZoneId of(..)", true),
- new UsesMethod<>("java.time.ZoneOffset normalized(..)", true),
- new UsesMethod<>("java.time.ZoneId from(..)", true)
- )
+ new UsesMethod<>("java.time.ZoneId from(..)", true),
+ new UsesMethod<>("java.time.ZoneId of(..)", true),
+ new UsesMethod<>("java.time.ZoneOffset normalized(..)", true)
+ )
),
javaVisitor
);
@@ -426,32 +423,32 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.LocalDate", true),
new UsesType<>("java.time.Instant", true),
+ new UsesType<>("java.time.LocalDate", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.ZonedDateTime toLocalDate(..)", true),
- new UsesMethod<>("java.time.Instant atZone(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.LocalDateTime", true),
- new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.LocalDateTime toLocalDate(..)", true),
- new UsesMethod<>("java.time.LocalDateTime ofInstant(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.OffsetDateTime", true),
- new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.OffsetDateTime toLocalDate(..)", true),
- new UsesMethod<>("java.time.OffsetDateTime ofInstant(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.ZoneOffset", true),
- new UsesMethod<>("java.time.OffsetDateTime toLocalDate(..)", true),
- new UsesMethod<>("java.time.Instant atOffset(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.ZoneId", true),
+ new UsesMethod<>("java.time.LocalDateTime ofInstant(..)", true),
+ new UsesMethod<>("java.time.LocalDateTime toLocalDate(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.ZoneId", true),
+ new UsesMethod<>("java.time.OffsetDateTime ofInstant(..)", true),
+ new UsesMethod<>("java.time.OffsetDateTime toLocalDate(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.ZoneId", true),
+ new UsesMethod<>("java.time.Instant atZone(..)", true),
+ new UsesMethod<>("java.time.ZonedDateTime toLocalDate(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.ZoneOffset", true),
+ new UsesMethod<>("java.time.Instant atOffset(..)", true),
+ new UsesMethod<>("java.time.OffsetDateTime toLocalDate(..)", true)
+ )
+ )
),
javaVisitor
);
@@ -532,26 +529,26 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.LocalDateTime", true),
new UsesType<>("java.time.Instant", true),
+ new UsesType<>("java.time.LocalDateTime", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.ZonedDateTime toLocalDateTime(..)", true),
- new UsesMethod<>("java.time.Instant atZone(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.OffsetDateTime", true),
- new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.OffsetDateTime toLocalDateTime(..)", true),
- new UsesMethod<>("java.time.OffsetDateTime ofInstant(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.ZoneOffset", true),
- new UsesMethod<>("java.time.OffsetDateTime toLocalDateTime(..)", true),
- new UsesMethod<>("java.time.Instant atOffset(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.ZoneId", true),
+ new UsesMethod<>("java.time.OffsetDateTime ofInstant(..)", true),
+ new UsesMethod<>("java.time.OffsetDateTime toLocalDateTime(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.ZoneId", true),
+ new UsesMethod<>("java.time.Instant atZone(..)", true),
+ new UsesMethod<>("java.time.ZonedDateTime toLocalDateTime(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.ZoneOffset", true),
+ new UsesMethod<>("java.time.Instant atOffset(..)", true),
+ new UsesMethod<>("java.time.OffsetDateTime toLocalDateTime(..)", true)
+ )
+ )
),
javaVisitor
);
@@ -656,38 +653,38 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.LocalTime", true),
new UsesType<>("java.time.Instant", true),
+ new UsesType<>("java.time.LocalTime", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.ZonedDateTime toLocalTime(..)", true),
- new UsesMethod<>("java.time.Instant atZone(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.LocalDateTime", true),
- new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.LocalDateTime toLocalTime(..)", true),
- new UsesMethod<>("java.time.LocalDateTime ofInstant(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.OffsetDateTime", true),
- new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.OffsetDateTime toLocalTime(..)", true),
- new UsesMethod<>("java.time.OffsetDateTime ofInstant(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.OffsetTime", true),
- new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.OffsetTime toLocalTime(..)", true),
- new UsesMethod<>("java.time.OffsetTime ofInstant(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.ZoneOffset", true),
- new UsesMethod<>("java.time.OffsetDateTime toLocalTime(..)", true),
- new UsesMethod<>("java.time.Instant atOffset(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.ZoneId", true),
+ new UsesMethod<>("java.time.LocalDateTime ofInstant(..)", true),
+ new UsesMethod<>("java.time.LocalDateTime toLocalTime(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.ZoneId", true),
+ new UsesMethod<>("java.time.OffsetDateTime ofInstant(..)", true),
+ new UsesMethod<>("java.time.OffsetDateTime toLocalTime(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.OffsetTime", true),
+ new UsesType<>("java.time.ZoneId", true),
+ new UsesMethod<>("java.time.OffsetTime ofInstant(..)", true),
+ new UsesMethod<>("java.time.OffsetTime toLocalTime(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.ZoneId", true),
+ new UsesMethod<>("java.time.Instant atZone(..)", true),
+ new UsesMethod<>("java.time.ZonedDateTime toLocalTime(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.ZoneOffset", true),
+ new UsesMethod<>("java.time.Instant atOffset(..)", true),
+ new UsesMethod<>("java.time.OffsetDateTime toLocalTime(..)", true)
+ )
+ )
),
javaVisitor
);
@@ -744,11 +741,11 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.OffsetDateTime", true),
new UsesType<>("java.time.Instant", true),
+ new UsesType<>("java.time.OffsetDateTime", true),
new UsesType<>("java.time.ZoneId", true),
- new UsesMethod<>("java.time.ZonedDateTime toOffsetDateTime(..)", true),
- new UsesMethod<>("java.time.Instant atZone(..)", true)
+ new UsesMethod<>("java.time.Instant atZone(..)", true),
+ new UsesMethod<>("java.time.ZonedDateTime toOffsetDateTime(..)", true)
),
javaVisitor
);
@@ -956,36 +953,36 @@
new UsesType<>("java.time.Instant", true),
new UsesType<>("java.time.temporal.TemporalUnit", true),
Preconditions.or(
- Preconditions.and(
- new UsesType<>("java.time.Duration", true),
- new UsesMethod<>("java.time.Instant plus(..)", true)
- ),
- new UsesMethod<>("java.time.Instant plus(..)", true),
- new UsesMethod<>("java.time.Instant plusNanos(..)", true),
- new UsesMethod<>("java.time.Instant plusMillis(..)", true),
- new UsesMethod<>("java.time.Instant plusSeconds(..)", true),
- Preconditions.and(
- new UsesType<>("java.time.Duration", true),
- new UsesMethod<>("java.time.Instant minus(..)", true)
- ),
- new UsesMethod<>("java.time.Instant minus(..)", true),
- new UsesMethod<>("java.time.Instant minusNanos(..)", true),
- new UsesMethod<>("java.time.Instant minusMillis(..)", true),
- new UsesMethod<>("java.time.Instant minusSeconds(..)", true),
- Preconditions.and(
- new UsesMethod<>("java.time.Instant parse(..)", true),
- new UsesMethod<>("java.time.Instant toString(..)", true)
- ),
- Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
- new UsesMethod<>("java.time.Instant truncatedTo(..)", true)
- ),
- Preconditions.and(
- new UsesMethod<>("java.time.Instant ofEpochSecond(..)", true),
- new UsesMethod<>("java.time.Instant getEpochSecond(..)", true),
- new UsesMethod<>("java.time.Instant getNano(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.time.Instant getEpochSecond(..)", true),
+ new UsesMethod<>("java.time.Instant getNano(..)", true),
+ new UsesMethod<>("java.time.Instant ofEpochSecond(..)", true)
+ ),
+ Preconditions.and(
+ new UsesMethod<>("java.time.Instant parse(..)", true),
+ new UsesMethod<>("java.time.Instant toString(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.Duration", true),
+ new UsesMethod<>("java.time.Instant minus(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.Duration", true),
+ new UsesMethod<>("java.time.Instant plus(..)", true)
+ ),
+ Preconditions.and(
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
+ new UsesMethod<>("java.time.Instant truncatedTo(..)", true)
+ ),
+ new UsesMethod<>("java.time.Instant minus(..)", true),
+ new UsesMethod<>("java.time.Instant minusMillis(..)", true),
+ new UsesMethod<>("java.time.Instant minusNanos(..)", true),
+ new UsesMethod<>("java.time.Instant minusSeconds(..)", true),
+ new UsesMethod<>("java.time.Instant plus(..)", true),
+ new UsesMethod<>("java.time.Instant plusMillis(..)", true),
+ new UsesMethod<>("java.time.Instant plusNanos(..)", true),
+ new UsesMethod<>("java.time.Instant plusSeconds(..)", true)
+ )
),
javaVisitor
);
@@ -1102,8 +1099,8 @@
return Preconditions.check(
Preconditions.and(
new UsesType<>("java.time.Instant", true),
- new UsesMethod<>("java.time.Instant ofEpochSecond(..)", true),
- new UsesMethod<>("java.time.Instant getEpochSecond(..)", true)
+ new UsesMethod<>("java.time.Instant getEpochSecond(..)", true),
+ new UsesMethod<>("java.time.Instant ofEpochSecond(..)", true)
),
javaVisitor
);
@@ -1160,8 +1157,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.OffsetDateTime", true),
new UsesType<>("java.time.Instant", true),
+ new UsesType<>("java.time.OffsetDateTime", true),
new UsesType<>("java.time.ZoneOffset", true),
new UsesMethod<>("java.time.OffsetDateTime ofInstant(..)", true)
),
@@ -1233,11 +1230,11 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.OffsetTime", true),
new UsesType<>("java.time.Instant", true),
+ new UsesType<>("java.time.OffsetTime", true),
new UsesType<>("java.time.ZoneOffset", true),
- new UsesMethod<>("java.time.OffsetDateTime toOffsetTime(..)", true),
- new UsesMethod<>("java.time.Instant atOffset(..)", true)
+ new UsesMethod<>("java.time.Instant atOffset(..)", true),
+ new UsesMethod<>("java.time.OffsetDateTime toOffsetTime(..)", true)
),
javaVisitor
);
@@ -1294,9 +1291,9 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.ZonedDateTime", true),
new UsesType<>("java.time.Instant", true),
new UsesType<>("java.time.ZoneId", true),
+ new UsesType<>("java.time.ZonedDateTime", true),
new UsesMethod<>("java.time.ZonedDateTime ofInstant(..)", true)
),
javaVisitor
@@ -1437,10 +1434,9 @@
Preconditions.and(
new UsesType<>("java.time.Instant", true),
Preconditions.or(
- new UsesMethod<>("java.time.Instant ofEpochMilli(..)", true),
- new UsesMethod<>("java.time.Instant ofEpochSecond(..)", true),
- new UsesMethod<>("java.time.Instant ofEpochSecond(..)", true)
- )
+ new UsesMethod<>("java.time.Instant ofEpochMilli(..)", true),
+ new UsesMethod<>("java.time.Instant ofEpochSecond(..)", true)
+ )
),
javaVisitor
);
@@ -1667,16 +1663,7 @@
};
return Preconditions.check(
- Preconditions.and(
- new UsesType<>("java.time.LocalTime", true),
- Preconditions.or(
- new UsesMethod<>("java.time.LocalTime of(..)", true),
- new UsesMethod<>("java.time.LocalTime of(..)", true),
- new UsesMethod<>("java.time.LocalTime of(..)", true),
- new UsesMethod<>("java.time.LocalTime ofNanoOfDay(..)", true),
- new UsesMethod<>("java.time.LocalTime ofSecondOfDay(..)", true)
- )
- ),
+ new UsesType<>("java.time.LocalTime", true),
javaVisitor
);
}
@@ -1733,9 +1720,9 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.LocalTime", true),
- new UsesType<>("java.time.LocalDateTime", true),
new UsesType<>("java.time.LocalDate", true),
+ new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.LocalTime", true),
new UsesMethod<>("java.time.LocalDate atTime(..)", true)
),
javaVisitor
@@ -2345,15 +2332,14 @@
new UsesType<>("java.time.Duration", true),
new UsesType<>("java.time.temporal.TemporalUnit", true),
Preconditions.or(
- new UsesMethod<>("java.time.Duration ofNanos(..)", true),
- new UsesMethod<>("java.time.Duration ofMillis(..)", true),
- new UsesMethod<>("java.time.Duration ofSeconds(..)", true),
- new UsesMethod<>("java.time.Duration ofSeconds(..)", true),
- new UsesMethod<>("java.time.Duration ofMinutes(..)", true),
- new UsesMethod<>("java.time.Duration ofHours(..)", true),
- new UsesMethod<>("java.time.Duration ofDays(..)", true),
- new UsesMethod<>("java.time.Duration of(..)", true)
- )
+ new UsesMethod<>("java.time.Duration of(..)", true),
+ new UsesMethod<>("java.time.Duration ofDays(..)", true),
+ new UsesMethod<>("java.time.Duration ofHours(..)", true),
+ new UsesMethod<>("java.time.Duration ofMillis(..)", true),
+ new UsesMethod<>("java.time.Duration ofMinutes(..)", true),
+ new UsesMethod<>("java.time.Duration ofNanos(..)", true),
+ new UsesMethod<>("java.time.Duration ofSeconds(..)", true)
+ )
),
javaVisitor
);
@@ -2844,15 +2830,15 @@
new UsesType<>("java.time.Duration", true),
new UsesType<>("java.time.OffsetDateTime", true),
Preconditions.or(
- Preconditions.and(
- new UsesMethod<>("java.time.Duration between(..)", true),
- new UsesMethod<>("java.time.OffsetDateTime toInstant(..)", true)
- ),
- Preconditions.and(
- new UsesMethod<>("java.time.Duration ofSeconds(..)", true),
- new UsesMethod<>("java.time.OffsetDateTime toEpochSecond(..)", true)
- )
- )
+ Preconditions.and(
+ new UsesMethod<>("java.time.Duration between(..)", true),
+ new UsesMethod<>("java.time.OffsetDateTime toInstant(..)", true)
+ ),
+ Preconditions.and(
+ new UsesMethod<>("java.time.Duration ofSeconds(..)", true),
+ new UsesMethod<>("java.time.OffsetDateTime toEpochSecond(..)", true)
+ )
+ )
),
javaVisitor
);
@@ -3024,12 +3010,12 @@
Preconditions.and(
new UsesType<>("java.time.Period", true),
Preconditions.or(
- new UsesMethod<>("java.time.Period ofDays(..)", true),
- new UsesMethod<>("java.time.Period ofWeeks(..)", true),
- new UsesMethod<>("java.time.Period ofMonths(..)", true),
- new UsesMethod<>("java.time.Period ofYears(..)", true),
- new UsesMethod<>("java.time.Period of(..)", true)
- )
+ new UsesMethod<>("java.time.Period of(..)", true),
+ new UsesMethod<>("java.time.Period ofDays(..)", true),
+ new UsesMethod<>("java.time.Period ofMonths(..)", true),
+ new UsesMethod<>("java.time.Period ofWeeks(..)", true),
+ new UsesMethod<>("java.time.Period ofYears(..)", true)
+ )
),
javaVisitor
);
@@ -3099,8 +3085,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDate", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDate plus(..)", true)
),
javaVisitor
@@ -3171,8 +3157,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDate", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDate plus(..)", true)
),
javaVisitor
@@ -3243,8 +3229,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDate", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDate plus(..)", true)
),
javaVisitor
@@ -3315,8 +3301,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDate", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDate plus(..)", true)
),
javaVisitor
@@ -3387,8 +3373,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDate", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDate minus(..)", true)
),
javaVisitor
@@ -3459,8 +3445,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDate", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDate minus(..)", true)
),
javaVisitor
@@ -3531,8 +3517,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDate", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDate minus(..)", true)
),
javaVisitor
@@ -3603,8 +3589,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDate", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDate minus(..)", true)
),
javaVisitor
@@ -3675,8 +3661,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalTime plus(..)", true)
),
javaVisitor
@@ -3747,8 +3733,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalTime plus(..)", true)
),
javaVisitor
@@ -3819,8 +3805,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalTime plus(..)", true)
),
javaVisitor
@@ -3891,8 +3877,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalTime plus(..)", true)
),
javaVisitor
@@ -3963,8 +3949,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalTime minus(..)", true)
),
javaVisitor
@@ -4035,8 +4021,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalTime minus(..)", true)
),
javaVisitor
@@ -4107,8 +4093,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalTime minus(..)", true)
),
javaVisitor
@@ -4179,8 +4165,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalTime minus(..)", true)
),
javaVisitor
@@ -4251,8 +4237,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetTime plus(..)", true)
),
javaVisitor
@@ -4323,8 +4309,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetTime plus(..)", true)
),
javaVisitor
@@ -4395,8 +4381,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetTime plus(..)", true)
),
javaVisitor
@@ -4467,8 +4453,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetTime plus(..)", true)
),
javaVisitor
@@ -4539,8 +4525,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetTime minus(..)", true)
),
javaVisitor
@@ -4611,8 +4597,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetTime minus(..)", true)
),
javaVisitor
@@ -4683,8 +4669,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetTime minus(..)", true)
),
javaVisitor
@@ -4755,8 +4741,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetTime minus(..)", true)
),
javaVisitor
@@ -4827,8 +4813,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime plus(..)", true)
),
javaVisitor
@@ -4899,8 +4885,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime plus(..)", true)
),
javaVisitor
@@ -4971,8 +4957,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime plus(..)", true)
),
javaVisitor
@@ -5043,8 +5029,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime plus(..)", true)
),
javaVisitor
@@ -5115,8 +5101,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime plus(..)", true)
),
javaVisitor
@@ -5187,8 +5173,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime plus(..)", true)
),
javaVisitor
@@ -5259,8 +5245,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime plus(..)", true)
),
javaVisitor
@@ -5331,8 +5317,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime plus(..)", true)
),
javaVisitor
@@ -5403,8 +5389,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime minus(..)", true)
),
javaVisitor
@@ -5475,8 +5461,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime minus(..)", true)
),
javaVisitor
@@ -5547,8 +5533,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime minus(..)", true)
),
javaVisitor
@@ -5619,8 +5605,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime minus(..)", true)
),
javaVisitor
@@ -5691,8 +5677,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime minus(..)", true)
),
javaVisitor
@@ -5763,8 +5749,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime minus(..)", true)
),
javaVisitor
@@ -5835,8 +5821,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime minus(..)", true)
),
javaVisitor
@@ -5907,8 +5893,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.LocalDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.LocalDateTime minus(..)", true)
),
javaVisitor
@@ -5979,8 +5965,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime plus(..)", true)
),
javaVisitor
@@ -6051,8 +6037,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime plus(..)", true)
),
javaVisitor
@@ -6123,8 +6109,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime plus(..)", true)
),
javaVisitor
@@ -6195,8 +6181,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime plus(..)", true)
),
javaVisitor
@@ -6267,8 +6253,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime plus(..)", true)
),
javaVisitor
@@ -6339,8 +6325,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime plus(..)", true)
),
javaVisitor
@@ -6411,8 +6397,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime plus(..)", true)
),
javaVisitor
@@ -6483,8 +6469,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime plus(..)", true)
),
javaVisitor
@@ -6555,8 +6541,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime minus(..)", true)
),
javaVisitor
@@ -6627,8 +6613,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime minus(..)", true)
),
javaVisitor
@@ -6699,8 +6685,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime minus(..)", true)
),
javaVisitor
@@ -6771,8 +6757,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime minus(..)", true)
),
javaVisitor
@@ -6843,8 +6829,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime minus(..)", true)
),
javaVisitor
@@ -6915,8 +6901,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime minus(..)", true)
),
javaVisitor
@@ -6987,8 +6973,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime minus(..)", true)
),
javaVisitor
@@ -7059,8 +7045,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.OffsetDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.OffsetDateTime minus(..)", true)
),
javaVisitor
@@ -7131,8 +7117,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime plus(..)", true)
),
javaVisitor
@@ -7203,8 +7189,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime plus(..)", true)
),
javaVisitor
@@ -7275,8 +7261,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime plus(..)", true)
),
javaVisitor
@@ -7347,8 +7333,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime plus(..)", true)
),
javaVisitor
@@ -7419,8 +7405,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime plus(..)", true)
),
javaVisitor
@@ -7491,8 +7477,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime plus(..)", true)
),
javaVisitor
@@ -7563,8 +7549,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime plus(..)", true)
),
javaVisitor
@@ -7635,8 +7621,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime plus(..)", true)
),
javaVisitor
@@ -7707,8 +7693,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime minus(..)", true)
),
javaVisitor
@@ -7779,8 +7765,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime minus(..)", true)
),
javaVisitor
@@ -7851,8 +7837,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime minus(..)", true)
),
javaVisitor
@@ -7923,8 +7909,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime minus(..)", true)
),
javaVisitor
@@ -7995,8 +7981,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime minus(..)", true)
),
javaVisitor
@@ -8067,8 +8053,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime minus(..)", true)
),
javaVisitor
@@ -8139,8 +8125,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime minus(..)", true)
),
javaVisitor
@@ -8211,8 +8197,8 @@
};
return Preconditions.check(
Preconditions.and(
- new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesType<>("java.time.ZonedDateTime", true),
+ new UsesType<>("java.time.temporal.ChronoUnit", true),
new UsesMethod<>("java.time.ZonedDateTime minus(..)", true)
),
javaVisitor
Ah, didn't see Tim's message before posting ;) |
Thanks for the diff! @jevanlingen is double checking the output here; we can still improve the formatting it seems to reduce the diff, and I'm curious why we didn't see any changes for |
Yeah, I already found a little printing bug (wrong indenting). So I'll start working on some bug fixes 😇. |
This PR contains the following updates:
1.19.1
->1.20.0
1.19.1
->1.20.0
Release Notes
openrewrite/rewrite-templating (OpenRewrite Templating)
v1.20.0
: 1.20.0Compare Source
What's Changed
New Contributors
Full Changelog: openrewrite/rewrite-templating@v1.19.0...v1.20.0