mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-15 07:46:19 +10:00
Change parameter name matching to its type
This commit is contained in:
@@ -42,14 +42,14 @@ public final class NumberUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static short parseShort(String str, short defaultInt) {
|
||||
public static short parseShort(String str, short defaultShort) {
|
||||
if (str == null) {
|
||||
return defaultInt;
|
||||
return defaultShort;
|
||||
}
|
||||
try {
|
||||
return Short.parseShort(str);
|
||||
} catch (NumberFormatException e) {
|
||||
return defaultInt;
|
||||
return defaultShort;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user