From 9e4de004e61c494a26a8f29768b639e5861f6b03 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Sun, 17 Jun 2018 20:46:07 +0200 Subject: [PATCH] namen richtig --- .../hs/java2/praktikum/praktikum4/KlausurenServer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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());