Skip to content
Permalink
Browse files

Remove methods scheduled for deletion in Guava 21.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=139609575
  • Loading branch information
cpovirk committed Nov 18, 2016
1 parent d773e9f commit f67ab864bde63fa6602b5688de0440957ffeaa2e
@@ -23,16 +23,6 @@ public void testEqual() throws Exception {
testCase.testEqual();
}

public void testFirstNonNull_throwsNullPointerException() throws Exception {
com.google.common.base.ObjectsTest testCase = new com.google.common.base.ObjectsTest();
testCase.testFirstNonNull_throwsNullPointerException();
}

public void testFirstNonNull_withNonNull() throws Exception {
com.google.common.base.ObjectsTest testCase = new com.google.common.base.ObjectsTest();
testCase.testFirstNonNull_withNonNull();
}

public void testHashCode() throws Exception {
com.google.common.base.ObjectsTest testCase = new com.google.common.base.ObjectsTest();
testCase.testHashCode();
@@ -20,7 +20,7 @@
import com.google.caliper.Param;

/**
* Some microbenchmarks for the {@link Objects.ToStringHelper} class.
* Some microbenchmarks for the {@link MoreObjects.ToStringHelper} class.
*
* @author Osvaldo Doederlein
*/
@@ -16,8 +16,6 @@

package com.google.common.base;

import static com.google.common.base.Objects.firstNonNull;

import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.testing.NullPointerTester;
@@ -61,24 +59,6 @@ public void testHashCode() throws Exception {
assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(2, 3, 1));
}

public void testFirstNonNull_withNonNull() throws Exception {
String s1 = "foo";
String s2 = firstNonNull(s1, "bar");
assertSame(s1, s2);

Long n1 = new Long(42);
Long n2 = firstNonNull(null, n1);
assertSame(n1, n2);
}

public void testFirstNonNull_throwsNullPointerException() throws Exception {
try {
firstNonNull(null, null);
fail("expected NullPointerException");
} catch (NullPointerException expected) {
}
}

@GwtIncompatible // NullPointerTester
public void testNullPointers() {
NullPointerTester tester = new NullPointerTester();

0 comments on commit f67ab86

Please sign in to comment.
You can’t perform that action at this time.