Skip to content

Commit 2e2927b

Browse files
committed
style: include BED_BOGUS_EXCEPTION_DECLARATION
1 parent d36f54b commit 2e2927b

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

spotbugs-exclude.xml

-3
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@
114114
<Match>
115115
<Bug pattern="CLI_CONSTANT_LIST_INDEX" />
116116
</Match>
117-
<Match>
118-
<Bug pattern="BED_BOGUS_EXCEPTION_DECLARATION" />
119-
</Match>
120117
<Match>
121118
<Bug pattern="CNC_COLLECTION_NAMING_CONFUSION" />
122119
</Match>

src/main/java/com/thealgorithms/stacks/DuplicateBrackets.java

-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// e.g.'
99
// ((a + b) + (c + d)) -> false
1010
// (a + b) + ((c + d)) -> true
11-
import java.util.Scanner;
1211
import java.util.Stack;
1312

1413
public final class DuplicateBrackets {
@@ -36,11 +35,4 @@ public static boolean check(String str) {
3635
}
3736
return false;
3837
}
39-
40-
public static void main(String[] args) throws Exception {
41-
Scanner sc = new Scanner(System.in);
42-
String str = sc.nextLine();
43-
System.out.println(check(str));
44-
sc.close();
45-
}
4638
}

0 commit comments

Comments
 (0)