Skip to content

Commit 294b932

Browse files
committed
style: include BED_BOGUS_EXCEPTION_DECLARATION
1 parent a710fe1 commit 294b932

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
@@ -120,9 +120,6 @@
120120
<Match>
121121
<Bug pattern="CLI_CONSTANT_LIST_INDEX" />
122122
</Match>
123-
<Match>
124-
<Bug pattern="BED_BOGUS_EXCEPTION_DECLARATION" />
125-
</Match>
126123
<Match>
127124
<Bug pattern="CNC_COLLECTION_NAMING_CONFUSION" />
128125
</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)