Fix computeIf condition!!!!
This commit is contained in:
parent
7b7d6b36a8
commit
63fd9d77af
|
@ -65,7 +65,7 @@ public class Cache {
|
||||||
Element element = null;
|
Element element = null;
|
||||||
try {
|
try {
|
||||||
element = cache.get(key);
|
element = cache.get(key);
|
||||||
if (condition.test(element)) {
|
if (!condition.test(element)) {
|
||||||
return getElementValue(element);
|
return getElementValue(element);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue