Ignore:
Timestamp:
07/25/13 15:27:21 (11 years ago)
Author:
pharms
Message:
  • removed find bugs warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogCompressor.java

    r1254 r1272  
    189189                while (finalOutFile.exists()); 
    190190 
    191                 outFile.renameTo(finalOutFile); 
    192                 Console.println("created " + finalOutFile); 
     191                if (outFile.renameTo(finalOutFile)) { 
     192                    Console.println("created " + finalOutFile); 
     193                } 
     194                else { 
     195                    Console.println 
     196                        ("created " + outFile + " but could not rename to " + finalOutFile); 
     197                } 
    193198            } 
    194199        } 
    195200        else { 
    196             outFile.delete(); 
     201            if (!outFile.delete()) { 
     202                Console.printerrln 
     203                    ("could not delete temporary file " + outFile); 
     204            } 
    197205        } 
    198206    } 
     
    273281                    // add the event directly where the center is, as the timestamps of the center 
    274282                    // and the new event are equal 
    275                     start = end = center; 
     283                    end = center; 
     284                    start = end; 
    276285                    break; 
    277286                } 
Note: See TracChangeset for help on using the changeset viewer.