This commit is contained in:
Max Medvedev
2015-07-06 11:58:21 +03:00
parent 8eaabb8c6f
commit 1491d083e1
2 changed files with 2 additions and 2 deletions
@@ -85,7 +85,7 @@ public abstract class RecursionGuard {
*
* @param since the id of a computation whose result is safe to cache whilst for more nested ones it's not.
*/
public abstract void prohibitResultCaching(Object since);
public abstract void prohibitResultCaching(@NotNull Object since);
public interface StackStamp {
@@ -156,7 +156,7 @@ public class RecursionManager {
}
@Override
public void prohibitResultCaching(Object since) {
public void prohibitResultCaching(@NotNull Object since) {
MyKey realKey = new MyKey(id, since, false);
final CalculationStack stack = ourStack.get();
stack.enableMemoization(realKey, stack.prohibitResultCaching(realKey));