style: include BED_BOGUS_EXCEPTION_DECLARATION (#5233)

This commit is contained in:
Piotr Idzik 2024-06-25 08:51:24 +02:00 committed by GitHub
parent d36f54bd39
commit cff3a59530
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 11 deletions

View File

@ -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>

View File

@ -8,7 +8,6 @@ package com.thealgorithms.stacks;
// e.g.'
// ((a + b) + (c + d)) -> false
// (a + b) + ((c + d)) -> true
import java.util.Scanner;
import java.util.Stack;
public final class DuplicateBrackets {
@ -36,11 +35,4 @@ public final class DuplicateBrackets {
}
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();
}
}