Skip to content


Improved: Inline ‘UtilGenerics#checkStack(Object)’
Browse files Browse the repository at this point in the history

git-svn-id: 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.