codacy: Classes implementing Serializable should set a serialVersionUID

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2019-07-04 11:46:16 +02:00
parent a5297a5365
commit 31da2fc46d
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
4 changed files with 7 additions and 0 deletions

View file

@ -21,6 +21,8 @@
package com.nextcloud.client.di;
class InjectorNotFoundException extends RuntimeException {
private static final long serialVersionUID = 2026042918255104421L;
InjectorNotFoundException(Object object, Throwable cause) {
super(
String.format(

View file

@ -30,6 +30,8 @@ import java.util.Vector;
* @author Bartosz Przybylski
*/
public class UniqueStorageList extends Vector<StoragePoint> {
private static final long serialVersionUID = -6504937852826767050L;
@Override
public boolean add(StoragePoint sp) {
try {

View file

@ -4,6 +4,8 @@ package com.owncloud.android.operations;
* RuntimeException for throwing errors of remote operation calls.
*/
public class RemoteOperationFailedException extends RuntimeException {
private static final long serialVersionUID = 5429778514835938713L;
/**
* Constructs a new runtime exception with the specified detail message and
* cause.

View file

@ -317,6 +317,7 @@ public class StorageMigration {
static private class FileMigrationTask extends FileMigrationTaskBase {
private class MigrationException extends Exception {
private static final long serialVersionUID = -4575848188034992066L;
private int mResId;
MigrationException(int resId) {