-
Notifications
You must be signed in to change notification settings - Fork 466
Support Kotlin @Deprecated
's ReplaceWith
for replacements
#5955
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions could not be made:
- rewrite-kotlin/src/main/kotlin/org/openrewrite/kotlin/KotlinTypeMapping.kt
- lines 1304-1304
rewrite-kotlin/src/main/java/org/openrewrite/kotlin/cleanup/ReplaceDeprecatedCall.java
Outdated
Show resolved
Hide resolved
rewrite-kotlin/src/main/java/org/openrewrite/kotlin/cleanup/ReplaceDeprecatedCall.java
Outdated
Show resolved
Hide resolved
rewrite-kotlin/src/main/java/org/openrewrite/kotlin/cleanup/ReplaceDeprecatedCall.java
Show resolved
Hide resolved
rewrite-kotlin/src/main/java/org/openrewrite/kotlin/cleanup/ReplaceDeprecatedCall.java
Outdated
Show resolved
Hide resolved
rewrite-kotlin/src/main/java/org/openrewrite/kotlin/cleanup/ReplaceDeprecatedCall.java
Outdated
Show resolved
Hide resolved
rewrite-kotlin/src/main/java/org/openrewrite/kotlin/cleanup/ReplaceDeprecatedCall.java
Show resolved
Hide resolved
rewrite-kotlin/src/main/kotlin/org/openrewrite/kotlin/KotlinTypeMapping.kt
Show resolved
Hide resolved
rewrite-kotlin/src/main/kotlin/org/openrewrite/kotlin/KotlinTypeMapping.kt
Show resolved
Hide resolved
rewrite-kotlin/src/main/kotlin/org/openrewrite/kotlin/KotlinTypeMapping.kt
Show resolved
Hide resolved
rewrite-kotlin/src/test/java/org/openrewrite/kotlin/cleanup/ReplaceDeprecatedCallTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions could not be made:
- rewrite-kotlin/src/main/kotlin/org/openrewrite/kotlin/KotlinTypeMapping.kt
- lines 1304-1304
J replacement = KotlinTemplate.builder(template.getString()) | ||
.imports(values.getImports().toArray(new String[0])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J replacement = KotlinTemplate.builder(template.getString()) | |
.imports(values.getImports().toArray(new String[0])) | |
return KotlinTemplate.builder(template.getString()) |
String string; | ||
Object[] parameters; | ||
} | ||
} No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
} | |
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
else -> null | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
@OptIn(SymbolInternals::class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OptIn(SymbolInternals::class) | |
) | ||
); | ||
} | ||
} No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
} | |
@Deprecated(replaceWith=...)
suggestions #5929