Skip to content

Commit

Permalink
Optimize imports & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed May 18, 2019
1 parent d3d556b commit 419c269
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import java.awt.*;
import java.net.URI;
import java.util.Collection;
import java.util.Collections;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.function.Consumer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
import javax.swing.*;
import javax.xml.stream.*;
import java.awt.*;
import java.io.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -178,7 +180,7 @@ public void save(Configuration configuration) {
try (FileOutputStream fos = new FileOutputStream(FILE)) {
XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(fos);

// Load values
// Save values
writer.writeStartDocument();
writer.writeCharacters("\n");
writer.writeStartElement("configuration");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ protected Collection<Container.Entry> loadChildrenFromFileEntry() throws IOExcep
Path tmpPath = Paths.get(tmpFile.toURI());

tmpFile.delete();
Files.copy(fsPath, tmpPath);
tmpFile.deleteOnExit();
Files.copy(fsPath, tmpPath);

FileSystem subFileSystem = FileSystems.newFileSystem(tmpPath, null);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import javax.swing.text.BadLocationException;
import javax.swing.text.DefaultCaret;
import java.awt.*;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

Expand Down

0 comments on commit 419c269

Please sign in to comment.