Skip to main content

8.40.2 release (2024-11-14)

info

This changelog only shows what recipes have been added, removed, or changed. OpenRewrite may do releases that do not include these types of changes. To see these changes, please go to the releases page.

New Recipes

Removed Recipes

  • org.openrewrite.java.spring.BeanMethodsNotPublic: Remove public modifier from @Bean methods. They no longer have to be public visibility to be usable by Spring.
  • org.openrewrite.java.testing.mockito.RetainStrictnessWarn: Migrating from JUnit 4 to 5 changes the default strictness of the mocks from WARN to STRICT_STUBS. To prevent tests from failing we restore the original behavior by adding @MockitoSettings(strictness = Strictness.WARN).
  • tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$BooleanCompareRecipe: Recipe created for the following Refaster template:
static final class BooleanCompare {

@BeforeTemplate
int before(boolean a, boolean b) {
return Booleans.compare(a, b);
}

@AfterTemplate
int after(boolean a, boolean b) {
return Boolean.compare(a, b);
}
}

.

  • tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$CharacterCompareRecipe: Recipe created for the following Refaster template:
static final class CharacterCompare {

@BeforeTemplate
int before(char a, char b) {
return Chars.compare(a, b);
}

@AfterTemplate
int after(char a, char b) {
return Character.compare(a, b);
}
}

.

  • tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$DoubleCompareRecipe: Recipe created for the following Refaster template:
static final class DoubleCompare {

@BeforeTemplate
int before(double a, double b) {
return Doubles.compare(a, b);
}

@AfterTemplate
int after(double a, double b) {
return Double.compare(a, b);
}
}

.

  • tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$FloatCompareRecipe: Recipe created for the following Refaster template:
static final class FloatCompare {

@BeforeTemplate
int before(float a, float b) {
return Floats.compare(a, b);
}

@AfterTemplate
int after(float a, float b) {
return Float.compare(a, b);
}
}

.

  • tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$IntegerCompareRecipe: Recipe created for the following Refaster template:
static final class IntegerCompare {

@BeforeTemplate
int before(int a, int b) {
return Ints.compare(a, b);
}

@AfterTemplate
int after(int a, int b) {
return Integer.compare(a, b);
}
}

.

  • tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$LongCompareRecipe: Recipe created for the following Refaster template:
static final class LongCompare {

@BeforeTemplate
int before(long a, long b) {
return Longs.compare(a, b);
}

@AfterTemplate
int after(long a, long b) {
return Long.compare(a, b);
}
}

.

  • tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes$ShortCompareRecipe: Recipe created for the following Refaster template:
static final class ShortCompare {

@BeforeTemplate
int before(short a, short b) {
return Shorts.compare(a, b);
}

@AfterTemplate
int after(short a, short b) {
return Short.compare(a, b);
}
}

.

Changed Recipes

  • org.openrewrite.java.dependencies.RemoveDependency was changed:
    • Old Options:
      • artifactId: { type: String, required: true }
      • configuration: { type: String, required: false }
      • groupId: { type: String, required: true }
      • scope: { type: String, required: false }
    • New Options:
      • artifactId: { type: String, required: true }
      • configuration: { type: String, required: false }
      • groupId: { type: String, required: true }
      • scope: { type: String, required: false }
      • unlessUsing: { type: String, required: false }
  • org.openrewrite.maven.UpgradeParentVersion was changed:
    • Old Options:
      • artifactId: { type: String, required: true }
      • groupId: { type: String, required: true }
      • newVersion: { type: String, required: true }
      • versionPattern: { type: String, required: false }
    • New Options:
      • artifactId: { type: String, required: true }
      • groupId: { type: String, required: true }
      • newVersion: { type: String, required: true }
      • onlyExternal: { type: Boolean, required: false }
      • versionPattern: { type: String, required: false }
  • org.openrewrite.yaml.search.FindProperty was changed:
    • Old Options:
      • propertyKey: { type: String, required: true }
      • relaxedBinding: { type: Boolean, required: false }
    • New Options:
      • propertyKey: { type: String, required: true }
      • propertyValue: { type: String, required: false }
      • relaxedBinding: { type: Boolean, required: false }