Skip to content

Commit fb2bea2

Browse files
committed
DM-7271: use double or long if type is not given for numeric data.
1 parent 7e3fa06 commit fb2bea2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/firefly/java/edu/caltech/ipac/util/IpacTableUtil.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,24 +188,12 @@ public static void guessFormatInfo(DataType dataType, String value) {
188188
public static void guessDataType(DataType type, String rval) {
189189
if (StringUtils.isEmpty(rval)) return;
190190

191-
try {
192-
Integer.parseInt(rval);
193-
type.setDataType(Integer.class);
194-
return;
195-
}catch (Exception e){}
196-
197191
try {
198192
Long.parseLong(rval);
199193
type.setDataType(Long.class);
200194
return;
201195
}catch (Exception e){}
202196

203-
try {
204-
Float.parseFloat(rval);
205-
type.setDataType(Float.class);
206-
return;
207-
}catch (Exception e){}
208-
209197
try {
210198
Double.parseDouble(rval);
211199
type.setDataType(Double.class);

0 commit comments

Comments
 (0)