rewrite icon indicating copy to clipboard operation
rewrite copied to clipboard

Automated mass refactoring of source code.

Results 317 rewrite issues
Sort by recently updated
recently updated
newest added

## What's changed? Prevent an NPE by adding a null check, and changing the API response to be nullable to handle it downstream. ## What's your motivation? A community member...

bug

## What version of OpenRewrite are you using? I am using: - Maven/Gradle plugin 5.34.0 - rewrite-spring 5.13.2 ## How are you running OpenRewrite? I'm using maven plugin on my...

bug

This happens on OpenRewrite 8.28.1 `rewriteRun`-tests on a recipe that rewrites `J.MethodInvocation` arguments of type `Map` throw ```shell java.lang.IllegalStateException: LST contains missing or invalid type information MethodInvocation->Block->MethodDeclaration->Block->ClassDeclaration->CompilationUnit /*~~(MethodInvocation type is...

bug

```java @Test void test() { rewriteRun( java( """ package a; public class A1 { } """ ), java( """ public class B { public void method(a.A1 a) { } }...

bug

This happens on OpenRewrite 8.28.1 A JavaTemplate string such as `#{arg:any(java.util.Map)}` will not match the argument `Map.of("key", new Object[] {1,2,3})` for example. ### Workaround Changing the template string to a...

bug

## What's changed? Adds tests to UpgradeTransitiveDependencyVersionTest. Two demonstrate current behaviors and are added to prevent regression and demonstrate to the reader what the recipe can do. The third demonstrates...

bug

I developing a recipe with OpenRewrite v8.27.1 and have this test: ```java @Test void isMigratedToMethods_whenFullyQualified() { // language=java rewriteRun(java( """ package de.foo.bar; @org.testng.annotations.Test public class BazTest { public void shouldDoStuff()...

bug

## What problem are you trying to solve? Format the code with [clang-format](https://github.com/autostyle/clang-format) style ## Describe the solution you'd like create a new style that will use ".clang-format" file from...

enhancement
question

## What version of OpenRewrite are you using? I am using https://github.com/gtiwari333/openrewrite-groovy-bug/blob/main/init.gradle - org.openrewrite.recipe:rewrite-recipe-bom - 2.1.20 - org.openrewrite:rewrite-gradle-plugin - latest.release - groovy 4.0.21 - jdk 17/21 - gradle 8.8 ##...

bug
test provided
parser-groovy