Changeset 16164 in josm for trunk


Ignore:
Timestamp:
2020-03-17T20:55:51+01:00 (5 years ago)
Author:
simon04
Message:

see #18948 - Fix Java warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolutionUtilTest.java

    r16161 r16164  
    3636    public JOSMTestRules test = new JOSMTestRules();
    3737
    38     @SafeVarargs
    39     private static <T> HashSet<T> newHashSet(T... values) {
     38    private static HashSet<String> newHashSet(String... values) {
    4039        return Arrays.stream(values).collect(Collectors.toCollection(HashSet::new));
    4140    }
     
    387386            assertEquals(group1.key, choiceKey1Group1.key);
    388387            assertEquals(group1.group, choiceKey1Group1.group);
    389             assertEquals(new HashSet<>(group1.choices), newHashSet(choiceKey1Group1, choiceKey1Group1bis));
     388            assertEquals(new HashSet<>(group1.choices), new HashSet<>(Arrays.asList(choiceKey1Group1, choiceKey1Group1bis)));
    390389
    391390            groups = AutomaticChoiceGroup.groupChoices(Arrays.asList(
Note: See TracChangeset for help on using the changeset viewer.