Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 227e189

Browse files
committed
Dependency updates
1 parent 885f7d1 commit 227e189

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

‎pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.basepom</groupId>
77
<artifactId>basepom-oss</artifactId>
8-
<version>59</version>
8+
<version>61</version>
99
</parent>
1010

1111
<groupId>io.github.spannm</groupId>
@@ -46,8 +46,8 @@
4646

4747
<dep.javapoet.version>1.13.0</dep.javapoet.version>
4848
<dep.slf4j-api.version>2.1.0-alpha1</dep.slf4j-api.version>
49-
<dep.junit.version>5.10.2</dep.junit.version>
50-
<dep.assertj.version>3.26.0</dep.assertj.version>
49+
<dep.junit.version>5.10.4</dep.junit.version>
50+
<dep.assertj.version>3.27.3</dep.assertj.version>
5151

5252
<basepom.check.fail-dependency>false</basepom.check.fail-dependency>
5353
<basepom.check.skip-spotbugs>true</basepom.check.skip-spotbugs>

‎src/main/java/io/github/spannm/leetcode/lc0/lc0000/Problem0049.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
class Problem0049 extends LeetcodeProblem {
1111

12+
@SuppressWarnings("PMD.UseArraysAsList")
1213
List<List<String>> groupAnagrams(String[] _strs) {
1314
Map<List<String>, List<String>> grouped = new LinkedHashMap<>();
1415
for (String s : _strs) {

‎src/main/java/io/github/spannm/leetcode/lc0/lc0200/Problem0249.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
class Problem0249 extends LeetcodeProblem {
88

9+
@SuppressWarnings("PMD.UseArraysAsList")
910
List<List<String>> groupStrings(String[] _strings) {
1011

1112
List<List<String>> result = new ArrayList<>();

‎src/main/java/io/github/spannm/leetcode/lc0/lc0900/Problem0966.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@
22

33
import io.github.spannm.leetcode.LeetcodeProblem;
44

5-
import java.util.HashMap;
6-
import java.util.HashSet;
7-
import java.util.Map;
8-
import java.util.Set;
5+
import java.util.*;
96

107
class Problem0966 extends LeetcodeProblem {
118

129
String[] spellchecker(String[] _wordlist, String[] _queries) {
1310
Map<String, String> caseMap = new HashMap<>();
14-
Set<String> set = new HashSet<>();
11+
Set<String> set = new HashSet<>(Arrays.asList(_wordlist));
1512

1613
for (String word : _wordlist) {
1714
caseMap.putIfAbsent(word.toLowerCase(), word);
18-
set.add(word);
1915
}
2016

2117
Map<String, String> vowelMap = new HashMap<>();

‎src/main/java/io/github/spannm/leetcode/lc1/lc1200/Problem1258.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ private String formWord(String[] _words) {
4444
return sb.substring(0, sb.length() - 1);
4545
}
4646

47+
@SuppressWarnings("PMD.UseArraysAsList")
4748
private Map<String, Set<String>> buildSynonymDict(String[] _words, List<List<String>> _synonyms) {
4849
Map<String, Set<String>> map = new HashMap<>();
4950
for (String key : _words) {

‎src/main/java/io/github/spannm/leetcode/lc2/lc2400/Problem2451.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212
class Problem2451 extends LeetcodeProblem {
1313

14+
@SuppressWarnings("PMD.UseArraysAsList")
1415
String oddString(String[] words) {
1516
var d = new HashMap<String, List<String>>();
1617
for (var s : words) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /