From 808353e9fed98c2547f41b08eae2a174f96ccbf0 Mon Sep 17 00:00:00 2001 From: Mickaƫl Boiziot Date: Tue, 21 Jun 2016 11:28:56 +0200 Subject: [PATCH] Remove some warnings. --- src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/DateRangeField.java | 2 +- src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatField.java | 2 +- src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatRangeField.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/DateRangeField.java b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/DateRangeField.java index f20d533..038f5cb 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/DateRangeField.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/DateRangeField.java @@ -95,7 +95,7 @@ public class DateRangeField extends ParamField implements TextFieldListener { requestPanelListener.onParameterUpdated(paramName + field.getName(), date); field.setBackground(Color.WHITE); - } catch (@SuppressWarnings("unused") ParseException e) { + } catch (ParseException e) { field.setBackground(Color.PINK); } } else { diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatField.java b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatField.java index d379db8..2e370f5 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatField.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatField.java @@ -64,7 +64,7 @@ public class FloatField extends ParamField implements TextFieldListener { float value = Float.parseFloat(textField.getText()); requestPanelListener.onParameterUpdated(paramName, value); textField.setBackground(Color.WHITE); - } catch (@SuppressWarnings("unused") NumberFormatException e) { + } catch (NumberFormatException e) { textField.setBackground(Color.PINK); } } diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatRangeField.java b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatRangeField.java index b6fe7a6..f10c48d 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatRangeField.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatRangeField.java @@ -73,7 +73,7 @@ public class FloatRangeField extends ParamField implements TextFieldListener { requestPanelListener.onParameterUpdated(paramName + field.getName(), Float.parseFloat(field.getText())); field.setBackground(Color.WHITE); - } catch (@SuppressWarnings("unused") NumberFormatException e) { + } catch (NumberFormatException e) { field.setBackground(Color.PINK); } } -- libgit2 0.21.2