Skip to content

Additional No guava recipes#527

Merged
timtebeek merged 11 commits intomainfrom
no-guava-additions
Aug 8, 2024
Merged

Additional No guava recipes#527
timtebeek merged 11 commits intomainfrom
no-guava-additions

Conversation

@Laurens-W
Copy link
Copy Markdown
Contributor

@Laurens-W Laurens-W commented Aug 8, 2024

What's changed?

Replace guava TreeMap with Java TreeMap
Replace guava Primitive asList with Arrays asList

What's your motivation?

Customer feedback about no guava recipes

Anything in particular you'd like reviewers to focus on?

Test coverage

Anyone you would like to review specifically?

@timtebeek

Have you considered any alternatives or workarounds?

Any additional context

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

Replace guava Primitive asList with Arrays asList
Replace guava newArrayListWithExpectedSize with Java new ArrayList<>(int)
Comment thread src/main/java/org/openrewrite/java/migrate/guava/NoGuavaListsNewArrayList.java Outdated
Comment thread src/test/java/org/openrewrite/java/migrate/guava/NoGuavaMapsNewTreeMapTest.java Outdated
Laurens-W and others added 2 commits August 8, 2024 13:19
Comment thread src/test/java/org/openrewrite/java/migrate/guava/NoGuavaPrimitiveAsListTest.java Outdated
Comment thread src/main/java/org/openrewrite/java/migrate/guava/NoGuavaPrimitiveAsList.java Outdated
Comment thread src/main/java/org/openrewrite/java/migrate/guava/NoGuavaPrimitiveAsList.java Outdated
Comment thread src/main/java/org/openrewrite/java/migrate/guava/NoGuavaPrimitiveAsList.java Outdated
Copy link
Copy Markdown
Member

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

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

Good additions, thanks! Couple small pointers but then I think we should be good to merge.

Correct more white spacing

Apply feedback to NoGuavaPrimitiveAsList
Comment thread src/test/java/org/openrewrite/java/migrate/guava/NoGuavaPrimitiveAsListTest.java Outdated
@Laurens-W Laurens-W marked this pull request as ready for review August 8, 2024 14:12
@Laurens-W Laurens-W requested a review from timtebeek August 8, 2024 14:13
@Laurens-W Laurens-W self-assigned this Aug 8, 2024
@Laurens-W Laurens-W added the recipe Recipe requested label Aug 8, 2024
Copy link
Copy Markdown
Member

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

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

Great to see these additional cases covered and added to our NoGuava composite recipe.

@timtebeek timtebeek merged commit 9db7ee7 into main Aug 8, 2024
@timtebeek timtebeek deleted the no-guava-additions branch August 8, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

recipe Recipe requested

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants