[DecryptionService] Stop caching

This commit is contained in:
Maschell 2019-02-28 21:00:40 +01:00
parent 015e3fff18
commit cd58f8b580

View File

@ -50,16 +50,12 @@ import lombok.extern.java.Log;
@Log @Log
public final class DecryptionService { public final class DecryptionService {
private static Map<NUSTitle, DecryptionService> instances = new HashMap<>();
@Getter private final NUSTitle NUSTitle; @Getter private final NUSTitle NUSTitle;
private boolean parallelizable = false; private boolean parallelizable = false;
public static DecryptionService getInstance(NUSTitle nustitle) { public static DecryptionService getInstance(NUSTitle nustitle) {
if (!instances.containsKey(nustitle)) { return new DecryptionService(nustitle);
instances.put(nustitle, new DecryptionService(nustitle));
}
return instances.get(nustitle);
} }
private DecryptionService(NUSTitle nustitle) { private DecryptionService(NUSTitle nustitle) {