Code Review
/
transportpce.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Declare SuppressFBWarnings in imports
[transportpce.git]
/
common
/
src
/
main
/
java
/
org
/
opendaylight
/
transportpce
/
common
/
network
/
RequestProcessor.java
diff --git
a/common/src/main/java/org/opendaylight/transportpce/common/network/RequestProcessor.java
b/common/src/main/java/org/opendaylight/transportpce/common/network/RequestProcessor.java
index 940cd4f7ca5eac15baf6ae4e8ef8c24d2204412b..8a4780ca104bb107ab4ede0c0f88cb070e966322 100644
(file)
--- a/
common/src/main/java/org/opendaylight/transportpce/common/network/RequestProcessor.java
+++ b/
common/src/main/java/org/opendaylight/transportpce/common/network/RequestProcessor.java
@@
-11,6
+11,7
@@
import static java.util.Objects.requireNonNull;
import com.google.common.util.concurrent.FluentFuture;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.FluentFuture;
import com.google.common.util.concurrent.ListenableFuture;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
@@
-28,7
+29,7
@@
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-@
edu.umd.cs.findbugs.annotations.
SuppressFBWarnings(value = "UL_UNRELEASED_LOCK_EXCEPTION_PATH",
+@SuppressFBWarnings(value = "UL_UNRELEASED_LOCK_EXCEPTION_PATH",
justification = "This appears to be doing exactly the right thing with the finally-clause to release the lock")
public class RequestProcessor {
justification = "This appears to be doing exactly the right thing with the finally-clause to release the lock")
public class RequestProcessor {
@@
-132,13
+133,6
@@
public class RequestProcessor {
}
}
}
}
- public void close() {
- LOG.info("closing RequestProcessor Locks by {}", Thread.currentThread().getName());
- writeTrMap.remove(Thread.currentThread().getName());
- readL.unlock();
- writeL.unlock();
- }
-
/**
* Return the dataBroker related to RequestProcessor.
* @return the dataBroker
/**
* Return the dataBroker related to RequestProcessor.
* @return the dataBroker