From b81845e277e41438003e11c21527e2bfbaf372b8 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 12 Dec 2012 10:27:26 +0000 Subject: [PATCH] * make serializer friendly --- .../sourceforge/filebot/torrent/Torrent.java | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/source/net/sourceforge/filebot/torrent/Torrent.java b/source/net/sourceforge/filebot/torrent/Torrent.java index 2e64f442..702e3f90 100644 --- a/source/net/sourceforge/filebot/torrent/Torrent.java +++ b/source/net/sourceforge/filebot/torrent/Torrent.java @@ -17,17 +17,21 @@ import java.util.Map; public class Torrent { - private final String name; - private final String encoding; - private final String createdBy; - private final String announce; - private final String comment; - private final Long creationDate; - private final Long pieceLength; + private String name; + private String encoding; + private String createdBy; + private String announce; + private String comment; + private Long creationDate; + private Long pieceLength; - private final List files; + private List files; + private boolean singleFileTorrent; - private final boolean singleFileTorrent; + + protected Torrent() { + // used by serializer + } public Torrent(File torrent) throws IOException {