From 48935e745ea5612e1e4a583f8f630bdef8a906a3 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 23 Sep 2016 16:12:59 +0100 Subject: [PATCH] Clarify contract of context cache --- .../org/springframework/retry/policy/RetryContextCache.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/retry/policy/RetryContextCache.java b/src/main/java/org/springframework/retry/policy/RetryContextCache.java index 9689488..14b7f9e 100644 --- a/src/main/java/org/springframework/retry/policy/RetryContextCache.java +++ b/src/main/java/org/springframework/retry/policy/RetryContextCache.java @@ -19,8 +19,10 @@ package org.springframework.retry.policy; import org.springframework.retry.RetryContext; /** - * Simple map-like abstraction for stateful retry policies to use when storing - * and retrieving {@link RetryContext} instances. + * Simple map-like abstraction for stateful retry policies to use when storing and + * retrieving {@link RetryContext} instances. A null key should never be passed in by the + * caller, but if it is then implementations are free to discard the context instead of + * saving it (null key means "no information"). * * @author Dave Syer *