portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r595245 - /portals/jetspeed-2/branches/JETSPEED-2.1.3/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletTrackingManagerImpl.java
Date Thu, 15 Nov 2007 08:55:20 GMT
Author: ate
Date: Thu Nov 15 00:55:19 2007
New Revision: 595245

URL: http://svn.apache.org/viewvc?rev=595245&view=rev
Log:
Fixing a ClassCastException because with JS2-800 and the new PortletWindowCache the Windows
returned are no longer stored in a map but a set. 

Modified:
    portals/jetspeed-2/branches/JETSPEED-2.1.3/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletTrackingManagerImpl.java

Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletTrackingManagerImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletTrackingManagerImpl.java?rev=595245&r1=595244&r2=595245&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletTrackingManagerImpl.java
(original)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletTrackingManagerImpl.java
Thu Nov 15 00:55:19 2007
@@ -131,8 +131,7 @@
         Iterator windows = this.windowAccessor.getPortletWindows().iterator();
         while (windows.hasNext())
         {
-            Map.Entry entry = (Map.Entry)windows.next();
-            PortletWindow window = (PortletWindow)entry.getValue();
+            PortletWindow window = (PortletWindow)windows.next();
             PortletDefinitionComposite pd = (PortletDefinitionComposite)window.getPortletEntity().getPortletDefinition();
         
             for (int ix = 0; ix < fullPortletNames.size(); ix++)
             {
@@ -150,8 +149,7 @@
         Iterator windows = this.windowAccessor.getPortletWindows().iterator();
         while (windows.hasNext())
         {
-            Map.Entry entry = (Map.Entry)windows.next();
-            PortletWindow window = (PortletWindow)entry.getValue();
+            PortletWindow window = (PortletWindow)windows.next();
             PortletDefinitionComposite pd = (PortletDefinitionComposite)window.getPortletEntity().getPortletDefinition();
             if (pd.getUniqueName().equals(fullPortletName) && isOutOfService(window))
             {
@@ -167,8 +165,7 @@
         Iterator windows = this.windowAccessor.getPortletWindows().iterator();
         while (windows.hasNext())
         {
-            Map.Entry entry = (Map.Entry)windows.next();
-            PortletWindow window = (PortletWindow)entry.getValue();
+            PortletWindow window = (PortletWindow)windows.next();
             if (isOutOfService(window))
             {
                 outs.add(window);                



---------------------------------------------------------------------
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