Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
config-manager: final parameters
[controller.git]
/
opendaylight
/
config
/
config-manager
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
config
/
manager
/
impl
/
DeadlockMonitor.java
diff --git
a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/DeadlockMonitor.java
b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/DeadlockMonitor.java
index 20e5fe658411f2b694885496b948217a4e59ef48..af58dd2746efe47dc7329ab12f43929545afe8bf 100644
(file)
--- a/
opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/DeadlockMonitor.java
+++ b/
opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/DeadlockMonitor.java
@@
-29,13
+29,13
@@
public class DeadlockMonitor implements AutoCloseable {
@GuardedBy("this")
private ModuleIdentifierWithNanos top = ModuleIdentifierWithNanos.empty;
@GuardedBy("this")
private ModuleIdentifierWithNanos top = ModuleIdentifierWithNanos.empty;
- public DeadlockMonitor(TransactionIdentifier transactionIdentifier) {
+ public DeadlockMonitor(
final
TransactionIdentifier transactionIdentifier) {
this.transactionIdentifier = transactionIdentifier;
thread = new DeadlockMonitorRunnable();
thread.start();
}
this.transactionIdentifier = transactionIdentifier;
thread = new DeadlockMonitorRunnable();
thread.start();
}
- public synchronized void setCurrentlyInstantiatedModule(ModuleIdentifier currentlyInstantiatedModule) {
+ public synchronized void setCurrentlyInstantiatedModule(
final
ModuleIdentifier currentlyInstantiatedModule) {
boolean popping = currentlyInstantiatedModule == null;
if (popping) {
boolean popping = currentlyInstantiatedModule == null;
if (popping) {
@@
-95,7
+95,7
@@
public class DeadlockMonitor implements AutoCloseable {
}
try {
sleep(WARN_AFTER_MILLIS);
}
try {
sleep(WARN_AFTER_MILLIS);
- } catch (InterruptedException e) {
+ } catch (
final
InterruptedException e) {
interrupt();
}
}
interrupt();
}
}
@@
-119,18
+119,18
@@
public class DeadlockMonitor implements AutoCloseable {
this((ModuleIdentifier)null);
}
this((ModuleIdentifier)null);
}
- private ModuleIdentifierWithNanos(ModuleIdentifier moduleIdentifier) {
+ private ModuleIdentifierWithNanos(
final
ModuleIdentifier moduleIdentifier) {
this.moduleIdentifier = moduleIdentifier;
nanoTime = System.nanoTime();
}
this.moduleIdentifier = moduleIdentifier;
nanoTime = System.nanoTime();
}
- private ModuleIdentifierWithNanos(ModuleIdentifierWithNanos copy) {
+ private ModuleIdentifierWithNanos(
final
ModuleIdentifierWithNanos copy) {
moduleIdentifier = copy.moduleIdentifier;
nanoTime = copy.nanoTime;
}
@Override
moduleIdentifier = copy.moduleIdentifier;
nanoTime = copy.nanoTime;
}
@Override
- public boolean equals(Object o) {
+ public boolean equals(
final
Object o) {
if (this == o) {
return true;
}
if (this == o) {
return true;
}