Skip to content

Commit 40001dd

Browse files
committed
Make new classes serializable
This is required for compatibility with pdfDebug
1 parent 48e124b commit 40001dd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

kernel/src/main/java/com/itextpdf/kernel/ProductInfo.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ This file is part of the iText (R) project.
4343
*/
4444
package com.itextpdf.kernel;
4545

46+
import java.io.Serializable;
47+
4648
/**
4749
* Describes an iText 7 add on. An add on should register itself to a PdfDocument object if it
4850
* wants to be included in the debugging information.
4951
*/
50-
public class ProductInfo {
52+
public class ProductInfo implements Serializable {
53+
private static final long serialVersionUID = 2410734474798313936L;
54+
5155
private String name;
5256
private int major;
5357
private int minor;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ This file is part of the iText (R) project.
4545

4646
import com.itextpdf.kernel.ProductInfo;
4747

48+
import java.io.Serializable;
4849
import java.util.Collection;
4950
import java.util.HashSet;
5051
import java.util.Set;
@@ -54,7 +55,8 @@ This file is part of the iText (R) project.
5455
* was involved in the creation of a certain PDF file. This information can then be used to log to the
5556
* logger or to the file.
5657
*/
57-
public class FingerPrint {
58+
public class FingerPrint implements Serializable {
59+
private static final long serialVersionUID = 1378019250639368423L;
5860

5961
private Set<ProductInfo> productInfoSet;
6062

0 commit comments

Comments
 (0)