From a3331ae21d94a02b3834f408df7eb6efd2767669 Mon Sep 17 00:00:00 2001 From: Vinicius Scheidegger Date: Mon, 25 May 2020 17:01:43 +0200 Subject: [PATCH] Remove reference to internal class in AdditionalAnswers javadoc (#1938) --- src/main/java/org/mockito/AdditionalAnswers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mockito/AdditionalAnswers.java b/src/main/java/org/mockito/AdditionalAnswers.java index 0281f32227..684e5461ac 100644 --- a/src/main/java/org/mockito/AdditionalAnswers.java +++ b/src/main/java/org/mockito/AdditionalAnswers.java @@ -308,7 +308,7 @@ public static Answer delegatesTo(Object delegate) { * when(mock.foo()).thenReturn(1, 2, 3); * * //is equivalent to: - * when(mock.foo()).thenAnswer(new ReturnsElementsOf(Arrays.asList(1, 2, 3))); + * when(mock.foo()).thenAnswer(AdditionalAnswers.returnsElementsOf(Arrays.asList(1, 2, 3))); * * * @param elements The collection of elements to return.