-
Notifications
You must be signed in to change notification settings - Fork 82
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
Java 11 recipe for default keystore change #667
Java 11 recipe for default keystore change #667
Conversation
src/test/java/org/openrewrite/java/migrate/ChangeDefaultKeyStoreTest.java
Show resolved
Hide resolved
src/test/java/org/openrewrite/java/migrate/ChangeDefaultKeyStoreTest.java
Show resolved
Hide resolved
|
||
@Override | ||
public TreeVisitor<?, ExecutionContext> getVisitor() { | ||
return new JavaVisitor<ExecutionContext>() { |
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.
Sounds like we'll want to add a precondition here on (exclusively) using an older Java version before applying any changes here.
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.
Hi @timtebeek i added a Percondition.check() to the code and updated the test as well.
As a quick FYI: I'm out this week, but my colleagues will step in for a review. |
src/test/java/org/openrewrite/java/migrate/ChangeDefaultKeyStoreTest.java
Outdated
Show resolved
Hide resolved
@timtebeek can you assign the review to someone else? I fixed the PR based on your comments |
Will have a look soon |
Hi @MBoegers let me know if you had any feedback on this PR. Thanks! |
…yStore#getDefaultType()`
sorry, excuse the delay.. I added 2 positive tests and will merge. |
What's changed?
recipe: org.openrewrite.java.migrate.ChangeDefaultKeyStore in Java11

What's your motivation?
This recipe returns
jks
when Keystore.getDefaultType() is calledAnyone you would like to review specifically?
@timtebeek
Checklist