From 08a6d4b74555db6d01048fc7065eb1e2bfaf33bc Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Wed, 24 Feb 2021 15:52:50 +0000 Subject: Revert "Upgrade external/junit to 4.13.2" Revert submission 1601635 Reason for revert: b/181123058 Reverted Changes: I8f5cd1266:Remove support for stuck threads Ifdb59336d:Remove DisableOnDebug (new in 4.12) as it is not s... I6abae5aed:Extra generic type information to aid certain java... I5ec909df6:Upgrade external/junit to 4.13.2 Change-Id: Idaddfc2039816a8d7b12c91fdd540b801ab854ff --- src/main/java/org/junit/internal/Checks.java | 37 ---------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/main/java/org/junit/internal/Checks.java (limited to 'src/main/java/org/junit/internal/Checks.java') diff --git a/src/main/java/org/junit/internal/Checks.java b/src/main/java/org/junit/internal/Checks.java deleted file mode 100644 index 9724947..0000000 --- a/src/main/java/org/junit/internal/Checks.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.junit.internal; - -/** @since 4.13 */ -public final class Checks { - - private Checks() {} - - /** - * Checks that the given value is not {@code null}. - * - * @param value object reference to check - * @return the passed-in value, if not {@code null} - * @throws NullPointerException if {@code value} is {@code null} - */ - public static T notNull(T value) { - if (value == null) { - throw new NullPointerException(); - } - return value; - } - - /** - * Checks that the given value is not {@code null}, using the given message - * as the exception message if an exception is thrown. - * - * @param value object reference to check - * @param message message to use if {@code value} is {@code null} - * @return the passed-in value, if not {@code null} - * @throws NullPointerException if {@code value} is {@code null} - */ - public static T notNull(T value, String message) { - if (value == null) { - throw new NullPointerException(message); - } - return value; - } -} -- cgit v1.2.3