Skip to content

Commit 9eb0f1d

Browse files
IdamkinISnipx
authored andcommitted
Added serialVersionUID field in Serializable objects of module io.
1 parent becf283 commit 9eb0f1d

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

io/src/main/java/com/itextpdf/io/source/ArrayRandomAccessSource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* A RandomAccessSource that is based on an underlying byte array
77
*/
88
class ArrayRandomAccessSource implements RandomAccessSource, Serializable {
9+
10+
private static final long serialVersionUID = 8497059230517630513L;
11+
912
private byte[] array;
1013

1114
public ArrayRandomAccessSource(byte[] array) {

io/src/main/java/com/itextpdf/io/source/ByteBuffer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ public class ByteBuffer implements Serializable{
66

77
private static final byte[] bytes = new byte[]{48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 97, 98, 99, 100, 101, 102};
88

9+
private static final long serialVersionUID = -4380712536267312975L;
10+
911
protected int count;
1012
private byte[] buffer;
1113

io/src/main/java/com/itextpdf/io/source/PdfTokenizer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
public class PdfTokenizer implements Closeable, Serializable {
1010

11+
private static final long serialVersionUID = -2949864233416670521L;
12+
1113
public enum TokenType {
1214
Number,
1315
String,

io/src/main/java/com/itextpdf/io/source/RandomAccessFileOrArray.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
public class RandomAccessFileOrArray implements DataInput, Serializable {
99

10+
private static final long serialVersionUID = -169314546265954851L;
11+
12+
1013
/**
1114
* When true the file access is not done through a memory mapped file. Use it if the file
1215
* is too big to be mapped in your address space.

0 commit comments

Comments
 (0)