X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2FdbObjects%2FDomain.java;h=7e35225f4d99d409cee53e9aec64544c8563df9a;hb=e04e99de1af984634675056004cd031c0b526505;hp=00f51c1fe87df68cf050dd3020c49bbc7e245f9f;hpb=11afda1a7ca6a6e84b61b72fb2d1a6d3bb0e9051;p=gigi.git diff --git a/src/org/cacert/gigi/dbObjects/Domain.java b/src/org/cacert/gigi/dbObjects/Domain.java index 00f51c1f..7e35225f 100644 --- a/src/org/cacert/gigi/dbObjects/Domain.java +++ b/src/org/cacert/gigi/dbObjects/Domain.java @@ -69,6 +69,7 @@ public class Domain implements IdCachable, Verifyable { private int id; private static final Set IDNEnabledTLDs; + static { Properties CPS = new Properties(); try (InputStream resourceAsStream = Domain.class.getResourceAsStream("CPS.properties")) { @@ -261,7 +262,7 @@ public class Domain implements IdCachable, Verifyable { } - private static ObjectCache myCache = new ObjectCache<>(); + private static final ObjectCache myCache = new ObjectCache<>(); public static synchronized Domain getById(int id) throws IllegalArgumentException { Domain em = myCache.get(id);