You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lh...@apache.org on 2009/09/18 18:48:24 UTC
svn commit: r816713 -
/incubator/shiro/trunk/core/src/main/java/org/apache/shiro/util/CollectionUtils.java
Author: lhazlewood
Date: Fri Sep 18 16:48:24 2009
New Revision: 816713
URL: http://svn.apache.org/viewvc?rev=816713&view=rev
Log:
Oops - forgot that java.util.Deque was a 1.6 construct - commented out for now
Modified:
incubator/shiro/trunk/core/src/main/java/org/apache/shiro/util/CollectionUtils.java
Modified: incubator/shiro/trunk/core/src/main/java/org/apache/shiro/util/CollectionUtils.java
URL: http://svn.apache.org/viewvc/incubator/shiro/trunk/core/src/main/java/org/apache/shiro/util/CollectionUtils.java?rev=816713&r1=816712&r2=816713&view=diff
==============================================================================
--- incubator/shiro/trunk/core/src/main/java/org/apache/shiro/util/CollectionUtils.java (original)
+++ incubator/shiro/trunk/core/src/main/java/org/apache/shiro/util/CollectionUtils.java Fri Sep 18 16:48:24 2009
@@ -107,7 +107,7 @@
return list;
}
- public static <E> Deque<E> asDeque(E... elements) {
+ /*public static <E> Deque<E> asDeque(E... elements) {
if (elements == null || elements.length == 0) {
return new ArrayDeque<E>();
}
@@ -116,7 +116,7 @@
ArrayDeque<E> deque = new ArrayDeque<E>(capacity);
Collections.addAll(deque, elements);
return deque;
- }
+ }*/
static int computeListCapacity(int arraySize) {
return (int) Math.min(5L + arraySize + (arraySize / 10), Integer.MAX_VALUE);