From 6781ae52a41188e82a0354d4725a7c2718830e45 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Thu, 4 Jun 2015 13:34:56 +1000 Subject: Don't convert to/from arrays/lists unnecessarily while running tests --- src/main/java/au/id/zancanaro/javacheck/ShrinkResult.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/au/id/zancanaro/javacheck/ShrinkResult.java') diff --git a/src/main/java/au/id/zancanaro/javacheck/ShrinkResult.java b/src/main/java/au/id/zancanaro/javacheck/ShrinkResult.java index 8776f4e..a28c2a5 100644 --- a/src/main/java/au/id/zancanaro/javacheck/ShrinkResult.java +++ b/src/main/java/au/id/zancanaro/javacheck/ShrinkResult.java @@ -1,13 +1,14 @@ package au.id.zancanaro.javacheck; import java.util.Arrays; +import java.util.List; public class ShrinkResult { - public final Object[] args; + public final List args; public final Throwable thrown; - public ShrinkResult(Object[] args, Throwable thrown) { - this.args = Arrays.copyOf(args, args.length); + public ShrinkResult(List args, Throwable thrown) { + this.args = args; this.thrown = thrown; } } -- cgit v1.2.3