Replace pattern "user instanceof IdentifiedUser" with method call

Change-Id: Iac3af1340206ffd8f10db133bca5eab1f85926b6
This commit is contained in:
David Ostrovsky
2013-09-04 09:18:36 +02:00
committed by Shawn Pearce
parent cd4be95d6e
commit a35f8a20ab
34 changed files with 52 additions and 41 deletions

View File

@@ -274,7 +274,7 @@ public class PatchScriptFactory implements Callable<PatchScript> {
}
final CurrentUser user = control.getCurrentUser();
if (user instanceof IdentifiedUser) {
if (user.isIdentifiedUser()) {
final Account.Id me = ((IdentifiedUser) user).getAccountId();
switch (changeType) {
case ADDED: