Skip to content
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

Updating MoveFieldAnnotationToType to handle moving annotation which are fully defined #379

Merged
merged 4 commits into from
Oct 23, 2024

Conversation

lkerford
Copy link
Contributor

@lkerford lkerford commented Oct 23, 2024

The previous behaviour, move the fully qualified name which won't compile

The previous behaviour
public void someFunction(@org.openrewrite.internal.lang.Nullable org.openrewrite.internal.MetricsHelper metrics) -->
public void someFunction([email protected] MetricsHelper metrics)

New behaviour
public void someFunction(@org.openrewrite.internal.lang.Nullable org.openrewrite.internal.MetricsHelper metrics) -->
public void someFunction(org.openrewrite.internal.@Nullable MetricsHelper metrics)

related issue

lkerford and others added 3 commits October 23, 2024 10:57
…are fully defined

The previous behaviour
`public void someFunction(@org.openrewrite.internal.lang.Nullable org.openrewrite.internal.MetricsHelper metrics)` -->
`public void someFunction([email protected] MetricsHelper metrics)`

New behaviour
`public void someFunction(@org.openrewrite.internal.lang.Nullable org.openrewrite.internal.MetricsHelper metrics)` -->
`public void someFunction(org.openrewrite.internal.@nullable MetricsHelper metrics)`
…otationToType.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…otationToType.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@lkerford lkerford force-pushed the fixing-moving-annotation-with-fully-defined-names branch from 98ed9eb to 3d42009 Compare October 23, 2024 17:58
@lkerford lkerford merged commit 6f000f2 into main Oct 23, 2024
2 checks passed
@lkerford lkerford deleted the fixing-moving-annotation-with-fully-defined-names branch October 23, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants