Let's handle shorts and bytes too.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5651 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mike Thomas
2009-02-06 21:29:08 +00:00
parent bb9f068782
commit 1d9c2802ea
@@ -59,6 +59,14 @@ public class AsStringFieldEditor extends FieldEditor
_field.getType().equals(Integer.TYPE)) {
return new Integer(text);
} else if (_field.getType().equals(Short.class) ||
_field.getType().equals(Short.TYPE)) {
return new Short(text);
} else if (_field.getType().equals(Byte.class) ||
_field.getType().equals(Byte.TYPE)) {
return new Byte(text);
} else if (_field.getType().equals(Long.class) ||
_field.getType().equals(Long.TYPE)) {
return new Long(text);