bug fix
This commit is contained in:
parent
ea958dc101
commit
ba1ea03151
|
|
@ -345,7 +345,7 @@ public class Func {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static long toLong(Object obj) {
|
public static long toLong(Object obj) {
|
||||||
return Long.parseLong(obj.toString());
|
return toLong(obj, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -360,7 +360,7 @@ public class Func {
|
||||||
if (isEmpty(obj)) {
|
if (isEmpty(obj)) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
return toLong(obj);
|
return Long.parseLong(obj.toString());
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user