Skip to content

Commit e4df1cf

Browse files
fixed checkstyle violation in NearestElementTest.java
1 parent 4dd4885 commit e4df1cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/com/thealgorithms/stacks/NearestElementTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ void testNearestSmallerToLeft() {
4848

4949
@Test
5050
void testPrivateConstructor() throws Exception {
51-
Constructor<NearestElement> constructor
52-
= NearestElement.class.getDeclaredConstructor();
51+
Constructor<NearestElement> constructor = NearestElement.class.getDeclaredConstructor();
5352
constructor.setAccessible(true);
5453
try {
5554
constructor.newInstance();
5655
} catch (Exception ignored) {
57-
// Expected exception: constructor throws UnsupportedOperationException
5856
}
5957
}
6058
}

0 commit comments

Comments
 (0)