Deprecate EvenMoreObjects 78/106578/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 21 Jun 2023 07:52:13 +0000 (09:52 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 21 Jun 2023 07:52:13 +0000 (09:52 +0200)
This class is not used anywhere, deprecate it for removal.

Change-Id: I211d0fbec1791316335f52e57d5e3ff120250e4d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/util/src/main/java/org/opendaylight/yangtools/util/EvenMoreObjects.java
common/util/src/test/java/org/opendaylight/yangtools/util/EvenMoreObjectsTest.java

index 1923c2b0445c4230a471f869f5c874661c0967e5..a9fbcac45f4a81ef4ccb5ca0fac1d8819734c109 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.yangtools.util;
 
-import com.google.common.annotations.Beta;
 import com.google.common.base.MoreObjects;
 import java.util.function.BiFunction;
 
@@ -29,7 +28,7 @@ import java.util.function.BiFunction;
  *
  * @author Michael Vorburger, Red Hat
  */
-@Beta
+@Deprecated(since = "11.0.0", forRemoval = true)
 public final class EvenMoreObjects {
 
     @SuppressWarnings("unchecked")
@@ -43,7 +42,7 @@ public final class EvenMoreObjects {
         if (self.getClass() != other.getClass()) {
             return false;
         }
-        return equals.apply(self, (T) other).booleanValue();
+        return equals.apply(self, (T) other);
     }
 
     @FunctionalInterface
index 022e784318dc8b00dbb0fd5390e9cde7cb3a34bd..3847907e027f6dc172916cd72e379edc80afee41 100644 (file)
@@ -14,6 +14,7 @@ import com.google.common.testing.EqualsTester;
 import java.util.Objects;
 import org.junit.Test;
 
+@Deprecated(since = "11.0.0", forRemoval = true)
 public class EvenMoreObjectsTest {
 
     @Test