portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r472308 - /portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/MediaTypeImpl.java
Date Tue, 07 Nov 2006 22:32:57 GMT
Author: taylor
Date: Tue Nov  7 14:32:56 2006
New Revision: 472308

URL: http://svn.apache.org/viewvc?view=rev&rev=472308
Log:
arraylist

Modified:
    portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/MediaTypeImpl.java

Modified: portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/MediaTypeImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/MediaTypeImpl.java?view=diff&rev=472308&r1=472307&r2=472308
==============================================================================
--- portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/MediaTypeImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/MediaTypeImpl.java
Tue Nov  7 14:32:56 2006
@@ -15,6 +15,7 @@
  */
 package org.apache.jetspeed.capabilities.impl;
 
+import java.util.ArrayList;
 import java.util.Collection;
 
 import org.apache.commons.collections.CollectionUtils;
@@ -22,8 +23,6 @@
 import org.apache.jetspeed.capabilities.MediaType;
 import org.apache.jetspeed.capabilities.MimeType;
 
-import tyrex.util.ArraySet;
-
 /**
  * Default bean like implementation of MediaTypeEntry interface
  * suitable for serializing with Castor
@@ -203,7 +202,7 @@
     public void addMimetype(MimeType mimeType)
     {
     	if (mimetypes == null)
-    		mimetypes = new ArraySet();
+    		mimetypes = new ArrayList();
         if (!mimetypes.contains(mimeType.getName()))
         {
             mimetypes.add(mimeType);
@@ -214,7 +213,7 @@
     public void addCapability(Capability capability)
     {
     	if (capabilities == null)
-    		capabilities = new ArraySet();
+    		capabilities = new ArrayList();
         if (!capabilities.contains(capability.getName()))
         {
         	capabilities.add(capability);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message