Skip to content

Commit becf283

Browse files
IdamkinISnipx
authored andcommitted
Added serialVersionUID field in Serializable objects of module kernel.
1 parent 88766f7 commit becf283

File tree

104 files changed

+369
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+369
-96
lines changed

kernel/src/main/java/com/itextpdf/kernel/events/EventDispatcher.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
*/
1313
public class EventDispatcher implements IEventDispatcher, Serializable {
1414

15+
private static final long serialVersionUID = -6701670578690210618L;
16+
17+
1518
protected Map<String, List<IEventHandler>> eventHandlers = new HashMap<>();
1619

1720
@Override

kernel/src/main/java/com/itextpdf/kernel/font/PdfFont.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323

2424
public abstract class PdfFont extends PdfObjectWrapper<PdfDictionary> {
2525

26-
protected static final byte[] emptyBytes = new byte[0];
26+
private static final long serialVersionUID = -7661159455613720321L;
27+
28+
protected static final byte[] emptyBytes = new byte[0];
2729

2830
Map<Integer, Glyph> notdefGlyphs = new HashMap<>();
2931

kernel/src/main/java/com/itextpdf/kernel/font/PdfSimpleFont.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
public abstract class PdfSimpleFont<T extends FontProgram> extends PdfFont {
2323

24-
protected T fontProgram;
24+
private static final long serialVersionUID = -4942318223894676176L;
25+
26+
protected T fontProgram;
2527

2628
protected FontEncoding fontEncoding;
2729

kernel/src/main/java/com/itextpdf/kernel/font/PdfTrueTypeFont.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
*/
2525
public class PdfTrueTypeFont extends PdfSimpleFont<TrueTypeFont> {
2626

27-
PdfTrueTypeFont(TrueTypeFont ttf, String encoding, boolean embedded) {
27+
private static final long serialVersionUID = -8152778382960290571L;
28+
29+
PdfTrueTypeFont(TrueTypeFont ttf, String encoding, boolean embedded) {
2830
super();
2931
setFontProgram(ttf);
3032
this.embedded = embedded;

kernel/src/main/java/com/itextpdf/kernel/font/PdfType0Font.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242

4343
public class PdfType0Font extends PdfSimpleFont<FontProgram> {
4444

45-
private static final byte[] rotbits = {(byte) 0x80, (byte) 0x40, (byte) 0x20, (byte) 0x10, (byte) 0x08, (byte) 0x04, (byte) 0x02, (byte) 0x01};
45+
private static final long serialVersionUID = -8033620300884193397L;
46+
47+
private static final byte[] rotbits = {(byte) 0x80, (byte) 0x40, (byte) 0x20, (byte) 0x10, (byte) 0x08, (byte) 0x04, (byte) 0x02, (byte) 0x01};
4648

4749
protected static final int CidFontType0 = 0;
4850
protected static final int CidFontType2 = 2;

kernel/src/main/java/com/itextpdf/kernel/font/PdfType1Font.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
public class PdfType1Font extends PdfSimpleFont<Type1Font> {
1313

14-
PdfType1Font(Type1Font type1Font, String encoding, boolean embedded) {
14+
private static final long serialVersionUID = 7009919945291639441L;
15+
16+
PdfType1Font(Type1Font type1Font, String encoding, boolean embedded) {
1517
super();
1618
setFontProgram(type1Font);
1719
this.embedded = embedded && !type1Font.isBuiltInFont();

kernel/src/main/java/com/itextpdf/kernel/font/PdfType3Font.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
*/
2626
public class PdfType3Font extends PdfSimpleFont<Type3FontProgram> {
2727

28-
private double[] fontMatrix = {0.001, 0, 0, 0.001, 0, 0};
28+
private static final long serialVersionUID = 4940119184993066859L;
29+
private double[] fontMatrix = {0.001, 0, 0, 0.001, 0, 0};
2930

3031
/**
3132
* Creates a Type3 font.

kernel/src/main/java/com/itextpdf/kernel/geom/PageSize.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package com.itextpdf.kernel.geom;
22

3+
import java.io.Serializable;
4+
35
public class PageSize extends Rectangle {
46

7+
private static final long serialVersionUID = 485375591249386160L;
8+
59
static public PageSize A0 = new PageSize(2384, 3370);
610
static public PageSize A1 = new PageSize(1684, 2384);
711
static public PageSize A2 = new PageSize(1190, 1684);

kernel/src/main/java/com/itextpdf/kernel/geom/Rectangle.java

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

77
public class Rectangle implements Cloneable, Serializable {
88

9+
private static final long serialVersionUID = 8025677415569233446L;
10+
911
protected float x;
1012
protected float y;
1113
protected float width;

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfArray.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
public class PdfArray extends PdfObject implements Collection<PdfObject> {
1717

18+
private static final long serialVersionUID = 1617495612878046869L;
19+
1820
private List<PdfObject> list;
1921

2022
/**

0 commit comments

Comments
 (0)