\r
private Object obj;\r
\r
+ @SuppressWarnings("deprecation")\r
public Editor(Object o) {\r
obj = o;\r
\r
return editor.getText();\r
}\r
\r
- @SuppressWarnings("unchecked")\r
@Override\r
public Object getValue() {\r
String text = editor.getText().trim();\r
} catch (NumberFormatException e) {\r
\r
}\r
- Amount a = Amount.valueOf(Double.parseDouble(text), oldUnit);\r
+ Amount<?> a = Amount.valueOf(Double.parseDouble(text), oldUnit);\r
return a;\r
} catch (NumberFormatException e) {\r
// Storing the old unit allows you to type 10 into a field\r
text = "0" + text;\r
}\r
\r
- Amount a = Amount.valueOf(text);\r
+ Amount<?> a = Amount.valueOf(text);\r
oldUnit = a.getUnit();\r
return a;\r
}\r