mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-26 01:44:17 +01:00
[DecryptionService] Stop caching
This commit is contained in:
parent
015e3fff18
commit
cd58f8b580
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user