Remove unnecessary semicolons

Change-Id: I7db3f3dd3ae6feee3d28415fc13615e4ac00af50
This commit is contained in:
alex.ryazantsev 2013-11-10 05:44:17 +04:00
parent 753245fd76
commit 997b04783a
47 changed files with 55 additions and 55 deletions

View File

@ -107,7 +107,7 @@ public class GerritServer {
serverStarted.reset(); serverStarted.reset();
} }
return null; return null;
}; }
}); });
serverStarted.await(); serverStarted.await();
System.out.println("Gerrit Server Started"); System.out.println("Gerrit Server Started");

View File

@ -16,5 +16,5 @@ package com.google.gerrit.common.changes;
/** The side on which a comment was added. */ /** The side on which a comment was added. */
public enum Side { public enum Side {
PARENT, REVISION; PARENT, REVISION
} }

View File

@ -20,7 +20,7 @@ public class PermissionRule implements Comparable<PermissionRule> {
public static enum Action { public static enum Action {
ALLOW, DENY, BLOCK, ALLOW, DENY, BLOCK,
INTERACTIVE, BATCH; INTERACTIVE, BATCH
} }
protected Action action = Action.ALLOW; protected Action action = Action.ALLOW;

View File

@ -37,7 +37,7 @@ public class SubmitRecord {
* <p> * <p>
* Additional detail may be available in {@link SubmitRecord#errorMessage}. * Additional detail may be available in {@link SubmitRecord#errorMessage}.
*/ */
RULE_ERROR; RULE_ERROR
} }
public Status status; public Status status;
@ -78,7 +78,7 @@ public class SubmitRecord {
* The likely cause is access has not been granted correctly by the * The likely cause is access has not been granted correctly by the
* project owner or site administrator. * project owner or site administrator.
*/ */
IMPOSSIBLE; IMPOSSIBLE
} }
public String label; public String label;

View File

@ -32,5 +32,5 @@ public enum CapabilityScope {
PLUGIN, PLUGIN,
/** Scope is the core server. */ /** Scope is the core server. */
CORE; CORE
} }

View File

@ -19,7 +19,7 @@ import java.util.concurrent.TimeUnit;
public class CacheControl { public class CacheControl {
public enum Type { public enum Type {
NONE, PUBLIC, PRIVATE; NONE, PUBLIC, PRIVATE
} }
public static final CacheControl NONE = new CacheControl(Type.NONE, 0, null); public static final CacheControl NONE = new CacheControl(Type.NONE, 0, null);

View File

@ -35,7 +35,7 @@ public interface ServerInformation {
* The server is attempting a graceful halt of operations and will exit (or * The server is attempting a graceful halt of operations and will exit (or
* be killed by the operating system) soon. * be killed by the operating system) soon.
*/ */
SHUTDOWN; SHUTDOWN
} }
State getState(); State getState();

View File

@ -82,7 +82,7 @@ class EditMessageBox extends Composite {
public void onSuccess(JavaScriptObject msg) { public void onSuccess(JavaScriptObject msg) {
Gerrit.display(PageLinks.toChange(changeId)); Gerrit.display(PageLinks.toChange(changeId));
hide(); hide();
}; }
}); });
} }

View File

@ -171,7 +171,7 @@ public class ChangeApi {
protected CherryPickInput() { protected CherryPickInput() {
} }
}; }
private static class SubmitInput extends JavaScriptObject { private static class SubmitInput extends JavaScriptObject {
final native void wait_for_merge(boolean b) /*-{ this.wait_for_merge=b; }-*/; final native void wait_for_merge(boolean b) /*-{ this.wait_for_merge=b; }-*/;

View File

@ -453,7 +453,7 @@ public class PatchTable extends Composite {
for (Patch p : detail.getPatches()) { for (Patch p : detail.getPatches()) {
openWindow(Dispatcher.toPatchUnified(base, p.getKey())); openWindow(Dispatcher.toPatchUnified(base, p.getKey()));
} }
}; }
}); });
table.setWidget(row, C_UNIFIED, unified); table.setWidget(row, C_UNIFIED, unified);
} }

View File

