Author: borges
Date: 2012-02-01 11:49:32 -0500 (Wed, 01 Feb 2012)
New Revision: 12065
Modified:
trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/SyncSpeedTest.java
Log:
check return code for error, avoiding Findbugs warning.
Modified:
trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/SyncSpeedTest.java
===================================================================
---
trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/SyncSpeedTest.java 2012-02-01
16:49:17 UTC (rev 12064)
+++
trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/SyncSpeedTest.java 2012-02-01
16:49:32 UTC (rev 12065)
@@ -168,7 +168,10 @@
if (file.exists())
{
- file.delete();
+ if (!file.delete())
+ {
+ log.error("failed to delete file " + file);
+ }
}
file.createNewFile();
Show replies by date