tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1222691 - /tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/OrderInterceptor.java
Date Fri, 23 Dec 2011 14:37:04 GMT
Author: markt
Date: Fri Dec 23 14:37:03 2011
New Revision: 1222691

URL: http://svn.apache.org/viewvc?rev=1222691&view=rev
Log:
Fix last Eclipse warning in o.a.catalina package

Modified:
    tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/OrderInterceptor.java

Modified: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/OrderInterceptor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/OrderInterceptor.java?rev=1222691&r1=1222690&r2=1222691&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/OrderInterceptor.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/OrderInterceptor.java
Fri Dec 23 14:37:03 2011
@@ -266,6 +266,7 @@ public class OrderInterceptor extends Ch
             return counter;
         }
 
+        @SuppressWarnings("null") // prev cannot be null
         public static MessageOrder add(MessageOrder head, MessageOrder add) {
             if ( head == null ) return add;
             if ( add == null ) return head;
@@ -288,7 +289,7 @@ public class OrderInterceptor extends Ch
                 iter.next = add;
             } else if (iter.getMsgNr() > add.getMsgNr()) {
                 //add before
-                prev.next = add;
+                prev.next = add; // prev cannot be null here, warning suppressed
                 add.next = iter;
 
             } else {



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


Mime
View raw message