mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-24 12:16:33 +10:00
[유치수] [NOBTS] add servicetype, change thrift
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@917 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -21,9 +21,20 @@ public class NumberUtils {
|
||||
} catch (NumberFormatException e) {
|
||||
return defaultInt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static Integer toInteger(Object integer) {
|
||||
public static short parseShort(String str, short defaultInt) {
|
||||
if (str == null) {
|
||||
return defaultInt;
|
||||
}
|
||||
try {
|
||||
return Short.parseShort(str);
|
||||
} catch (NumberFormatException e) {
|
||||
return defaultInt;
|
||||
}
|
||||
}
|
||||
|
||||
public static Integer toInteger(Object integer) {
|
||||
if(integer == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user