logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r321179 - /logging/chainsaw/trunk/src/java/org/apache/log4j/chainsaw/ColumnComparator.java
Date Fri, 14 Oct 2005 18:55:13 GMT
Author: sdeboy
Date: Fri Oct 14 11:54:59 2005
New Revision: 321179

URL: http://svn.apache.org/viewcvs?rev=321179&view=rev
Log:
ndc nulls now sort correctly

Modified:
    logging/chainsaw/trunk/src/java/org/apache/log4j/chainsaw/ColumnComparator.java

Modified: logging/chainsaw/trunk/src/java/org/apache/log4j/chainsaw/ColumnComparator.java
URL: http://svn.apache.org/viewcvs/logging/chainsaw/trunk/src/java/org/apache/log4j/chainsaw/ColumnComparator.java?rev=321179&r1=321178&r2=321179&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/java/org/apache/log4j/chainsaw/ColumnComparator.java (original)
+++ logging/chainsaw/trunk/src/java/org/apache/log4j/chainsaw/ColumnComparator.java Fri Oct
14 11:54:59 2005
@@ -72,6 +72,12 @@
             sort =
                 e1.getNDC().compareToIgnoreCase(
                 e2.getNDC());
+        } else if (e1.getNDC() == null && e2.getNDC() == null) {
+        	sort = 0;
+        } else if (e1.getNDC() == null) {
+        	sort = -1;
+        } else if (e2.getNDC() == null) {
+        	sort = 1;
         }
 
         break;



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


Mime
View raw message