Commit 808353e9fed98c2547f41b08eae2a174f96ccbf0

Authored by Mickael Boiziot
1 parent d11ee6dd
Exists in master

Remove some warnings.

src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/DateRangeField.java
@@ -95,7 +95,7 @@ public class DateRangeField extends ParamField implements TextFieldListener { @@ -95,7 +95,7 @@ public class DateRangeField extends ParamField implements TextFieldListener {
95 requestPanelListener.onParameterUpdated(paramName + field.getName(), 95 requestPanelListener.onParameterUpdated(paramName + field.getName(),
96 date); 96 date);
97 field.setBackground(Color.WHITE); 97 field.setBackground(Color.WHITE);
98 - } catch (@SuppressWarnings("unused") ParseException e) { 98 + } catch (ParseException e) {
99 field.setBackground(Color.PINK); 99 field.setBackground(Color.PINK);
100 } 100 }
101 } else { 101 } else {
src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatField.java
@@ -64,7 +64,7 @@ public class FloatField extends ParamField implements TextFieldListener { @@ -64,7 +64,7 @@ public class FloatField extends ParamField implements TextFieldListener {
64 float value = Float.parseFloat(textField.getText()); 64 float value = Float.parseFloat(textField.getText());
65 requestPanelListener.onParameterUpdated(paramName, value); 65 requestPanelListener.onParameterUpdated(paramName, value);
66 textField.setBackground(Color.WHITE); 66 textField.setBackground(Color.WHITE);
67 - } catch (@SuppressWarnings("unused") NumberFormatException e) { 67 + } catch (NumberFormatException e) {
68 textField.setBackground(Color.PINK); 68 textField.setBackground(Color.PINK);
69 } 69 }
70 } 70 }
src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/FloatRangeField.java
@@ -73,7 +73,7 @@ public class FloatRangeField extends ParamField implements TextFieldListener { @@ -73,7 +73,7 @@ public class FloatRangeField extends ParamField implements TextFieldListener {
73 requestPanelListener.onParameterUpdated(paramName + field.getName(), 73 requestPanelListener.onParameterUpdated(paramName + field.getName(),
74 Float.parseFloat(field.getText())); 74 Float.parseFloat(field.getText()));
75 field.setBackground(Color.WHITE); 75 field.setBackground(Color.WHITE);
76 - } catch (@SuppressWarnings("unused") NumberFormatException e) { 76 + } catch (NumberFormatException e) {
77 field.setBackground(Color.PINK); 77 field.setBackground(Color.PINK);
78 } 78 }
79 } 79 }