Skip to content

Commit 469e2ab

Browse files
authored
Fix assertions for non-null values always passing (#151)
1 parent 41a2988 commit 469e2ab

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/net/swedz/tesseract/neoforge/api

1 file changed

+2
-2
lines changed

src/main/java/net/swedz/tesseract/neoforge/api/Assert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void notNull(Object object, String message, ThrowableSupplier thro
3434

3535
public static void notNull(Object object, String message)
3636
{
37-
notNull(object != null, message, NullPointerException::new);
37+
notNull(object, message, NullPointerException::new);
3838
}
3939

4040
public static void notNull(Object object, ThrowableSupplier throwable)
@@ -51,7 +51,7 @@ public static void noneNull(Object... objects)
5151
{
5252
for(Object object : objects)
5353
{
54-
that(object != null, null, NullPointerException::new);
54+
notNull(object, NullPointerException::new);
5555
}
5656
}
5757

0 commit comments

Comments
 (0)