Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bump odlparent to 6.0.0
[controller.git]
/
opendaylight
/
config
/
threadpool-config-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
config
/
threadpool
/
util
/
FlexibleThreadPoolWrapper.java
diff --git
a/opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/threadpool/util/FlexibleThreadPoolWrapper.java
b/opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/threadpool/util/FlexibleThreadPoolWrapper.java
index a2fb009929cb29d8e32db4be8373addf7bcc4ad4..9949e36d3714f55b6936e66d3d596ef9a5b9b96c 100644
(file)
--- a/
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/threadpool/util/FlexibleThreadPoolWrapper.java
+++ b/
opendaylight/config/threadpool-config-impl/src/main/java/org/opendaylight/controller/config/threadpool/util/FlexibleThreadPoolWrapper.java
@@
-105,6
+105,7
@@
public class FlexibleThreadPoolWrapper implements ThreadPool, Closeable {
*/
private static class FlexibleRejectionHandler implements RejectedExecutionHandler {
@Override
*/
private static class FlexibleRejectionHandler implements RejectedExecutionHandler {
@Override
+ @SuppressWarnings("checkstyle:parameterName")
public void rejectedExecution(final Runnable r, final ThreadPoolExecutor executor) {
try {
executor.getQueue().put(r);
public void rejectedExecution(final Runnable r, final ThreadPoolExecutor executor) {
try {
executor.getQueue().put(r);
@@
-118,7
+119,7
@@
public class FlexibleThreadPoolWrapper implements ThreadPool, Closeable {
extends com.google.common.util.concurrent.ForwardingBlockingQueue<Runnable> {
private final BlockingQueue<Runnable> delegate;
extends com.google.common.util.concurrent.ForwardingBlockingQueue<Runnable> {
private final BlockingQueue<Runnable> delegate;
-
public
ForwardingBlockingQueue(final BlockingQueue<Runnable> delegate) {
+ ForwardingBlockingQueue(final BlockingQueue<Runnable> delegate) {
this.delegate = delegate;
}
this.delegate = delegate;
}
@@
-128,7
+129,8
@@
public class FlexibleThreadPoolWrapper implements ThreadPool, Closeable {
}
@Override
}
@Override
- public boolean offer(final Runnable r) {
+ @SuppressWarnings("checkstyle:parameterName")
+ public boolean offer(final Runnable o) {
// ThreadPoolExecutor will spawn a new thread after core size is reached only
// if the queue.offer returns false.
return false;
// ThreadPoolExecutor will spawn a new thread after core size is reached only
// if the queue.offer returns false.
return false;