Skip to content

Commit

Permalink
Improved: Add missing generic types
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867984 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Oct 4, 2019
1 parent 8a4d0e7 commit b37bd7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ public static String timeString(Timestamp stamp, TimeZone timeZone, Locale local
public static int getSize(Object obj) {
if (null == obj) return 0;
if (obj instanceof Map) {
return ((Map) obj).size();
return ((Map<?, ?>) obj).size();
}
if (obj instanceof Collection) {
return ((Collection) obj).size();
return ((Collection<?>) obj).size();
}
if (obj instanceof String) {
return ((String) obj).length();
Expand Down

0 comments on commit b37bd7a

Please sign in to comment.