portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddew...@apache.org
Subject svn commit: r156537 - portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/util/PortletApplicationEntityImplComparator.java
Date Tue, 08 Mar 2005 16:03:13 GMT
Author: ddewolf
Date: Tue Mar  8 08:03:11 2005
New Revision: 156537

URL: http://svn.apache.org/viewcvs?view=rev&rev=156537
Log:
Removing dependency upon integer based ids.

Modified:
    portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/util/PortletApplicationEntityImplComparator.java

Modified: portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/util/PortletApplicationEntityImplComparator.java
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/util/PortletApplicationEntityImplComparator.java?view=diff&r1=156536&r2=156537
==============================================================================
--- portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/util/PortletApplicationEntityImplComparator.java
(original)
+++ portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/util/PortletApplicationEntityImplComparator.java
Tue Mar  8 08:03:11 2005
@@ -43,10 +43,8 @@
 			throw new ClassCastException("Wrong class type used for PortletApplicationEntityImplComparator");
 		} else {
 			PortletApplicationEntityImpl app1 = (PortletApplicationEntityImpl)obj1;
-			Integer app1ID = new Integer(Integer.parseInt(app1.getCastorId()));
 			PortletApplicationEntityImpl app2 = (PortletApplicationEntityImpl)obj2;
-			Integer app2ID = new Integer(Integer.parseInt(app2.getCastorId()));
-			return app1ID.compareTo(app2ID);
+            return app1.getCastorId().compareTo(app2.getCastorId());
 		}
 	}
 



Mime
View raw message