ARTEMIS-3446 - tidy up cli code based on static analysis
This commit is contained in:
parent
8fb5b8969f
commit
dbdd941c49
|
@ -108,7 +108,7 @@ public class ActivationSequenceList extends LockAbstract {
|
||||||
try {
|
try {
|
||||||
if (nodeManager != null) {
|
if (nodeManager != null) {
|
||||||
if (coordinationId != null) {
|
if (coordinationId != null) {
|
||||||
if (!coordinationId.equals(nodeManager.getNodeId())) {
|
if (nodeManager.getNodeId() == null || !nodeManager.getNodeId().toString().equals(coordinationId)) {
|
||||||
nodeManager = applyCoordinationId(coordinationId, nodeManager, config.getNodeManagerLockLocation());
|
nodeManager = applyCoordinationId(coordinationId, nodeManager, config.getNodeManagerLockLocation());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ public class ActivationSequenceList extends LockAbstract {
|
||||||
} else {
|
} else {
|
||||||
assert nodeId != null;
|
assert nodeId != null;
|
||||||
}
|
}
|
||||||
if (!remote) {
|
if (!remote && nodeManager != null) {
|
||||||
final long localActivationSequence = nodeManager.getNodeActivationSequence();
|
final long localActivationSequence = nodeManager.getNodeActivationSequence();
|
||||||
if (localActivationSequence == NodeManager.NULL_NODE_ACTIVATION_SEQUENCE) {
|
if (localActivationSequence == NodeManager.NULL_NODE_ACTIVATION_SEQUENCE) {
|
||||||
if (out != null) {
|
if (out != null) {
|
||||||
|
|
Loading…
Reference in New Issue