diff --git a/src/main/java/de/joethei/hs/java2/praktikum/praktikum4/KlausurenServer.java b/src/main/java/de/joethei/hs/java2/praktikum/praktikum4/KlausurenServer.java index 4c384a0..9b4ae90 100644 --- a/src/main/java/de/joethei/hs/java2/praktikum/praktikum4/KlausurenServer.java +++ b/src/main/java/de/joethei/hs/java2/praktikum/praktikum4/KlausurenServer.java @@ -136,11 +136,11 @@ public class KlausurenServer { } synchronized void save() { - FileOutputStream fileWriter; + FileOutputStream fileOutputStream; PrintWriter printWriter = null; try { - fileWriter = new FileOutputStream(getClass().getClassLoader().getResource("praktikum4/data.txt").getFile()); - printWriter = new PrintWriter(fileWriter); + fileOutputStream = new FileOutputStream(getClass().getClassLoader().getResource("praktikum4/data.txt").getFile()); + printWriter = new PrintWriter(fileOutputStream); for (Map.Entry> entry : data.entrySet()) { StringBuilder tmp = new StringBuilder(entry.getKey());