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
This commit is contained in:
Mathieu Lirzin
2019-07-20 16:09:29 +00:00
parent fce71fe4e3
commit f0dda2a551
@@ -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) {