Author: mthl
Date: Sat Jul 20 16:09:29 2019
New Revision: 1863486
URL:
http://svn.apache.org/viewvc?rev=1863486&view=revLog:
Improved: Inline ‘UtilGenerics#checkStack(Object)’
(OFBIZ-11141)
Modified:
ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilGenerics.java
Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilGenerics.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilGenerics.java?rev=1863486&r1=1863485&r2=1863486&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilGenerics.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilGenerics.java Sat Jul 20 16:09:29 2019
@@ -97,13 +97,9 @@ public final class UtilGenerics {
return checkMap(object);
}
- public static <T> Stack<T> checkStack(Object object) {
- return cast(object);
- }
-
public static <T> Stack<T> checkStack(Object object, Class<T> type) {
checkCollectionContainment(object, Stack.class, type);
- return checkStack(object);
+ return cast(object);
}
public static <T> Set<T> checkSet(Object object) {