Parameterize references to generic types. (#5078)

* chore: remove unused imports

* fix: parameterize references to generic types


---------

Co-authored-by: vil02 <65706193+vil02@users.noreply.github.com>
This commit is contained in:
SOZEL
2024-03-16 01:03:27 +07:00
committed by GitHub
parent ab371843ac
commit 192427a5d2
7 changed files with 9 additions and 10 deletions

View File

@ -75,7 +75,7 @@ public class ThreeSumProblem {
public List<List<Integer>> Hashmap(int[] nums, int target) {
Arrays.sort(nums);
Set<List<Integer>> ts = new HashSet();
Set<List<Integer>> ts = new HashSet<>();
HashMap<Integer, Integer> hm = new HashMap<>();
for (int i = 0; i < nums.length; i++) {
@ -94,6 +94,6 @@ public class ThreeSumProblem {
}
}
}
return new ArrayList(ts);
return new ArrayList<>(ts);
}
}