Ignore:
Timestamp:
02/12/14 15:12:09 (10 years ago)
Author:
pharms
Message:
  • removed find bugs warning
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-httpmonitor/src/main/java/de/ugoe/cs/autoquest/httpmonitor/HttpMonitorLogManager.java

    r1374 r1380  
    110110     */ 
    111111    @Override 
    112     public void handleHttpExchange(HttpExchange httpExchange) { 
     112    public synchronized void handleHttpExchange(HttpExchange httpExchange) { 
    113113        try { 
    114114            if (writer == null) { 
    115                 synchronized (this) { 
    116                     if (writer == null) { 
    117                         writer = new HttpMonitorOutputWriter(logFileBaseDir); 
    118                         writer.init(); 
    119                     } 
    120                 } 
     115                writer = new HttpMonitorOutputWriter(logFileBaseDir); 
     116                writer.init(); 
    121117            } 
    122118 
     
    125121        catch (Exception e) { 
    126122            Console.printerrln("could not handle message: " + e); 
    127             e.printStackTrace(); 
    128123            Console.logException(e); 
    129124             
Note: See TracChangeset for help on using the changeset viewer.