diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 26dd94b..44ccce7 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -9,7 +9,7 @@
-
+
@@ -98,11 +98,11 @@
+
-
@@ -222,13 +222,6 @@
-
- 1638315700743
-
-
-
- 1638315700743
-
1638976743443
@@ -565,7 +558,14 @@
1645916134406
-
+
+ 1645924672254
+
+
+
+ 1645924672254
+
+
@@ -596,7 +596,6 @@
-
@@ -621,7 +620,8 @@
-
+
+
diff --git a/src/main/java/ch/luatan/DNSResolver/Controller/HistoryController.java b/src/main/java/ch/luatan/DNSResolver/Controller/HistoryController.java
index e6a91ac..eaaaba1 100644
--- a/src/main/java/ch/luatan/DNSResolver/Controller/HistoryController.java
+++ b/src/main/java/ch/luatan/DNSResolver/Controller/HistoryController.java
@@ -34,9 +34,7 @@ protected void load() {
ArrayList temp = (ArrayList) HANDLER.fromJson(reader, HashMap.class).get("domains");
history = new HistoryList<>();
history.addAll(temp);
- } catch (IOException e) {
- e.printStackTrace();
- } catch (JsonSyntaxException jsonE) {
+ } catch (IOException | JsonSyntaxException e) {
reset();
}
if (history == null) {
diff --git a/src/main/java/ch/luatan/DNSResolver/Controller/SettingsController.java b/src/main/java/ch/luatan/DNSResolver/Controller/SettingsController.java
index 8fb1d7d..57590a2 100644
--- a/src/main/java/ch/luatan/DNSResolver/Controller/SettingsController.java
+++ b/src/main/java/ch/luatan/DNSResolver/Controller/SettingsController.java
@@ -22,9 +22,7 @@ protected void load() {
Reader reader = FileStructure.getReader(Config.SETTINGS_CONF_FILE);
config = HANDLER.fromJson(reader, AppConfig.class);
reader.close();
- } catch (IOException e) {
- e.printStackTrace();
- } catch (JsonSyntaxException jsonE) {
+ } catch (IOException | JsonSyntaxException e) {
reset();
}
if (config == null) {