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:
+3
-1
@@ -73,7 +73,9 @@ public class AclAuthorizationStrategyImpl implements AclAuthorizationStrategy {
|
||||
this.gaGeneralChanges = auths[2];
|
||||
}
|
||||
else {
|
||||
this.gaTakeOwnership = this.gaModifyAuditing = this.gaGeneralChanges = auths[0];
|
||||
this.gaTakeOwnership = auths[0];
|
||||
this.gaModifyAuditing = auths[0];
|
||||
this.gaGeneralChanges = auths[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user