Skip to content

Commit

Permalink
use array list and add warning of modified but not used (stripe#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickjermsurawong-stripe authored Apr 25, 2019
1 parent 79de19e commit ac4d58e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/com/stripe/net/LiveStripeResponseGetterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -124,6 +123,7 @@ public void testCreateQueryWithListOfHashes() throws StripeException,
LiveStripeResponseGetter.createQuery(params));
}

@SuppressWarnings("ModifiedButNotUsed")
@Test
public void testCreateQueryWithCollection() throws UnsupportedEncodingException,
InvalidRequestException {
Expand All @@ -143,13 +143,13 @@ public void testCreateQueryWithCollection() throws UnsupportedEncodingException,
nestedLinkedHashSet.add("B");
nestedLinkedHashSet.add("C");

final List<String> linkedList = new LinkedList<>();
linkedList.add("A");
linkedList.add("B");
linkedList.add("C");
final List<String> nestedList = new ArrayList<>();
nestedList.add("A");
nestedList.add("B");
nestedList.add("C");

List<Collection<String>> collections = Arrays.asList(nestedTreeSet, nestedDequeue,
nestedLinkedHashSet);
nestedLinkedHashSet, nestedList);

for (Collection<String> collection : collections) {
final Map<String, Object> params = new LinkedHashMap<>();
Expand Down

0 comments on commit ac4d58e

Please sign in to comment.