From 1fb164198474f214c16a1b57e5bd88517658a6ec Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 19 Oct 2020 23:58:28 +0300 Subject: Revert "serialVersionUID for all Serializable classes" This reverts commit af94a01336a8ec2c44a220548bb9ab409976b69d. --- src/main/java/com/juick/util/HttpBadRequestException.java | 5 ----- src/main/java/com/juick/util/HttpForbiddenException.java | 5 ----- src/main/java/com/juick/util/HttpNotFoundException.java | 5 ----- src/main/java/com/juick/util/PrettyTimeFormatter.java | 5 ----- src/main/java/com/juick/util/UsernameTakenException.java | 5 ----- 5 files changed, 25 deletions(-) (limited to 'src/main/java/com/juick/util') diff --git a/src/main/java/com/juick/util/HttpBadRequestException.java b/src/main/java/com/juick/util/HttpBadRequestException.java index 4b4faa4a..386b52df 100644 --- a/src/main/java/com/juick/util/HttpBadRequestException.java +++ b/src/main/java/com/juick/util/HttpBadRequestException.java @@ -25,11 +25,6 @@ import org.springframework.web.bind.annotation.ResponseStatus; */ @ResponseStatus(value = HttpStatus.BAD_REQUEST) public class HttpBadRequestException extends RuntimeException { - /** - * - */ - private static final long serialVersionUID = 2034547017639929277L; - public HttpBadRequestException() { super("the request was bad", null, false, false); } diff --git a/src/main/java/com/juick/util/HttpForbiddenException.java b/src/main/java/com/juick/util/HttpForbiddenException.java index 2684e1ab..e2211574 100644 --- a/src/main/java/com/juick/util/HttpForbiddenException.java +++ b/src/main/java/com/juick/util/HttpForbiddenException.java @@ -26,11 +26,6 @@ import org.springframework.web.bind.annotation.ResponseStatus; */ @ResponseStatus(value = HttpStatus.FORBIDDEN) public class HttpForbiddenException extends RuntimeException { - /** - * - */ - private static final long serialVersionUID = -8001596218646655068L; - public HttpForbiddenException() { super(StringUtils.EMPTY, null, false, false); } diff --git a/src/main/java/com/juick/util/HttpNotFoundException.java b/src/main/java/com/juick/util/HttpNotFoundException.java index 0e8ee9d9..f9d1ffbe 100644 --- a/src/main/java/com/juick/util/HttpNotFoundException.java +++ b/src/main/java/com/juick/util/HttpNotFoundException.java @@ -26,11 +26,6 @@ import org.springframework.web.bind.annotation.ResponseStatus; */ @ResponseStatus(value = HttpStatus.NOT_FOUND) public class HttpNotFoundException extends RuntimeException { - /** - * - */ - private static final long serialVersionUID = 6136243111317477522L; - public HttpNotFoundException() { super(StringUtils.EMPTY, null, false, false); } diff --git a/src/main/java/com/juick/util/PrettyTimeFormatter.java b/src/main/java/com/juick/util/PrettyTimeFormatter.java index 5c736413..34a230f5 100644 --- a/src/main/java/com/juick/util/PrettyTimeFormatter.java +++ b/src/main/java/com/juick/util/PrettyTimeFormatter.java @@ -33,11 +33,6 @@ public class PrettyTimeFormatter { // Cache PrettyTime per locale. LRU cache to prevent memory leak. private static final Map PRETTY_TIME_LOCALE_MAP = new LinkedHashMap<>(MAX_CACHE_SIZE + 1, 1.1F, true) { - /** - * - */ - private static final long serialVersionUID = 1828878791879310392L; - @Override protected boolean removeEldestEntry(Map.Entry eldest) { return size() > MAX_CACHE_SIZE; diff --git a/src/main/java/com/juick/util/UsernameTakenException.java b/src/main/java/com/juick/util/UsernameTakenException.java index 45eb4448..ee787e99 100644 --- a/src/main/java/com/juick/util/UsernameTakenException.java +++ b/src/main/java/com/juick/util/UsernameTakenException.java @@ -18,11 +18,6 @@ package com.juick.util; public class UsernameTakenException extends RuntimeException { - /** - * - */ - private static final long serialVersionUID = -5182991814500998221L; - public UsernameTakenException() { super("Username taken", null, false, false); } -- cgit v1.2.3