sdeboy      2004/01/16 00:25:56

  Modified:    src/java/org/apache/log4j/chainsaw
                        ChainsawCyclicBufferTableModel.java
  Log:
  Better handling of invalid expressions in refilter - performing notifications
  
  Revision  Changes    Path
  1.21      +4 -3      
logging-log4j/src/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
  
  Index: ChainsawCyclicBufferTableModel.java
  ===================================================================
  RCS file: 
/home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ChainsawCyclicBufferTableModel.java       16 Jan 2004 08:02:11 -0000      1.20
  +++ ChainsawCyclicBufferTableModel.java       16 Jan 2004 08:25:56 -0000      1.21
  @@ -134,8 +134,8 @@
     }
     
     private void reFilter() {
  -    try {
  -        synchronized(unfilteredList) {
  +    synchronized(unfilteredList) {
  +        try {
             filteredList.clear();
             Iterator iter = unfilteredList.iterator();
             while (iter.hasNext()) {
  @@ -144,10 +144,11 @@
                     filteredList.add(e);
                 }
             }
  +        } finally { 
             fireTableDataChanged();
             notifyCountListeners();
           }
  -    } catch (IllegalArgumentException iae) {LogLog.warn("invalid expression", iae);}
  +    }
     }
     
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to