From cd58f8b5800a5f40641c49f1d8fc3a0ba7859eab Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 28 Feb 2019 21:00:40 +0100 Subject: [PATCH] [DecryptionService] Stop caching --- src/de/mas/wiiu/jnus/DecryptionService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/de/mas/wiiu/jnus/DecryptionService.java b/src/de/mas/wiiu/jnus/DecryptionService.java index 0b31678..271b174 100644 --- a/src/de/mas/wiiu/jnus/DecryptionService.java +++ b/src/de/mas/wiiu/jnus/DecryptionService.java @@ -50,16 +50,12 @@ import lombok.extern.java.Log; @Log public final class DecryptionService { - private static Map instances = new HashMap<>(); @Getter private final NUSTitle NUSTitle; private boolean parallelizable = false; public static DecryptionService getInstance(NUSTitle nustitle) { - if (!instances.containsKey(nustitle)) { - instances.put(nustitle, new DecryptionService(nustitle)); - } - return instances.get(nustitle); + return new DecryptionService(nustitle); } private DecryptionService(NUSTitle nustitle) {