TSK-1442: Removed serialVersionUID class variable from all entities

This commit is contained in:
SAllhusen 2020-10-28 22:03:49 +01:00 committed by Mustapha Zorgati
parent fbc623bd31
commit 85573e9ce7
30 changed files with 0 additions and 51 deletions

View File

@ -2,7 +2,6 @@ package pro.taskana.common.api.exceptions;
/** Thrown in ConnectionManagementMode AUTOCOMMIT when an attempt to commit fails. */ /** Thrown in ConnectionManagementMode AUTOCOMMIT when an attempt to commit fails. */
public class AutocommitFailedException extends TaskanaRuntimeException { public class AutocommitFailedException extends TaskanaRuntimeException {
private static final long serialVersionUID = 1L;
public AutocommitFailedException(Throwable cause) { public AutocommitFailedException(Throwable cause) {
super("Autocommit failed", cause); super("Autocommit failed", cause);

View File

@ -6,8 +6,6 @@ package pro.taskana.common.api.exceptions;
*/ */
public class ConcurrencyException extends TaskanaException { public class ConcurrencyException extends TaskanaException {
private static final long serialVersionUID = 1L;
public ConcurrencyException(String msg) { public ConcurrencyException(String msg) {
super(msg); super(msg);
} }

View File

@ -6,8 +6,6 @@ package pro.taskana.common.api.exceptions;
*/ */
public class ConnectionNotSetException extends TaskanaRuntimeException { public class ConnectionNotSetException extends TaskanaRuntimeException {
private static final long serialVersionUID = 1L;
public ConnectionNotSetException() { public ConnectionNotSetException() {
super("Connection not set"); super("Connection not set");
} }

View File

@ -5,8 +5,6 @@ package pro.taskana.common.api.exceptions;
*/ */
public class DomainNotFoundException extends NotFoundException { public class DomainNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
public DomainNotFoundException(String domain, String msg) { public DomainNotFoundException(String domain, String msg) {
super(domain, msg); super(domain, msg);
} }

View File

@ -3,8 +3,6 @@ package pro.taskana.common.api.exceptions;
/** This exception is thrown when a method is called with invalid argument. */ /** This exception is thrown when a method is called with invalid argument. */
public class InvalidArgumentException extends TaskanaException { public class InvalidArgumentException extends TaskanaException {
private static final long serialVersionUID = 1L;
public InvalidArgumentException(String msg) { public InvalidArgumentException(String msg) {
super(msg); super(msg);
} }

View File

@ -3,7 +3,6 @@ package pro.taskana.common.api.exceptions;
/** This exception is used to communicate a not authorized user. */ /** This exception is used to communicate a not authorized user. */
public class NotAuthorizedException extends TaskanaException { public class NotAuthorizedException extends TaskanaException {
private static final long serialVersionUID = 21235L;
private final String currentUserId; private final String currentUserId;
public NotAuthorizedException(String msg, String currentUserId) { public NotAuthorizedException(String msg, String currentUserId) {

View File

@ -3,7 +3,6 @@ package pro.taskana.common.api.exceptions;
/** This exception will be thrown if a specific object is not in the database. */ /** This exception will be thrown if a specific object is not in the database. */
public class NotFoundException extends TaskanaException { public class NotFoundException extends TaskanaException {
private static final long serialVersionUID = 1L;
private final String id; private final String id;
public NotFoundException(String id, String message) { public NotFoundException(String id, String message) {

View File

@ -3,8 +3,6 @@ package pro.taskana.common.api.exceptions;
/** This exception is thrown when a generic taskana problem is encountered. */ /** This exception is thrown when a generic taskana problem is encountered. */
public class SystemException extends TaskanaRuntimeException { public class SystemException extends TaskanaRuntimeException {
private static final long serialVersionUID = 1L;
public SystemException(String msg) { public SystemException(String msg) {
super(msg); super(msg);
} }

View File

@ -3,8 +3,6 @@ package pro.taskana.common.api.exceptions;
/** common base class for Taskana's checked exceptions. */ /** common base class for Taskana's checked exceptions. */
public class TaskanaException extends Exception { public class TaskanaException extends Exception {
private static final long serialVersionUID = 123234345123412L;
public TaskanaException() { public TaskanaException() {
super(); super();
} }

View File

@ -3,8 +3,6 @@ package pro.taskana.common.api.exceptions;
/** Common base class for Taskana's runtime exceptions. */ /** Common base class for Taskana's runtime exceptions. */
public class TaskanaRuntimeException extends RuntimeException { public class TaskanaRuntimeException extends RuntimeException {
private static final long serialVersionUID = 1511142769801824L;
public TaskanaRuntimeException() { public TaskanaRuntimeException() {
super(); super();
} }

View File

@ -5,8 +5,6 @@ package pro.taskana.common.api.exceptions;
*/ */
public class UnsupportedDatabaseException extends RuntimeException { public class UnsupportedDatabaseException extends RuntimeException {
private static final long serialVersionUID = 1L;
public UnsupportedDatabaseException(String name) { public UnsupportedDatabaseException(String name) {
super("Database with '" + name + "' not found"); super("Database with '" + name + "' not found");
} }

View File

@ -2,8 +2,6 @@ package pro.taskana.common.api.exceptions;
public class WrongCustomHolidayFormatException extends TaskanaException { public class WrongCustomHolidayFormatException extends TaskanaException {
private static final long serialVersionUID = -7644923780787018797L;
public WrongCustomHolidayFormatException(String message) { public WrongCustomHolidayFormatException(String message) {
super(message); super(message);
} }

View File

@ -6,8 +6,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
/** Thrown, when a classification does already exits, but wanted to create with same ID+domain. */ /** Thrown, when a classification does already exits, but wanted to create with same ID+domain. */
public class ClassificationAlreadyExistException extends TaskanaException { public class ClassificationAlreadyExistException extends TaskanaException {
private static final long serialVersionUID = 4716611657569005013L;
public ClassificationAlreadyExistException(Classification classification) { public ClassificationAlreadyExistException(Classification classification) {
super( super(
"ID='" "ID='"

View File

@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
/** Thrown if a specific task is not in the database. */ /** Thrown if a specific task is not in the database. */
public class ClassificationInUseException extends TaskanaException { public class ClassificationInUseException extends TaskanaException {
private static final long serialVersionUID = 1L;
public ClassificationInUseException(String msg) { public ClassificationInUseException(String msg) {
super(msg); super(msg);
} }

View File

@ -5,7 +5,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
/** Thrown if a specific task is not in the database. */ /** Thrown if a specific task is not in the database. */
public class ClassificationNotFoundException extends NotFoundException { public class ClassificationNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
private String key; private String key;
private String domain; private String domain;

View File

@ -4,8 +4,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
public class TaskanaHistoryEventNotFoundException extends NotFoundException { public class TaskanaHistoryEventNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
public TaskanaHistoryEventNotFoundException(String id, String msg) { public TaskanaHistoryEventNotFoundException(String id, String msg) {
super(id, msg); super(id, msg);
} }

View File

@ -9,8 +9,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
*/ */
public class AttachmentPersistenceException extends TaskanaException { public class AttachmentPersistenceException extends TaskanaException {
private static final long serialVersionUID = 123L;
public AttachmentPersistenceException(String msg, Throwable cause) { public AttachmentPersistenceException(String msg, Throwable cause) {
super(msg, cause); super(msg, cause);
} }

View File

@ -4,7 +4,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
/** This exception is thrown when the task state doesn't allow the requested operation. */ /** This exception is thrown when the task state doesn't allow the requested operation. */
public class InvalidOwnerException extends TaskanaException { public class InvalidOwnerException extends TaskanaException {
private static final long serialVersionUID = 1L;
public InvalidOwnerException(String msg) { public InvalidOwnerException(String msg) {
super(msg); super(msg);

View File

@ -4,7 +4,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
/** This exception is thrown when the task state doesn't allow the requested operation. */ /** This exception is thrown when the task state doesn't allow the requested operation. */
public class InvalidStateException extends TaskanaException { public class InvalidStateException extends TaskanaException {
private static final long serialVersionUID = 1L;
public InvalidStateException(String msg) { public InvalidStateException(String msg) {
super(msg); super(msg);

View File

@ -8,8 +8,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
*/ */
public class TaskAlreadyExistException extends TaskanaException { public class TaskAlreadyExistException extends TaskanaException {
private static final long serialVersionUID = 1L;
public TaskAlreadyExistException(String id) { public TaskAlreadyExistException(String id) {
super(id); super(id);
} }

View File

@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
/** This exception will be thrown if a specific task comment is not in the database. */ /** This exception will be thrown if a specific task comment is not in the database. */
public class TaskCommentNotFoundException extends NotFoundException { public class TaskCommentNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
public TaskCommentNotFoundException(String id, String msg) { public TaskCommentNotFoundException(String id, String msg) {
super(id, msg); super(id, msg);
} }

View File

@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
/** This exception will be thrown if a specific task is not in the database. */ /** This exception will be thrown if a specific task is not in the database. */
public class TaskNotFoundException extends NotFoundException { public class TaskNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
public TaskNotFoundException(String id, String msg) { public TaskNotFoundException(String id, String msg) {
super(id, msg); super(id, msg);
} }

View File

@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
/** This exception will be thrown if a specific task is not in the database. */ /** This exception will be thrown if a specific task is not in the database. */
public class UpdateFailedException extends TaskanaException { public class UpdateFailedException extends TaskanaException {
private static final long serialVersionUID = 1L;
public UpdateFailedException(String msg) { public UpdateFailedException(String msg) {
super(msg); super(msg);
} }

View File

@ -8,8 +8,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
*/ */
public class InvalidWorkbasketException extends TaskanaException { public class InvalidWorkbasketException extends TaskanaException {
private static final long serialVersionUID = 1L;
public InvalidWorkbasketException(String msg) { public InvalidWorkbasketException(String msg) {
super(msg); super(msg);
} }

View File

@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.TaskanaRuntimeException;
/** This exception is used to communicate that a user is not authorized to query a Workbasket. */ /** This exception is used to communicate that a user is not authorized to query a Workbasket. */
public class NotAuthorizedToQueryWorkbasketException extends TaskanaRuntimeException { public class NotAuthorizedToQueryWorkbasketException extends TaskanaRuntimeException {
private static final long serialVersionUID = 1L;
public NotAuthorizedToQueryWorkbasketException(String msg) { public NotAuthorizedToQueryWorkbasketException(String msg) {
super(msg); super(msg);
} }

View File

@ -4,7 +4,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
import pro.taskana.workbasket.api.models.WorkbasketAccessItem; import pro.taskana.workbasket.api.models.WorkbasketAccessItem;
public class WorkbasketAccessItemAlreadyExistException extends TaskanaException { public class WorkbasketAccessItemAlreadyExistException extends TaskanaException {
private static final long serialVersionUID = 4716611657569005013L;
public WorkbasketAccessItemAlreadyExistException(WorkbasketAccessItem accessItem) { public WorkbasketAccessItemAlreadyExistException(WorkbasketAccessItem accessItem) {
super( super(

View File

@ -6,8 +6,6 @@ import pro.taskana.workbasket.api.models.Workbasket;
/** Thrown, when a workbasket does already exits, but wanted to create with same ID. */ /** Thrown, when a workbasket does already exits, but wanted to create with same ID. */
public class WorkbasketAlreadyExistException extends TaskanaException { public class WorkbasketAlreadyExistException extends TaskanaException {
private static final long serialVersionUID = 6115013L;
public WorkbasketAlreadyExistException(Workbasket workbasket) { public WorkbasketAlreadyExistException(Workbasket workbasket) {
super( super(
"ID='" "ID='"

View File

@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
/** Thrown if a specific Workbasket does have content and should be deleted. */ /** Thrown if a specific Workbasket does have content and should be deleted. */
public class WorkbasketInUseException extends TaskanaException { public class WorkbasketInUseException extends TaskanaException {
private static final long serialVersionUID = 1234L;
public WorkbasketInUseException(String msg) { public WorkbasketInUseException(String msg) {
super(msg); super(msg);
} }

View File

@ -5,7 +5,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
/** This exception will be thrown if a specific workbasket is not in the database. */ /** This exception will be thrown if a specific workbasket is not in the database. */
public class WorkbasketNotFoundException extends NotFoundException { public class WorkbasketNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
private String key; private String key;
private String domain; private String domain;

View File

@ -226,6 +226,5 @@ class AccessIdControllerIntTest {
} }
static class AccessIdListResource extends ArrayList<AccessIdRepresentationModel> { static class AccessIdListResource extends ArrayList<AccessIdRepresentationModel> {
private static final long serialVersionUID = 1L;
} }
} }