TSK-1442: Removed serialVersionUID class variable from all entities
This commit is contained in:
parent
fbc623bd31
commit
85573e9ce7
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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='"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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='"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -226,6 +226,5 @@ class AccessIdControllerIntTest {
|
|||
}
|
||||
|
||||
static class AccessIdListResource extends ArrayList<AccessIdRepresentationModel> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue