File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
BlueMapCore/src/main/java/de/bluecolored/bluemap/core/util Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 2828import java .io .FileNotFoundException ;
2929import java .io .IOException ;
3030import java .io .OutputStream ;
31- import java .nio .file .Files ;
32- import java .nio .file .Path ;
33- import java .nio .file .StandardCopyOption ;
34- import java .nio .file .StandardOpenOption ;
31+ import java .nio .file .*;
3532
3633public class AtomicFileHelper {
3734
@@ -52,11 +49,11 @@ public static OutputStream createFilepartOutputStream(final Path file) throws IO
5249
5350 try {
5451 Files .move (partFile , file , StandardCopyOption .ATOMIC_MOVE );
55- } catch (FileNotFoundException ignore ) {
52+ } catch (FileNotFoundException | NoSuchFileException ignore ) {
5653 } catch (IOException ex ) {
5754 try {
5855 Files .move (partFile , file );
59- } catch (FileNotFoundException ignore ) {}
56+ } catch (FileNotFoundException | NoSuchFileException ignore ) {}
6057 }
6158 });
6259 }
You can’t perform that action at this time.
0 commit comments