[유치수] [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:
Chisu Yu
2012-11-27 01:25:19 +00:00
parent 1e50f29880
commit 82fd698af6
8 changed files with 157 additions and 153 deletions
@@ -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;
}