Skip to content

Commit

Permalink
Merge pull request #11 from openrewrite/issue-10
Browse files Browse the repository at this point in the history
  • Loading branch information
sghill authored Jul 25, 2023
2 parents 5e1aa07 + 341b116 commit 1c1ed3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/main/resources/META-INF/rewrite/jsr-305.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ recipeList:
oldPackageName: javax.annotation
newPackageName: edu.umd.cs.findbugs.annotations
recursive: false
- org.openrewrite.java.OrderImports:
removeUnused: false
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public String key() {

@Test
@DocumentExample
void shouldOrderImports() {
void shouldNotOrderImports() {
rewriteRun(java(
"""
import javax.annotation.CheckForNull;
Expand All @@ -97,9 +97,9 @@ public String key() {
}
""".stripIndent(),
"""
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import java.util.Objects;
public class A {
Expand Down

0 comments on commit 1c1ed3e

Please sign in to comment.