Author: mthl
Date: Fri Oct 4 14:35:07 2019
New Revision: 1867984
URL:
http://svn.apache.org/viewvc?rev=1867984&view=revLog:
Improved: Add missing generic types
Modified:
ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java?rev=1867984&r1=1867983&r2=1867984&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/string/UelFunctions.java Fri Oct 4 14:35:07 2019
@@ -315,10 +315,10 @@ public class UelFunctions {
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();