File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/src/main/java/com/google/googlejavaformat/java Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2525import com .google .googlejavaformat .java .JavaFormatterOptions .SortImports ;
2626
2727import java .io .BufferedOutputStream ;
28- import java .io .File ;
2928import java .io .FileOutputStream ;
3029import java .io .IOException ;
3130import java .io .InputStream ;
3534import java .io .Writer ;
3635import java .nio .charset .StandardCharsets ;
3736import java .nio .file .Files ;
37+ import java .nio .file .Paths ;
3838import java .nio .file .StandardCopyOption ;
3939import java .util .ArrayList ;
4040import java .util .List ;
@@ -236,8 +236,8 @@ private boolean writeOutput(Write write) {
236236 }
237237 try {
238238 Files .move (
239- new File ( tempFileName ). toPath ( ),
240- new File (fileToFormat .fileName ()). toPath ( ),
239+ Paths . get ( tempFileName ),
240+ Paths . get (fileToFormat .fileName ()),
241241 StandardCopyOption .REPLACE_EXISTING );
242242 } catch (IOException e ) {
243243 synchronized (outputLock ) {
You can’t perform that action at this time.
0 commit comments