Add missing default serialVersionUID

Change-Id: I3e629e6a2c1ddf9facd9a320f2e8401a0e7d212c
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-11-15 18:28:14 -08:00
parent ae98e8017f
commit b17ddebdf0
14 changed files with 31 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ import javax.servlet.http.HttpServletResponse;
@Singleton @Singleton
class HttpLogoutServlet extends HttpServlet { class HttpLogoutServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private final Provider<WebSession> webSession; private final Provider<WebSession> webSession;
private final Provider<String> urlProvider; private final Provider<String> urlProvider;
private final String logoutUrl; private final String logoutUrl;

View File

@@ -70,6 +70,8 @@ class UrlModule extends ServletModule {
private Key<HttpServlet> notFound() { private Key<HttpServlet> notFound() {
return key(new HttpServlet() { return key(new HttpServlet() {
private static final long serialVersionUID = 1L;
@Override @Override
protected void doGet(final HttpServletRequest req, protected void doGet(final HttpServletRequest req,
final HttpServletResponse rsp) throws IOException { final HttpServletResponse rsp) throws IOException {
@@ -80,6 +82,8 @@ class UrlModule extends ServletModule {
private Key<HttpServlet> screen(final String target) { private Key<HttpServlet> screen(final String target) {
return key(new HttpServlet() { return key(new HttpServlet() {
private static final long serialVersionUID = 1L;
@Override @Override
protected void doGet(final HttpServletRequest req, protected void doGet(final HttpServletRequest req,
final HttpServletResponse rsp) throws IOException { final HttpServletResponse rsp) throws IOException {
@@ -90,6 +94,8 @@ class UrlModule extends ServletModule {
private Key<HttpServlet> legacyGerritScreen() { private Key<HttpServlet> legacyGerritScreen() {
return key(new HttpServlet() { return key(new HttpServlet() {
private static final long serialVersionUID = 1L;
@Override @Override
protected void doGet(final HttpServletRequest req, protected void doGet(final HttpServletRequest req,
final HttpServletResponse rsp) throws IOException { final HttpServletResponse rsp) throws IOException {
@@ -101,6 +107,8 @@ class UrlModule extends ServletModule {
private Key<HttpServlet> changeQuery() { private Key<HttpServlet> changeQuery() {
return key(new HttpServlet() { return key(new HttpServlet() {
private static final long serialVersionUID = 1L;
@Override @Override
protected void doGet(final HttpServletRequest req, protected void doGet(final HttpServletRequest req,
final HttpServletResponse rsp) throws IOException { final HttpServletResponse rsp) throws IOException {

View File

@@ -47,6 +47,7 @@ import javax.servlet.http.HttpServletResponse;
*/ */
@Singleton @Singleton
class HttpLoginServlet extends HttpServlet { class HttpLoginServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private static final Logger log = private static final Logger log =
LoggerFactory.getLogger(HttpLoginServlet.class); LoggerFactory.getLogger(HttpLoginServlet.class);

View File

@@ -31,6 +31,8 @@ import javax.servlet.http.HttpServletResponse;
@Singleton @Singleton
class LoginRedirectServlet extends HttpServlet { class LoginRedirectServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private final Provider<WebSession> webSession; private final Provider<WebSession> webSession;
private final Provider<String> urlProvider; private final Provider<String> urlProvider;

View File

@@ -29,6 +29,7 @@ import javax.servlet.http.HttpServletResponse;
@Singleton @Singleton
public class PrettifyServlet extends HttpServlet { public class PrettifyServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private static final String VERSION = "20090521"; private static final String VERSION = "20090521";
private final byte[] content; private final byte[] content;

View File

@@ -15,6 +15,8 @@
package com.google.gerrit.pgm; package com.google.gerrit.pgm;
public class Die extends RuntimeException { public class Die extends RuntimeException {
private static final long serialVersionUID = 1L;
public Die(final String why) { public Die(final String why) {
super(why); super(why);
} }

View File

@@ -33,6 +33,8 @@ package com.google.gerrit.server.query;
} }
@members { @members {
static class QueryParseInternalException extends RuntimeException { static class QueryParseInternalException extends RuntimeException {
private static final long serialVersionUID = 1L;
QueryParseInternalException(final String msg) { QueryParseInternalException(final String msg) {
super(msg); super(msg);
} }

View File

@@ -16,6 +16,8 @@ package com.google.gerrit.server.account;
/** An account processing error thrown by {@link AccountManager}. */ /** An account processing error thrown by {@link AccountManager}. */
public class AccountException extends Exception { public class AccountException extends Exception {
private static final long serialVersionUID = 1L;
public AccountException(final String message) { public AccountException(final String message) {
super(message); super(message);
} }

View File

@@ -18,6 +18,8 @@ import com.google.gerrit.reviewdb.AccountGroup;
/** Indicates the account group does not exist. */ /** Indicates the account group does not exist. */
public class NoSuchGroupException extends Exception { public class NoSuchGroupException extends Exception {
private static final long serialVersionUID = 1L;
public NoSuchGroupException(final AccountGroup.Id key) { public NoSuchGroupException(final AccountGroup.Id key) {
this(key, null); this(key, null);
} }

View File

@@ -15,6 +15,8 @@
package com.google.gerrit.server.mail; package com.google.gerrit.server.mail;
public class EmailException extends Exception { public class EmailException extends Exception {
private static final long serialVersionUID = 1L;
public EmailException(String msg) { public EmailException(String msg) {
super(msg); super(msg);
} }

View File

@@ -15,6 +15,7 @@
package com.google.gerrit.server.patch; package com.google.gerrit.server.patch;
public final class PatchSetInfoNotAvailableException extends Exception { public final class PatchSetInfoNotAvailableException extends Exception {
private static final long serialVersionUID = 1L;
public PatchSetInfoNotAvailableException(Exception cause) { public PatchSetInfoNotAvailableException(Exception cause) {
super(cause); super(cause);

View File

@@ -18,6 +18,8 @@ import com.google.gerrit.reviewdb.Change;
/** Indicates the change does not exist. */ /** Indicates the change does not exist. */
public class NoSuchChangeException extends Exception { public class NoSuchChangeException extends Exception {
private static final long serialVersionUID = 1L;
public NoSuchChangeException(final Change.Id key) { public NoSuchChangeException(final Change.Id key) {
this(key, null); this(key, null);
} }

View File

@@ -18,6 +18,8 @@ import com.google.gerrit.reviewdb.Project;
/** Indicates the project does not exist. */ /** Indicates the project does not exist. */
public class NoSuchProjectException extends Exception { public class NoSuchProjectException extends Exception {
private static final long serialVersionUID = 1L;
public NoSuchProjectException(final Project.NameKey key) { public NoSuchProjectException(final Project.NameKey key) {
this(key, null); this(key, null);
} }

View File

@@ -15,6 +15,8 @@
package com.google.gerrit.server.query; package com.google.gerrit.server.query;
public class QueryParseException extends Exception { public class QueryParseException extends Exception {
private static final long serialVersionUID = 1L;
public QueryParseException(final String message) { public QueryParseException(final String message) {
super(message); super(message);
} }