Skip to content
Permalink
Browse files

Improved: Inline ‘UtilGenerics#checkStack(Object)’

(OFBIZ-11141)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1863486 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Jul 20, 2019
1 parent fce71fe commit f0dda2a5517ae114496b7ef3bf7f5112a1362742
Showing with 1 addition and 5 deletions.
  1. +1 −5 framework/base/src/main/java/org/apache/ofbiz/base/util/UtilGenerics.java
@@ -97,13 +97,9 @@ private 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) {

0 comments on commit f0dda2a

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