Skip to content

Commit ddfdeb9

Browse files
authored
Addressing Review comments (#18711)
1 parent 8a31780 commit ddfdeb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

static-analysis-modules/jspecify-nullsafety/src/test/java/com/baeldung/jspecify/JspecifyNullSafetyTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.baeldung.jspecify;
22

3+
import static org.junit.Assert.assertNull;
34
import static org.junit.jupiter.api.Assertions.assertEquals;
45
import static org.junit.jupiter.api.Assertions.assertThrows;
56
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -41,7 +42,7 @@ void givenNullArgument_whenValidate_thenThrowsNullPointerException() {
4142
@Test
4243
void givenUnknownUserId_whenFindNicknameOrNull_thenReturnsNull() {
4344
String nickname = findNicknameOrNull("unknownUser");
44-
assertTrue(nickname == null);
45+
assertNull(nickname);
4546
}
4647

4748
@Test

0 commit comments

Comments
 (0)