Skip to content

Commit

Permalink
Added spotless apply and removed LinkedHashSets for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin952 committed Dec 5, 2023
1 parent 894965f commit 96fec86
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Crown Copyright
* Copyright 2020-2023 Crown Copyright
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,7 +25,6 @@

import java.io.IOException;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

Expand All @@ -49,7 +48,7 @@ public void shouldHandleNullInput() {
public void shouldHandleNullDelimiter() {
// Given
final StringJoin<String> function = new StringJoin<>(null);
final Set<String> input = new LinkedHashSet<>(Lists.newArrayList("a", "b", "c"));
final List<String> input = new Lists.newArrayList("a", "b", "c");

// When
final String result = function.apply(input);
Expand All @@ -62,7 +61,7 @@ public void shouldHandleNullDelimiter() {
public void shouldJoinIterableOfStrings() {
// Given
final StringJoin<String> function = new StringJoin<>();
final Set<String> input = new LinkedHashSet<>(Lists.newArrayList("a", "b", "c"));
final List<String> input = new Lists.newArrayList("a", "b", "c");

// When
final String result = function.apply(input);
Expand All @@ -88,7 +87,7 @@ public void shouldJoinIterableOfIntegers() {
public void shouldJoinIterableOfStringsWithDelimiter() {
// Given
final StringJoin<String> function = new StringJoin<>(",");
final Set<String> input = new LinkedHashSet<>(Lists.newArrayList("a", "b", "c"));
final List<String> input = new Lists.newArrayList("a", "b", "c");

// When
final String result = function.apply(input);
Expand Down

0 comments on commit 96fec86

Please sign in to comment.