4040import java .util .ArrayList ;
4141import java .util .Arrays ;
4242import java .util .Iterator ;
43- import java .util .LinkedHashSet ;
4443import java .util .List ;
4544import java .util .Set ;
4645import java .util .stream .Collectors ;
@@ -111,7 +110,7 @@ public void setupFixture() throws Exception {
111110 SplitToken splitResult = split .getTokens ().get (0 );
112111 this .splitJustification = SplitMintJustification .create (
113112 burnToken ,
114- new LinkedHashSet <>( splitResult .getProofs () )
113+ splitResult .getProofs ()
115114 );
116115
117116 this .splitToken = TokenUtils .mintToken (
@@ -218,7 +217,7 @@ public void verifyFailsWhenAggregationPathVerificationFails() throws Exception {
218217 );
219218
220219 SplitMintJustification mutated = SplitMintJustification .create (
221- this .splitJustification .getToken (), new LinkedHashSet <>( proofs ) );
220+ this .splitJustification .getToken (), proofs );
222221
223222 VerificationResult <VerificationStatus > result = verifyWith (mutated .toCbor (), originalDataBytes ());
224223 assertFailWithMessage (result ,
@@ -240,7 +239,7 @@ public void verifyFailsWhenAssetTreePathVerificationFails() throws Exception {
240239 proofs .set (0 , mutatedProof );
241240
242241 SplitMintJustification mutated = SplitMintJustification .create (
243- this .splitJustification .getToken (), new LinkedHashSet <>( proofs ) );
242+ this .splitJustification .getToken (), proofs );
244243
245244 VerificationResult <VerificationStatus > result = verifyWith (mutated .toCbor (), originalDataBytes ());
246245 assertFailWithMessage (result ,
@@ -267,7 +266,7 @@ public void verifyFailsWhenProofsUseDifferentAssetTrees() throws Exception {
267266 ));
268267
269268 SplitMintJustification mutated = SplitMintJustification .create (
270- this .splitJustification .getToken (), new LinkedHashSet <>( proofs ) );
269+ this .splitJustification .getToken (), proofs );
271270
272271 VerificationResult <VerificationStatus > result = verifyWith (mutated .toCbor (), originalDataBytes ());
273272 assertFailWithMessage (result , "Current proof is not derived from the same asset tree as other proofs." );
@@ -295,7 +294,7 @@ public void verifyFailsWhenAssetTreeRootDoesNotMatchAggregationLeaf() throws Exc
295294 proofs .set (0 , mutatedProof );
296295
297296 SplitMintJustification mutated = SplitMintJustification .create (
298- this .splitJustification .getToken (), new LinkedHashSet <>( proofs ) );
297+ this .splitJustification .getToken (), proofs );
299298
300299 VerificationResult <VerificationStatus > result = verifyWith (mutated .toCbor (), originalDataBytes ());
301300 assertFailWithMessage (result , "Asset tree root does not match aggregation path leaf." );
@@ -310,7 +309,7 @@ public void verifyFailsWhenProofAssetIdIsMissingFromAssetData() {
310309 .collect (Collectors .toSet ());
311310
312311 SplitMintJustification mutated = SplitMintJustification .create (
313- this .splitJustification .getToken (), new LinkedHashSet <>( proofs ) );
312+ this .splitJustification .getToken (), proofs );
314313 byte [] data = new TestPaymentData (assets ).encode ();
315314
316315 VerificationResult <VerificationStatus > result = verifyWith (mutated .toCbor (), data );
@@ -360,7 +359,7 @@ public void verifyFailsWhenAggregationRootDoesNotMatchBurnPredicate() throws Exc
360359 }
361360
362361 SplitMintJustification mutated = SplitMintJustification .create (
363- this .splitJustification .getToken (), new LinkedHashSet <>( mutatedProofs ) );
362+ this .splitJustification .getToken (), mutatedProofs );
364363
365364 VerificationResult <VerificationStatus > result = verifyWith (mutated .toCbor (), originalDataBytes ());
366365 assertFailWithMessage (result , "Aggregation path root does not match burn predicate." );
0 commit comments