mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed compile warnnings
This commit is contained in:
@@ -962,6 +962,7 @@ public class SQLEvalVisitorUtils {
|
||||
return ((Number) val).shortValue();
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static Integer castToInteger(Object val) {
|
||||
if (val == null) {
|
||||
return null;
|
||||
@@ -985,6 +986,7 @@ public class SQLEvalVisitorUtils {
|
||||
return ((Number) val).intValue();
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static Long castToLong(Object val) {
|
||||
if (val == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user