Avoid inner assignments
Replace code of the form `a = b =c` with distinct statements. Although this results in more lines of code, they are usually easier to understand. Issue gh-8945
This commit is contained in:
+2
-1
@@ -68,7 +68,8 @@ public class ContextPropagatingRemoteInvocation extends RemoteInvocation {
|
||||
this.credentials = userCredentials == null ? null : userCredentials.toString();
|
||||
}
|
||||
else {
|
||||
this.principal = this.credentials = null;
|
||||
this.credentials = null;
|
||||
this.principal = null;
|
||||
}
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user