From 57171254c18cce6c0b16baaeee89ca5efa1f0e59 Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Tue, 5 Nov 2024 23:53:56 +1100 Subject: [PATCH] Refactor Co-authored-by: Tim te Beek --- .../openrewrite/java/testing/jmockit/JMockitBlockRewriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/java/testing/jmockit/JMockitBlockRewriter.java b/src/main/java/org/openrewrite/java/testing/jmockit/JMockitBlockRewriter.java index 9b0db27ec..bab058e90 100644 --- a/src/main/java/org/openrewrite/java/testing/jmockit/JMockitBlockRewriter.java +++ b/src/main/java/org/openrewrite/java/testing/jmockit/JMockitBlockRewriter.java @@ -267,7 +267,7 @@ private void rewriteFullVerify(List mocks) { } } - private void rewriteInOrderVerify(ArrayList mocks) { + private void rewriteInOrderVerify(List mocks) { if (!mocks.isEmpty()) { StringBuilder sb = new StringBuilder(VERIFY_IN_ORDER_TEMPLATE_PREFIX); mocks.forEach(mock -> sb.append(ANY_TEMPLATE_FIELD).append(", ")); // InOrder inOrder = inOrder(mock1, mock2 ...