jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanpa...@apache.org
Subject svn commit: r1690143 - in /jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki: ui/CommandResolver.java util/PriorityList.java util/TimedCounterList.java
Date Thu, 09 Jul 2015 19:09:29 GMT
Author: juanpablo
Date: Thu Jul  9 19:09:28 2015
New Revision: 1690143

URL: http://svn.apache.org/r1690143
Log:
getting rid of some unparametrized collection warnings

Modified:
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/CommandResolver.java
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/PriorityList.java
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/TimedCounterList.java

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/CommandResolver.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/CommandResolver.java?rev=1690143&r1=1690142&r2=1690143&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/CommandResolver.java (original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/ui/CommandResolver.java Thu Jul
 9 19:09:28 2015
@@ -389,10 +389,10 @@ public final class CommandResolver
         }
 
         // Find special page reference?
-        for( Iterator i = m_specialPages.entrySet().iterator(); i.hasNext(); )
+        for( Iterator< Map.Entry< String, Command > > i = m_specialPages.entrySet().iterator();
i.hasNext(); )
         {
-            Map.Entry entry = (Map.Entry) i.next();
-            Command specialCommand = (Command) entry.getValue();
+            Map.Entry< String, Command > entry = i.next();
+            Command specialCommand = entry.getValue();
             if ( specialCommand.getJSP().equals( jsp ) )
             {
                 return specialCommand;

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/PriorityList.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/PriorityList.java?rev=1690143&r1=1690142&r2=1690143&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/PriorityList.java (original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/PriorityList.java Thu Jul
 9 19:09:28 2015
@@ -54,7 +54,7 @@ public class PriorityList<E>
 
         for( ; i < m_elements.size(); i++ )
         {
-            Item item = m_elements.get(i);
+            Item< E > item = m_elements.get(i);
 
             if( item.m_priority < priority )
             {

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/TimedCounterList.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/TimedCounterList.java?rev=1690143&r1=1690142&r2=1690143&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/TimedCounterList.java (original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/TimedCounterList.java Thu
Jul  9 19:09:28 2015
@@ -157,7 +157,7 @@ public class TimedCounterList<T> extends
         
         try
         {
-            for( CounterItem i : m_list )
+            for( CounterItem< T > i : m_list )
             {
                 if( i.m_obj.equals( obj ) )
                 {



Mime
View raw message