Fix FindBugs warnings in sal-distributed-datastore and enable enforcement
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / DatastoreSnapshotRestore.java
index 87c88179dc2e9f2ebd38d7ec58365209a7b45233..e736ddae3136ae43a8b7163e4a4941990e8184dd 100644 (file)
@@ -75,7 +75,7 @@ public class DatastoreSnapshotRestore {
             for (DatastoreSnapshot snapshot: snapshots) {
                 datastoreSnapshots.put(snapshot.getType(), snapshot);
             }
-        } catch (Exception e) {
+        } catch (ClassNotFoundException | IOException e) {
             LOG.error("Error reading clustered datastore restore file {}", restoreFile, e);
         } finally {
             if (!restoreFile.delete()) {