Add serialVersionUIDs

# Conflicts:
#	dex-reader/src/main/java/com/googlecode/d2j/reader/DexFileReader.java
This commit is contained in:
Nico Mexis 2021-08-11 19:39:37 +02:00 committed by Bob Pan
parent d66af7dc8e
commit 7fafa42fa6
9 changed files with 18 additions and 8 deletions

View File

@ -106,6 +106,8 @@ public abstract class BaseCmd {
@SuppressWarnings("serial")
protected static class HelpException extends RuntimeException {
private static final long serialVersionUID = 5538069795297477488L;
public HelpException() {
super();
}

View File

@ -5,7 +5,7 @@ public class TransformerException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = -5074963043184589213L;
public TransformerException() {
super();

View File

@ -150,7 +150,7 @@ public class AggTransformer extends StatedTransformer {
}
static class MergeResult extends Throwable {
private static final long serialVersionUID = -1563502983848655360L;
}
static class ReplaceX implements Cfg.TravelCallBack {

View File

@ -33,6 +33,7 @@ import com.googlecode.dex2jar.ir.stmt.Stmts;
*/
public class NpeTransformer extends StatedTransformer {
private static class MustThrowException extends RuntimeException {
private static final long serialVersionUID = 7501197864919305696L;
}
private static final MustThrowException NPE = new MustThrowException();

View File

@ -6,6 +6,9 @@ import java.util.LinkedList;
import java.util.Set;
public class UniqueQueue<T> extends LinkedList<T> {
private static final long serialVersionUID = 7578371020752763662L;
Set<T> set = new HashSet<>();
public UniqueQueue() {

View File

@ -25,7 +25,7 @@ public class DexException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 6294916997539922829L;
/**
*

View File

@ -1109,9 +1109,12 @@ public class DexFileReader implements BaseDexFileReader {
return class_defs_size;
}
static class BadOpException extends RuntimeException{
public BadOpException(String fmt,Object ...args){
super(String.format(fmt,args));
static class BadOpException extends RuntimeException {
private static final long serialVersionUID = 5354839427958139635L;
public BadOpException(String fmt, Object... args) {
super(String.format(fmt, args));
}
}

View File

@ -19,7 +19,8 @@ package com.googlecode.d2j.dex.writer;
import com.googlecode.d2j.reader.Op;
public class CantNotFixContentException extends RuntimeException {
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = -3939621228619424486L;
public CantNotFixContentException(Op op, String contentName, int v) {
super(String.format("content is not fit for op: %s, %s, value:0x%x",

View File

@ -18,7 +18,7 @@ package com.googlecode.d2j.dex.writer;
public class DexWriteException extends RuntimeException {
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 8501861997187282533L;
public DexWriteException() {
super();