Fix compiler warnings about missing switch cases

Add missing case statements to fix all the remaining compiler
warnings.

Change-Id: Ia804df28317d4291e1e9e9a42f1e62e60b02f5e2
This commit is contained in:
David Pursehouse
2012-12-05 16:10:45 +09:00
parent 590d0423a5
commit 846293326f
10 changed files with 31 additions and 0 deletions

View File

@@ -650,6 +650,8 @@ public class Dispatcher {
return QueryScreen.forQuery("status:open");
case LINK_IDENTIY:
return new MyIdentitiesScreen();
case REGISTER:
break;
}
}

View File

@@ -63,6 +63,10 @@ public class OpenIdSsoPanel extends FlowPanel {
FormElement.as(redirectForm.getElement()).setTarget("_top");
redirectForm.submit();
break;
case ERROR:
case NO_PROVIDER:
case NOT_ALLOWED:
break;
}
}
}

View File

@@ -514,6 +514,8 @@ public abstract class PatchScreen extends Screen implements
break;
case FILES: topPanel.add(fileList);
break;
case MAIN:
break;
}
}

View File

@@ -169,6 +169,10 @@ final class PatchSetPublishDetailFactory extends Handler<PatchSetPublishDetail>
ok++;
}
break;
case IMPOSSIBLE:
case REJECT:
break;
}
}

View File

@@ -142,6 +142,9 @@ public final class AccountProjectWatch {
case SUBMITTED_CHANGES:
return notifySubmittedChanges;
case ALL:
break;
}
return false;
}

View File

@@ -159,6 +159,11 @@ public class CapabilityControl {
case BATCH:
batch = true;
break;
case ALLOW:
case BLOCK:
case DENY:
break;
}
}
}

View File

@@ -80,6 +80,8 @@ public class GroupDetailFactory implements Callable<GroupDetail> {
detail.setMembers(loadMembers());
detail.setIncludes(loadIncludes());
break;
case SYSTEM:
break;
}
detail.setAccounts(aic.create());
detail.setCanModify(control.isOwner());

View File

@@ -581,6 +581,9 @@ public class ReceiveCommits {
autoCloseChanges(c);
}
break;
case DELETE:
break;
}
if (isConfig(c)) {

View File

@@ -332,6 +332,8 @@ public abstract class OutgoingEmail {
case CC:
((EmailHeader.AddressList) headers.get(HDR_CC)).add(addr);
break;
case BCC:
break;
}
}
} else {

View File

@@ -250,6 +250,10 @@ final class ShowCaches extends CacheCommand {
case RUNNING: tasksRunning++; break;
case READY: tasksReady++; break;
case SLEEPING: tasksSleeping++; break;
case CANCELLED:
case DONE:
case OTHER:
break;
}
}
stdout.format(