style: include BED_BOGUS_EXCEPTION_DECLARATION
(#5233)
This commit is contained in:
parent
d36f54bd39
commit
cff3a59530
@ -114,9 +114,6 @@
|
|||||||
<Match>
|
<Match>
|
||||||
<Bug pattern="CLI_CONSTANT_LIST_INDEX" />
|
<Bug pattern="CLI_CONSTANT_LIST_INDEX" />
|
||||||
</Match>
|
</Match>
|
||||||
<Match>
|
|
||||||
<Bug pattern="BED_BOGUS_EXCEPTION_DECLARATION" />
|
|
||||||
</Match>
|
|
||||||
<Match>
|
<Match>
|
||||||
<Bug pattern="CNC_COLLECTION_NAMING_CONFUSION" />
|
<Bug pattern="CNC_COLLECTION_NAMING_CONFUSION" />
|
||||||
</Match>
|
</Match>
|
||||||
|
@ -8,7 +8,6 @@ package com.thealgorithms.stacks;
|
|||||||
// e.g.'
|
// e.g.'
|
||||||
// ((a + b) + (c + d)) -> false
|
// ((a + b) + (c + d)) -> false
|
||||||
// (a + b) + ((c + d)) -> true
|
// (a + b) + ((c + d)) -> true
|
||||||
import java.util.Scanner;
|
|
||||||
import java.util.Stack;
|
import java.util.Stack;
|
||||||
|
|
||||||
public final class DuplicateBrackets {
|
public final class DuplicateBrackets {
|
||||||
@ -36,11 +35,4 @@ public final class DuplicateBrackets {
|
|||||||
}
|
}
|
||||||
return false;
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user