Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ratcashdev committed Feb 6, 2020
1 parent 24ca71f commit b3522e7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ public void testToArray()
cut.put(2, 12);
cut.put(3, 13);

Map.Entry<Integer, Integer>[] array = cut.entrySet().toArray();
for (Map.Entry<Integer, Integer> entry : array)
final Map.Entry<Integer, Integer>[] array = cut.entrySet().toArray();
for (final Map.Entry<Integer, Integer> entry : array)
{
cut.remove(entry.getKey());
}
Expand All @@ -683,8 +683,8 @@ public void testToArrayWithArrayListConstructor()
cut.put(2, 12);
cut.put(3, 13);

List<Map.Entry<Integer, Integer>> list = new ArrayList<>(cut.entrySet());
for (Map.Entry<Integer, Integer> entry : list)
final List<Map.Entry<Integer, Integer>> list = new ArrayList<>(cut.entrySet());
for (final Map.Entry<Integer, Integer> entry : list)
{
cut.remove(entry.getKey());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ public void testToArray()
cut.put(2, "b");
cut.put(3, "c");

Map.Entry<Integer, String>[] array = cut.entrySet().toArray();
for (Map.Entry<Integer, String> entry : array)
final Map.Entry<Integer, String>[] array = cut.entrySet().toArray();
for (final Map.Entry<Integer, String> entry : array)
{
cut.remove(entry.getKey());
}
Expand All @@ -451,8 +451,8 @@ public void testToArrayWithArrayListConstructor()
cut.put(2, "b");
cut.put(3, "c");

List<Map.Entry<Integer, String>> list = new ArrayList<>(cut.entrySet());
for (Map.Entry<Integer, String> entry : list)
final List<Map.Entry<Integer, String>> list = new ArrayList<>(cut.entrySet());
for (final Map.Entry<Integer, String> entry : list)
{
cut.remove(entry.getKey());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ public void testToArray()
cut.put("b", 2);
cut.put("c", 3);

Map.Entry<String, Integer>[] array = cut.entrySet().toArray();
for (Map.Entry<String, Integer> entry : array)
final Map.Entry<String, Integer>[] array = cut.entrySet().toArray();
for (final Map.Entry<String, Integer> entry : array)
{
cut.remove(entry.getKey());
}
Expand All @@ -465,8 +465,8 @@ public void testToArrayWithArrayListConstructor()
cut.put("b", 2);
cut.put("c", 3);

List<Map.Entry<String, Integer>> list = new ArrayList<>(cut.entrySet());
for (Map.Entry<String, Integer> entry : list)
final List<Map.Entry<String, Integer>> list = new ArrayList<>(cut.entrySet());
for (final Map.Entry<String, Integer> entry : list)
{
cut.remove(entry.getKey());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
*
* @author OmniBene, s.r.o.
*/
public class Object2ObjectHashMapTest {
public class Object2ObjectHashMapTest
{

@Test
public void testToArray()
Expand All @@ -26,8 +27,8 @@ public void testToArray()
cut.put("b", "valA");
cut.put("c", "valA");

Map.Entry<String, String>[] array = cut.entrySet().toArray();
for (Map.Entry<String, String> entry : array)
final Map.Entry<String, String>[] array = cut.entrySet().toArray();
for (final Map.Entry<String, String> entry : array)
{
cut.remove(entry.getKey());
}
Expand All @@ -42,8 +43,8 @@ public void testToArrayWithArrayListConstructor()
cut.put("b", "valA");
cut.put("c", "valA");

List<Entry<String, String>> list = new ArrayList<>(cut.entrySet());
for (Map.Entry<String, String> entry : list)
final List<Entry<String, String>> list = new ArrayList<>(cut.entrySet());
for (final Map.Entry<String, String> entry : list)
{
cut.remove(entry.getKey());
}
Expand Down

0 comments on commit b3522e7

Please sign in to comment.