Issue discovered on src/test/resources/dataflow-functional-tests/ArchiveAnalyzer.java
with Use
Files#createTempDirectory``
#4437
Labels
bug
Something isn't working
Problem
The recipe
org.openrewrite.java.security.UseFilesCreateTempDirectory
made a change that deletes a bunch of code that may or may not be needed.Expected behavior
I expected the recipe to only make the required set of changes. The result I got changes the underlying behavior.
Example diff
From:
src/test/resources/dataflow-functional-tests/ArchiveAnalyzer.java
import javax.annotation.concurrent.ThreadSafe; import java.io.*; +import java.nio.file.Files; import java.nio.file.Path; import java.util.*; import java.util.concurrent.atomic.AtomicInteger;
Recipes in example diff:
org.openrewrite.java.security.UseFilesCreateTempDirectory
References:
org.openrewrite.java.security.UseFilesCreateTempDirectory
Use
Files#createTempDirectory``openrewrite/rewrite-analysis/main
The text was updated successfully, but these errors were encountered: