portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r646621 - /portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/main/java/org/apache/jetspeed/serializer/JetspeedProfilerSerializer.java
Date Thu, 10 Apr 2008 02:46:55 GMT
Author: ate
Date: Wed Apr  9 19:46:53 2008
New Revision: 646621

URL: http://svn.apache.org/viewvc?rev=646621&view=rev
Log:
Improving some "ugly" code

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/main/java/org/apache/jetspeed/serializer/JetspeedProfilerSerializer.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/main/java/org/apache/jetspeed/serializer/JetspeedProfilerSerializer.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/main/java/org/apache/jetspeed/serializer/JetspeedProfilerSerializer.java?rev=646621&r1=646620&r2=646621&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/main/java/org/apache/jetspeed/serializer/JetspeedProfilerSerializer.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/main/java/org/apache/jetspeed/serializer/JetspeedProfilerSerializer.java
Wed Apr  9 19:46:53 2008
@@ -306,9 +306,10 @@
             if (c != null)
             {
                 Collection cHelp = rule.getRuleCriteria();
-                if ((existing) && (cHelp.contains(c)))
-                    cHelp.remove(c); // remove existing duplicate
-                cHelp.add(c); // add the current version back in
+                if (!(existing && (cHelp.contains(c))))
+                {
+                    cHelp.add(c);
+                }
             }
         }
         return rule;



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