@ -18,7 +18,7 @@ import com.google.gwt.core.client.JavaScriptObject;
public class ReviewInput extends JavaScriptObject { public class ReviewInput extends JavaScriptObject {
public static enum NotifyHandling { public static enum NotifyHandling {
NONE, OWNER, OWNER_REVIEWERS, ALL; NONE, OWNER, OWNER_REVIEWERS, ALL
} }
public static ReviewInput create() { public static ReviewInput create() {

View File

@ -23,8 +23,8 @@ import com.google.gwt.user.client.rpc.AsyncCallback;
public class DiffApi { public class DiffApi {
public enum IgnoreWhitespace { public enum IgnoreWhitespace {
NONE, TRAILING, CHANGED, ALL; NONE, TRAILING, CHANGED, ALL
}; }
public static void list(int id, String revision, public static void list(int id, String revision,
AsyncCallback<NativeMap<FileInfo>> cb) { AsyncCallback<NativeMap<FileInfo>> cb) {

View File

@ -93,7 +93,7 @@ public class DiffInfo extends JavaScriptObject {
} }
public enum IntraLineStatus { public enum IntraLineStatus {
OFF, OK, TIMEOUT, FAILURE; OFF, OK, TIMEOUT, FAILURE
} }
public static class FileMeta extends JavaScriptObject { public static class FileMeta extends JavaScriptObject {

View File

@ -16,5 +16,5 @@ package com.google.gerrit.client.diff;
/** Enum representing the side on a side-by-side view */ /** Enum representing the side on a side-by-side view */
enum DisplaySide { enum DisplaySide {
A, B; A, B
} }

View File

@ -49,7 +49,7 @@ class SidePanel extends Composite {
} }
enum GutterType { enum GutterType {
COMMENT, DRAFT, INSERT, DELETE, EDIT; COMMENT, DRAFT, INSERT, DELETE, EDIT
} }
@UiField @UiField

View File

@ -16,7 +16,7 @@ package com.google.gerrit.client.patches;
class PatchLine { class PatchLine {
static enum Type { static enum Type {
DELETE, INSERT, REPLACE, CONTEXT; DELETE, INSERT, REPLACE, CONTEXT
} }
private PatchLine.Type type; private PatchLine.Type type;

View File

@ -147,7 +147,7 @@ public class PatchScriptSettingsPanel extends Composite {
} }
} }
toggleEnabledStatus(on); toggleEnabledStatus(on);
}; }
} }
public void setEnableSmallFileFeatures(final boolean on) { public void setEnableSmallFileFeatures(final boolean on) {

View File

@ -71,7 +71,7 @@ public abstract class Screen extends View {
} }
private static enum Cols { private static enum Cols {
West, Title, East, FarEast; West, Title, East, FarEast
} }
protected void onInitUI() { protected void onInitUI() {

View File

@ -68,7 +68,7 @@ public class CodeMirror extends JavaScriptObject {
}-*/; }-*/;
public enum LineClassWhere { public enum LineClassWhere {
TEXT, BACKGROUND, WRAP; TEXT, BACKGROUND, WRAP
} }
public final void addLineClass(int line, LineClassWhere where, public final void addLineClass(int line, LineClassWhere where,
@ -201,7 +201,7 @@ public class CodeMirror extends JavaScriptObject {
public final FromTo getSelectedRange() { public final FromTo getSelectedRange() {
return FromTo.create(getCursor("start"), getCursor("end")); return FromTo.create(getCursor("start"), getCursor("end"));
}; }
public final native void setCursor(LineCharacter lineCh) /*-{ public final native void setCursor(LineCharacter lineCh) /*-{
this.setCursor(lineCh); this.setCursor(lineCh);

View File

@ -25,7 +25,7 @@ final class DiscoveryResult {
NO_PROVIDER, NO_PROVIDER,
/** The provider was discovered, but something else failed. */ /** The provider was discovered, but something else failed. */
ERROR; ERROR
} }
Status status; Status status;

View File

@ -15,5 +15,5 @@
package com.google.gerrit.httpd.auth.openid; package com.google.gerrit.httpd.auth.openid;
enum SignInMode { enum SignInMode {
SIGN_IN, LINK_IDENTIY, REGISTER; SIGN_IN, LINK_IDENTIY, REGISTER
} }

View File

@ -56,7 +56,7 @@ import java.sql.Timestamp;
*/ */
public final class Account { public final class Account {
public static enum FieldName { public static enum FieldName {
FULL_NAME, USER_NAME, REGISTER_NEW_EMAIL; FULL_NAME, USER_NAME, REGISTER_NEW_EMAIL
} }
public static final String USER_NAME_PATTERN_FIRST = "[a-zA-Z]"; public static final String USER_NAME_PATTERN_FIRST = "[a-zA-Z]";

View File

@ -27,12 +27,12 @@ public final class AccountGeneralPreferences {
/** Preferred scheme type to download a change. */ /** Preferred scheme type to download a change. */
public static enum DownloadScheme { public static enum DownloadScheme {
ANON_GIT, ANON_HTTP, HTTP, SSH, REPO_DOWNLOAD, DEFAULT_DOWNLOADS; ANON_GIT, ANON_HTTP, HTTP, SSH, REPO_DOWNLOAD, DEFAULT_DOWNLOADS
} }
/** Preferred method to download a change. */ /** Preferred method to download a change. */
public static enum DownloadCommand { public static enum DownloadCommand {
REPO_DOWNLOAD, PULL, CHECKOUT, CHERRY_PICK, FORMAT_PATCH, DEFAULT_DOWNLOADS; REPO_DOWNLOAD, PULL, CHECKOUT, CHERRY_PICK, FORMAT_PATCH, DEFAULT_DOWNLOADS
} }
public static enum DateFormat { public static enum DateFormat {
@ -69,7 +69,7 @@ public final class AccountGeneralPreferences {
COLLAPSE_ALL, COLLAPSE_ALL,
EXPAND_MOST_RECENT, EXPAND_MOST_RECENT,
EXPAND_RECENT, EXPAND_RECENT,
EXPAND_ALL; EXPAND_ALL
} }
public static enum DiffView { public static enum DiffView {

View File

@ -142,7 +142,7 @@ public final class AccountGroup {
* who is a member of the owner group. These groups are not treated special * who is a member of the owner group. These groups are not treated special
* in the code. * in the code.
*/ */
INTERNAL; INTERNAL
} }
/** Common UUID assigned to the "Project Owners" placeholder group. */ /** Common UUID assigned to the "Project Owners" placeholder group. */

View File

@ -80,5 +80,5 @@ public enum AuthType {
CUSTOM_EXTENSION, CUSTOM_EXTENSION,
/** Development mode to enable becoming anyone you want. */ /** Development mode to enable becoming anyone you want. */
DEVELOPMENT_BECOME_ANY_ACCOUNT; DEVELOPMENT_BECOME_ANY_ACCOUNT
} }

View File

@ -74,7 +74,7 @@ public final class Project {
MERGE_ALWAYS, MERGE_ALWAYS,
CHERRY_PICK; CHERRY_PICK
} }
public static enum State { public static enum State {
@ -82,13 +82,13 @@ public final class Project {
READ_ONLY, READ_ONLY,
HIDDEN; HIDDEN
} }
public static enum InheritableBoolean { public static enum InheritableBoolean {
TRUE, TRUE,
FALSE, FALSE,
INHERIT; INHERIT
} }
protected NameKey name; protected NameKey name;

View File

@ -64,7 +64,7 @@ public class PrologCompiler implements Callable<PrologCompiler.Status> {
} }
public static enum Status { public static enum Status {
NO_RULES, COMPILED; NO_RULES, COMPILED
} }
private final File ruleDir; private final File ruleDir;

View File

@ -32,5 +32,5 @@ public enum AccessPath {
SSH_COMMAND, SSH_COMMAND,
/** Access from a Git client using any Git protocol. */ /** Access from a Git client using any Git protocol. */
GIT; GIT
} }

View File

@ -34,7 +34,7 @@ public abstract class AccountDirectory {
AVATARS, AVATARS,
/** Unique user identity to login to Gerrit, may be deprecated. */ /** Unique user identity to login to Gerrit, may be deprecated. */
USERNAME; USERNAME
} }
public abstract void fillAccountInfo( public abstract void fillAccountInfo(

View File

@ -29,5 +29,5 @@ public enum AccountVisibility {
* Other accounts are not visible to the given user unless they are explicitly * Other accounts are not visible to the given user unless they are explicitly
* collaborating on a change. * collaborating on a change.
*/ */
NONE; NONE
} }

View File

@ -193,7 +193,7 @@ public class GetDiff implements RestReadView<FileResource> {
enum IntraLineStatus { enum IntraLineStatus {
OK, OK,
TIMEOUT, TIMEOUT,
FAILURE; FAILURE
} }
private static class Content { private static class Content {

View File

@ -82,11 +82,11 @@ public class PatchSetInserter {
* validation. * validation.
*/ */
public static enum ValidatePolicy { public static enum ValidatePolicy {
GERRIT, RECEIVE_COMMITS, NONE; GERRIT, RECEIVE_COMMITS, NONE
} }
public static enum ChangeKind { public static enum ChangeKind {
REWORK, TRIVIAL_REBASE, NO_CODE_CHANGE; REWORK, TRIVIAL_REBASE, NO_CODE_CHANGE
} }
private final ChangeHooks hooks; private final ChangeHooks hooks;

View File

@ -60,7 +60,7 @@ public class Submit implements RestModifyView<RevisionResource, SubmitInput>,
} }
public enum Status { public enum Status {
SUBMITTED, MERGED; SUBMITTED, MERGED
} }
public static class Output { public static class Output {

View File

@ -47,7 +47,7 @@ import java.util.Map;
public class TestSubmitRule implements RestModifyView<RevisionResource, Input> { public class TestSubmitRule implements RestModifyView<RevisionResource, Input> {
public enum Filters { public enum Filters {
RUN, SKIP; RUN, SKIP
} }
public static class Input { public static class Input {

View File

@ -951,7 +951,7 @@ public class MergeOp {
} }
private enum RetryStatus { private enum RetryStatus {
UNSUBMIT, RETRY_NO_MESSAGE, RETRY_ADD_MESSAGE; UNSUBMIT, RETRY_NO_MESSAGE, RETRY_ADD_MESSAGE
} }
private RetryStatus getRetryStatus( private RetryStatus getRetryStatus(

View File

@ -25,7 +25,7 @@ import java.util.Set;
public class NotifyConfig implements Comparable<NotifyConfig> { public class NotifyConfig implements Comparable<NotifyConfig> {
public static enum Header { public static enum Header {
TO, CC, BCC; TO, CC, BCC
} }
private String name; private String name;

View File

@ -16,7 +16,7 @@ package com.google.gerrit.server.git;
public interface QueueProvider { public interface QueueProvider {
public static enum QueueType { public static enum QueueType {
INTERACTIVE, BATCH; INTERACTIVE, BATCH
} }
public WorkQueue.Executor getQueue(QueueType type); public WorkQueue.Executor getQueue(QueueType type);

View File

@ -241,7 +241,7 @@ public class WorkQueue {
// prefer to see tasks sorted in: done before running, // prefer to see tasks sorted in: done before running,
// running before ready, ready before sleeping. // running before ready, ready before sleeping.
// //
DONE, CANCELLED, RUNNING, READY, SLEEPING, OTHER; DONE, CANCELLED, RUNNING, READY, SLEEPING, OTHER
} }
private final Runnable runnable; private final Runnable runnable;

View File

@ -37,7 +37,7 @@ import org.eclipse.jgit.lib.Config;
*/ */
public class IndexModule extends LifecycleModule { public class IndexModule extends LifecycleModule {
public enum IndexType { public enum IndexType {
SQL, LUCENE, SOLR; SQL, LUCENE, SOLR
} }
/** Type of secondary index. */ /** Type of secondary index. */

View File

@ -51,7 +51,7 @@ public class SmtpEmailSender implements EmailSender {
} }
public static enum Encryption { public static enum Encryption {
NONE, SSL, TLS; NONE, SSL, TLS
} }
private final boolean enabled; private final boolean enabled;

View File

@ -34,7 +34,7 @@ import java.util.jar.Manifest;
public abstract class Plugin { public abstract class Plugin {
public static enum ApiType { public static enum ApiType {
EXTENSION, PLUGIN, JS; EXTENSION, PLUGIN, JS
} }
/** Unique key that changes whenever a plugin reloads. */ /** Unique key that changes whenever a plugin reloads. */

View File

@ -86,7 +86,7 @@ public class QueryProcessor {
}; };
public static enum OutputFormat { public static enum OutputFormat {
TEXT, JSON; TEXT, JSON
} }
private final Gson gson = new Gson(); private final Gson gson = new Gson();

View File

@ -84,7 +84,7 @@ public class DataSourceProvider implements Provider<DataSource>,
} }
public static enum Context { public static enum Context {
SINGLE_USER, MULTI_USER; SINGLE_USER, MULTI_USER
} }
private DataSource open(final SitePaths site, final Config cfg, private DataSource open(final SitePaths site, final Config cfg,

View File

@ -37,7 +37,7 @@ class ScriptRunner {
static final ScriptRunner NOOP = new ScriptRunner(null, null) { static final ScriptRunner NOOP = new ScriptRunner(null, null) {
void run(final ReviewDb db) { void run(final ReviewDb db) {
}; }
}; };
ScriptRunner(final String scriptName, final InputStream script) { ScriptRunner(final String scriptName, final InputStream script) {

View File

@ -140,7 +140,7 @@ public class ToolsCatalog {
/** A file served out of the tools root directory. */ /** A file served out of the tools root directory. */
public static class Entry { public static class Entry {
public static enum Type { public static enum Type {
DIR, FILE; DIR, FILE
} }
private final Type type; private final Type type;

View File

@ -51,7 +51,7 @@ public class QueryShell {
} }
public static enum OutputFormat { public static enum OutputFormat {
PRETTY, JSON, JSON_SINGLE; PRETTY, JSON, JSON_SINGLE
} }
private final BufferedReader in; private final BufferedReader in;

View File

@ -118,7 +118,7 @@ public class SetReviewersCommand extends SshCommand {
DeleteReviewer delete = deleteReviewerProvider.get(); DeleteReviewer delete = deleteReviewerProvider.get();
for (Account.Id reviewer : toRemove) { for (Account.Id reviewer : toRemove) {
ReviewerResource rsrc = reviewerFactory.create(changeRsrc, reviewer); ReviewerResource rsrc = reviewerFactory.create(changeRsrc, reviewer);
String error = null;; String error = null;
try { try {
delete.apply(rsrc, new DeleteReviewer.Input()); delete.apply(rsrc, new DeleteReviewer.Input());
} catch (ResourceNotFoundException e) { } catch (ResourceNotFoundException e) {