commit | c68974f7b62cd5188853ab65e5905221ee6c5086 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Wed Apr 09 17:28:38 2014 -0700 |
committer | Gerrit Code Review <gerrit2@onos-services> | Wed Apr 09 22:45:09 2014 -0700 |
tree | 9044b82206c5cf0928e16a61d44c797ba0603c44 | |
parent | 636077950c5cfd1722af90f5e808d5123625fa7b [diff] |
Fix issues found by FindBugs: UL_UNRELEASED_LOCK_EXCEPTION_PATH http://findbugs.sourceforge.net/bugDescriptions.html#UL_UNRELEASED_LOCK_EXCEPTION_PATH Change-Id: I1c69029bd4fba6f5b61c3880a6c90ffda5e838aa
diff --git a/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntimeModule.java b/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntimeModule.java index d6cd25a..ddfaa38 100755 --- a/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntimeModule.java +++ b/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntimeModule.java
@@ -255,8 +255,8 @@ //opEventChannel.removeEntry(key); return pathIntentOperations; } finally { - p.flushLog(); lock.unlock(); + p.flushLog(); } } @@ -398,8 +398,8 @@ pathIntents.changeStates(pathIntentStates); p.log("end_changeStateByNotification"); } finally { - p.flushLog(); lock.unlock(); + p.flushLog(); } } }