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 95 requestPanelListener.onParameterUpdated(paramName + field.getName(),
96 96 date);
97 97 field.setBackground(Color.WHITE);
98   - } catch (@SuppressWarnings("unused") ParseException e) {
  98 + } catch (ParseException e) {
99 99 field.setBackground(Color.PINK);
100 100 }
101 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 64 float value = Float.parseFloat(textField.getText());
65 65 requestPanelListener.onParameterUpdated(paramName, value);
66 66 textField.setBackground(Color.WHITE);
67   - } catch (@SuppressWarnings("unused") NumberFormatException e) {
  67 + } catch (NumberFormatException e) {
68 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 73 requestPanelListener.onParameterUpdated(paramName + field.getName(),
74 74 Float.parseFloat(field.getText()));
75 75 field.setBackground(Color.WHITE);
76   - } catch (@SuppressWarnings("unused") NumberFormatException e) {
  76 + } catch (NumberFormatException e) {
77 77 field.setBackground(Color.PINK);
78 78 }
79 79 }
... ...