Pre Merge pull request !8 from hunter524/fix_issue_I3HUPC
commit
b0ce48fd2f
|
@ -14,7 +14,10 @@ public class LicenseFileRecord implements EvalRecord {
|
||||||
|
|
||||||
public LicenseFileRecord(File file) {
|
public LicenseFileRecord(File file) {
|
||||||
this.file = file;
|
this.file = file;
|
||||||
|
if (file.length() == 0) {
|
||||||
|
expireDate = new Date(~System.currentTimeMillis());
|
||||||
|
return;
|
||||||
|
}
|
||||||
try (DataInputStream dis = new DataInputStream(new FileInputStream(file))) {
|
try (DataInputStream dis = new DataInputStream(new FileInputStream(file))) {
|
||||||
expireDate = DateTime.DF_DATETIME.format(new Date(~dis.readLong() + 2592000000L));
|
expireDate = DateTime.DF_DATETIME.format(new Date(~dis.readLong() + 2592000000L));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue