A sample usage of @ReplacedBy.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2709 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -25,6 +25,8 @@ import java.io.PrintStream;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import com.samskivert.annotation.*;
|
||||
|
||||
/**
|
||||
* Utility methods that don't fit anywhere else.
|
||||
*/
|
||||
@@ -33,6 +35,7 @@ public class ObjectUtil
|
||||
/**
|
||||
* Test two objects for equality safely.
|
||||
*/
|
||||
@ReplacedBy("com.google.common.base.Objects#equal(Object,Object)")
|
||||
public static boolean equals (Object o1, Object o2)
|
||||
{
|
||||
return (o1 == o2) || ((o1 != null) && o1.equals(o2));
|
||||
|
||||
Reference in New Issue
Block a user