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
class HttpLogoutServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private final Provider<WebSession> webSession;
private final Provider<String> urlProvider;
private final String logoutUrl;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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