Author: doogie
Date: Thu Oct 25 11:32:54 2007
New Revision: 588307
URL:
http://svn.apache.org/viewvc?rev=588307&view=revLog:
Improve the generics markup in the collectionToSet method.
Modified:
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java
Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java?rev=588307&r1=588306&r2=588307&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java Thu Oct 25 11:32:54 2007
@@ -269,9 +269,9 @@
public static <T> Set<T> collectionToSet(Collection<T> c) {
if (c == null) return null;
- Set theSet = null;
+ Set<T> theSet = null;
if (c instanceof Set) {
- theSet = (Set) c;
+ theSet = (Set<T>) c;
} else {
theSet = FastSet.newInstance();
c.remove(null);