-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add BufferedWriterCreation
recipe
#258
Add BufferedWriterCreation
recipe
#258
Conversation
This PR is currently failing. It seems that |
Also, waiting on openrewrite/rewrite#4015 to land too for this PR |
src/main/java/org/openrewrite/staticanalysis/SimplifyConstantTernaryExecution.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/staticanalysis/SimplifyConstantTernaryExecution.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/staticanalysis/BufferedWriterCreation.java
Outdated
Show resolved
Hide resolved
- BufferedWriterCreation - SimplifyConstantTernaryExecution Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>
1ef0e73
to
56a8440
Compare
src/main/java/org/openrewrite/staticanalysis/SimplifyConstantTernaryExecution.java
Outdated
Show resolved
Hide resolved
src/test/java/org/openrewrite/staticanalysis/SimplifyConstantTernaryExecutionTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/staticanalysis/BufferedWriterCreation.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/staticanalysis/BufferedWriterCreation.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/staticanalysis/BufferedWriterCreation.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/staticanalysis/BufferedWriterCreation.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/staticanalysis/SimplifyConstantTernaryExecution.java
Outdated
Show resolved
Hide resolved
* Simplify constant ternary expressions too - For openrewrite/rewrite-static-analysis#258 * Show additional cases covered
BufferedWriterCreation
recipe
Thanks both! Took me a little while to get to, but I've pushed up a few small improvements to rewrite & rewrite-templating to narrow down the changes here to just a regular Refaster recipe, such that other recipes can also benefit from those improvements: |
Also added to Java security best practices: openrewrite/rewrite-java-security@9d9c9ff |
Signed-off-by: Jonathan Leitschuh Jonathan.Leitschuh@gmail.com
What's your motivation?
More recipes, more better?
Anything in particular you'd like reviewers to focus on?
There seems to be a bug in
autoFormat
where theJ.Literal
isn't having it's prefix padding removed.Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
Any additional context
Checklist