From 41eb392390b2e656641eeec666db0e5c5d0979e8 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 9 Jun 2018 22:48:20 +0700 Subject: [PATCH] Make sure to parse large numbers --- source/net/filebot/License.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/filebot/License.java b/source/net/filebot/License.java index 88986f19..57995857 100644 --- a/source/net/filebot/License.java +++ b/source/net/filebot/License.java @@ -36,16 +36,16 @@ public class License implements Serializable { private byte[] bytes; - private int id; + private long id; private long expires; public License(byte[] bytes) throws Exception { this.bytes = bytes; - // verify and get clear sign content + // verify and get clear signed content Map properties = getProperties(); - this.id = Integer.parseInt(properties.get("Order")); + this.id = Long.parseLong(properties.get("Order")); this.expires = LocalDate.parse(properties.get("Valid-Until"), DateTimeFormatter.ISO_LOCAL_DATE).atStartOfDay(ZoneOffset.UTC).plusDays(1).minusSeconds(1).toInstant().toEpochMilli(); // verify license online