Skip to content

Commit

Permalink
Change parameter name matching to its type
Browse files Browse the repository at this point in the history
  • Loading branch information
poap committed Jun 11, 2015
1 parent 7c5ac3e commit a1fbf7d
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -42,14 +42,14 @@ public static int parseInteger(String str, int defaultInt) {
}
}

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;
}
}

Expand Down

0 comments on commit a1fbf7d

Please sign in to comment.