diff options
author | Uwe Stieber | 2012-05-25 10:30:10 +0000 |
---|---|---|
committer | Uwe Stieber | 2012-05-25 10:30:10 +0000 |
commit | 4d557cc7b17b91c4d6de3827b1d7668fced82366 (patch) | |
tree | 6c2b40024e4f1b094690f89fb9fb2da11eab1220 /target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core | |
parent | c43ff2700cbc527f99e29eefe83f4586a4c2258e (diff) | |
download | org.eclipse.tcf-4d557cc7b17b91c4d6de3827b1d7668fced82366.tar.gz org.eclipse.tcf-4d557cc7b17b91c4d6de3827b1d7668fced82366.tar.xz org.eclipse.tcf-4d557cc7b17b91c4d6de3827b1d7668fced82366.zip |
Target Explorer: Updated feature description and fix more warnings
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/LogManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/LogManager.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/LogManager.java index 83437c938..ed2e2585d 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/LogManager.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.log.core/src/org/eclipse/tcf/te/tcf/log/core/internal/LogManager.java @@ -380,6 +380,7 @@ public final class LogManager implements IProtocolStateChangeListener { // Rename the log file if the rotate succeeded,
// Delete the log file if not.
rc = rc ? file.renameTo(maxFileInCycle) : file.delete();
+ if (!rc) { /* Well, there is nothing we can do about it */ }
}
} else {
@@ -393,7 +394,8 @@ public final class LogManager implements IProtocolStateChangeListener { Assert.isTrue(no <= maxInCycle);
// Rename the log file
- file.renameTo(fileInCycle);
+ boolean rc = file.renameTo(fileInCycle);
+ if (!rc) { /* Well, there is nothing we can do about it */ }
}
}
}
|