summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-01-12 08:32:14 (EST)
committerCarsten Drossel2009-01-12 08:32:14 (EST)
commita186b4f1854d28ffb0115e856f21c9334d7639d1 (patch)
treeecd3c323498a42ea6c6b4dae752d2581d460e03d
parent8976f8a988cc86685089a7a527df54151c02a832 (diff)
downloadorg.eclipse.riena-a186b4f1854d28ffb0115e856f21c9334d7639d1.zip
org.eclipse.riena-a186b4f1854d28ffb0115e856f21c9334d7639d1.tar.gz
org.eclipse.riena-a186b4f1854d28ffb0115e856f21c9334d7639d1.tar.bz2
fixed findbugs warnings
-rw-r--r--org.eclipse.riena.monitor.client/src/org/eclipse/riena/monitor/client/SimpleStore.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.riena.monitor.client/src/org/eclipse/riena/monitor/client/SimpleStore.java b/org.eclipse.riena.monitor.client/src/org/eclipse/riena/monitor/client/SimpleStore.java
index ba82d95..3e11081 100644
--- a/org.eclipse.riena.monitor.client/src/org/eclipse/riena/monitor/client/SimpleStore.java
+++ b/org.eclipse.riena.monitor.client/src/org/eclipse/riena/monitor/client/SimpleStore.java
@@ -112,9 +112,8 @@ public class SimpleStore implements IStore, IExecutableExtension {
if (autoConfig) {
cleaner = new Cleaner();
storeFolder = new File(RienaLocations.getDataArea(Activator.getDefault().getBundle()), storeFolderName);
- storeFolder.mkdirs();
- Assert.isTrue(storeFolder.exists());
- Assert.isTrue(storeFolder.isDirectory());
+ boolean directoryCreated = storeFolder.mkdirs();
+ Assert.isTrue(directoryCreated);
try {
encrypt = getCipher(Cipher.ENCRYPT_MODE);
decrypt = getCipher(Cipher.DECRYPT_MODE);
@@ -206,7 +205,8 @@ public class SimpleStore implements IStore, IExecutableExtension {
});
for (File file : trans) {
String name = file.getName().replace(COLLECT_FILE_EXTENSION, TRANSFER_FILE_EXTENSION);
- file.renameTo(new File(file.getParent(), name));
+ boolean fileRenamed = file.renameTo(new File(file.getParent(), name));
+ Assert.isTrue(fileRenamed);
}
}