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. */
public class AutocommitFailedException extends TaskanaRuntimeException {
private static final long serialVersionUID = 1L;
public AutocommitFailedException(Throwable cause) {
super("Autocommit failed", cause);

View File

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

View File

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

View File

@ -5,8 +5,6 @@ package pro.taskana.common.api.exceptions;
*/
public class DomainNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
public DomainNotFoundException(String domain, String 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. */
public class InvalidArgumentException extends TaskanaException {
private static final long serialVersionUID = 1L;
public InvalidArgumentException(String 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. */
public class NotAuthorizedException extends TaskanaException {
private static final long serialVersionUID = 21235L;
private final 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. */
public class NotFoundException extends TaskanaException {
private static final long serialVersionUID = 1L;
private final String id;
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. */
public class SystemException extends TaskanaRuntimeException {
private static final long serialVersionUID = 1L;
public SystemException(String msg) {
super(msg);
}

View File

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

View File

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

View File

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

View File

@ -2,8 +2,6 @@ package pro.taskana.common.api.exceptions;
public class WrongCustomHolidayFormatException extends TaskanaException {
private static final long serialVersionUID = -7644923780787018797L;
public WrongCustomHolidayFormatException(String 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. */
public class ClassificationAlreadyExistException extends TaskanaException {
private static final long serialVersionUID = 4716611657569005013L;
public ClassificationAlreadyExistException(Classification classification) {
super(
"ID='"

View File

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

View File

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

View File

@ -9,8 +9,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
*/
public class AttachmentPersistenceException extends TaskanaException {
private static final long serialVersionUID = 123L;
public AttachmentPersistenceException(String msg, Throwable 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. */
public class InvalidOwnerException extends TaskanaException {
private static final long serialVersionUID = 1L;
public InvalidOwnerException(String 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. */
public class InvalidStateException extends TaskanaException {
private static final long serialVersionUID = 1L;
public InvalidStateException(String msg) {
super(msg);

View File

@ -8,8 +8,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
*/
public class TaskAlreadyExistException extends TaskanaException {
private static final long serialVersionUID = 1L;
public TaskAlreadyExistException(String 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. */
public class TaskCommentNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
public TaskCommentNotFoundException(String id, String 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. */
public class TaskNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
public TaskNotFoundException(String id, String 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. */
public class UpdateFailedException extends TaskanaException {
private static final long serialVersionUID = 1L;
public UpdateFailedException(String msg) {
super(msg);
}

View File

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

View File

@ -4,7 +4,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
import pro.taskana.workbasket.api.models.WorkbasketAccessItem;
public class WorkbasketAccessItemAlreadyExistException extends TaskanaException {
private static final long serialVersionUID = 4716611657569005013L;
public WorkbasketAccessItemAlreadyExistException(WorkbasketAccessItem accessItem) {
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. */
public class WorkbasketAlreadyExistException extends TaskanaException {
private static final long serialVersionUID = 6115013L;
public WorkbasketAlreadyExistException(Workbasket workbasket) {
super(
"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. */
public class WorkbasketInUseException extends TaskanaException {
private static final long serialVersionUID = 1234L;
public WorkbasketInUseException(String 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. */
public class WorkbasketNotFoundException extends NotFoundException {
private static final long serialVersionUID = 1L;
private String key;
private String domain;

View File

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