Skip to content

Commit

Permalink
style: include BED_BOGUS_EXCEPTION_DECLARATION (TheAlgorithms#5233)
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Jun 25, 2024
1 parent d36f54b commit cff3a59
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions spotbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@
<Match>
<Bug pattern="CLI_CONSTANT_LIST_INDEX" />
</Match>
<Match>
<Bug pattern="BED_BOGUS_EXCEPTION_DECLARATION" />
</Match>
<Match>
<Bug pattern="CNC_COLLECTION_NAMING_CONFUSION" />
</Match>
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/com/thealgorithms/stacks/DuplicateBrackets.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// e.g.'
// ((a + b) + (c + d)) -> false
// (a + b) + ((c + d)) -> true
import java.util.Scanner;
import java.util.Stack;

public final class DuplicateBrackets {
Expand Down Expand Up @@ -36,11 +35,4 @@ public static boolean check(String str) {
}
return false;
}

public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
System.out.println(check(str));
sc.close();
}
}

0 comments on commit cff3a59

Please sign in to comment.