Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge topic 'checkstyle'
[controller.git]
/
opendaylight
/
config
/
config-persister-file-xml-adapter
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
config
/
persist
/
storage
/
file
/
xml
/
XmlFileStorageAdapter.java
diff --git
a/opendaylight/config/config-persister-file-xml-adapter/src/main/java/org/opendaylight/controller/config/persist/storage/file/xml/XmlFileStorageAdapter.java
b/opendaylight/config/config-persister-file-xml-adapter/src/main/java/org/opendaylight/controller/config/persist/storage/file/xml/XmlFileStorageAdapter.java
index 7badc4b294679d6cd88a1d15169c13ca369dc101..8bd420865cea058b89d141883028c70db1882925 100644
(file)
--- a/
opendaylight/config/config-persister-file-xml-adapter/src/main/java/org/opendaylight/controller/config/persist/storage/file/xml/XmlFileStorageAdapter.java
+++ b/
opendaylight/config/config-persister-file-xml-adapter/src/main/java/org/opendaylight/controller/config/persist/storage/file/xml/XmlFileStorageAdapter.java
@@
-52,8
+52,9
@@
public class XmlFileStorageAdapter implements StorageAdapter, Persister {
LOG.debug("Storage file does not exist, creating empty file");
try {
boolean result = storage.createNewFile();
LOG.debug("Storage file does not exist, creating empty file");
try {
boolean result = storage.createNewFile();
- if (result == false)
+ if (result == false)
{
throw new RuntimeException("Unable to create storage file " + storage);
throw new RuntimeException("Unable to create storage file " + storage);
+ }
} catch (IOException e) {
throw new RuntimeException("Unable to create storage file " + storage, e);
}
} catch (IOException e) {
throw new RuntimeException("Unable to create storage file " + storage, e);
}