Merge branch 'DevFactory-staging/serializable-classes-should-have-a-version-id-fix-3'

This commit is contained in:
Tony Tam 2015-12-30 19:58:43 -08:00
commit cafea6f726
5 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,8 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
public class Bootstrap extends HttpServlet { public class Bootstrap extends HttpServlet {
private static final long serialVersionUID = 1400930071893332856L;
@Override @Override
public void init(ServletConfig config) throws ServletException { public void init(ServletConfig config) throws ServletException {
ServletContext context = config.getServletContext(); ServletContext context = config.getServletContext();

View File

@ -17,6 +17,7 @@
package io.swagger.generator.exception; package io.swagger.generator.exception;
public class ApiException extends Exception { public class ApiException extends Exception {
private static final long serialVersionUID = -5085112752305370687L;
private int code; private int code;
public ApiException(int code, String msg) { public ApiException(int code, String msg) {

View File

@ -17,6 +17,7 @@
package io.swagger.generator.exception; package io.swagger.generator.exception;
public class BadRequestException extends ApiException { public class BadRequestException extends ApiException {
private static final long serialVersionUID = -5540416398447252055L;
private int code; private int code;
public BadRequestException(int code, String msg) { public BadRequestException(int code, String msg) {

View File

@ -17,6 +17,7 @@
package io.swagger.generator.exception; package io.swagger.generator.exception;
public class NotFoundException extends ApiException { public class NotFoundException extends ApiException {
private static final long serialVersionUID = -1223255119112336573L;
private int code; private int code;
public NotFoundException(int code, String msg) { public NotFoundException(int code, String msg) {

View File

@ -3,6 +3,7 @@ package io.swagger.generator.util;
import java.util.List; import java.util.List;
public class ValidationException extends Exception { public class ValidationException extends Exception {
private static final long serialVersionUID = 6861195361018260380L;
private int code; private int code;
private String msg; private String msg;
private List<ValidationMessage> errors; private List<ValidationMessage> errors;