From ba0a3f53a88842a94ea6a1a6d45f61416b593e47 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Wed, 28 Sep 2016 07:54:53 -0400 Subject: Update various things. --- BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java | 4 ++-- BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java | 8 ++++---- BJC-Utils2/src/main/java/bjc/utils/gui/SimpleInternalDialogs.java | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/gui') diff --git a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java index 51d9d5d..77e518e 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java +++ b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java @@ -43,7 +43,7 @@ public class SimpleDialogs { int value = Integer.parseInt(strang); return (value < upperBound) && (value > lowerBound); - } catch (@SuppressWarnings("unused") NumberFormatException nfex) { + } catch (NumberFormatException nfex) { // We don't care about the specifics of the exception, just // that this value isn't good return false; @@ -127,7 +127,7 @@ public class SimpleDialogs { try { Integer.parseInt(strang); return true; - } catch (@SuppressWarnings("unused") NumberFormatException nfex) { + } catch (NumberFormatException nfex) { // We don't care about this exception, just mark the value // as not good return false; diff --git a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java index b4c6d73..010de5f 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java +++ b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java @@ -31,7 +31,7 @@ public class SimpleFileChooser { maybeDoOpenFile(parent, files); success = true; - } catch (@SuppressWarnings("unused") FileNotChosenException fncx) { + } catch (FileNotChosenException fncx) { // We don't care about specifics SimpleDialogs.showError(parent, "I/O Error", "Please pick a file to open"); @@ -56,7 +56,7 @@ public class SimpleFileChooser { maybeDoSaveFile(parent, files); return files.getSelectedFile(); - } catch (@SuppressWarnings("unused") FileNotChosenException fncex) { + } catch (FileNotChosenException fncex) { // We don't care about specifics SimpleDialogs.showError(parent, "I/O Error", "Please pick a file to save to"); @@ -189,7 +189,7 @@ public class SimpleFileChooser { try { maybeDoOpenFile(parent, files); - } catch (@SuppressWarnings("unused") FileNotChosenException fncex) { + } catch (FileNotChosenException fncex) { // We don't care about specifics } @@ -215,7 +215,7 @@ public class SimpleFileChooser { try { maybeDoSaveFile(parent, files); - } catch (@SuppressWarnings("unused") FileNotChosenException fncex) { + } catch (FileNotChosenException fncex) { // We don't care about specifics } diff --git a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleInternalDialogs.java b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleInternalDialogs.java index 82946f0..8246822 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleInternalDialogs.java +++ b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleInternalDialogs.java @@ -36,7 +36,7 @@ public class SimpleInternalDialogs { int value = Integer.parseInt(strang); return (value < upperBound) && (value > lowerBound); - } catch (@SuppressWarnings("unused") NumberFormatException nfex) { + } catch (NumberFormatException nfex) { // We don't care about the specifics of the exception, just // that this value isn't good return false; @@ -61,7 +61,7 @@ public class SimpleInternalDialogs { try { Integer.parseInt(strang); return true; - } catch (@SuppressWarnings("unused") NumberFormatException nfex) { + } catch (NumberFormatException nfex) { // We don't care about this exception, just mark the value // as not good return false; -- cgit v1.2.3