Skip to content

Commit

Permalink
Improved: Inline ‘UtilGenerics#checkStack(Object)’
Browse files Browse the repository at this point in the history
(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 f0dda2a
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -97,13 +97,9 @@ public static <K, V> Map<K, V> checkMap(Object object, Class<K> keyType, Class<V
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) {
Expand Down

0 comments on commit f0dda2a

Please sign in to comment.