Skip to content
Permalink
Browse files

Improved: Add missing generic types

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 b37bd7ab7913c41cae6f23e93e54d63e20931655
@@ -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();

0 comments on commit b37bd7a

Please sign in to comment.
You can’t perform that action at this time.