graveyard/tools/org/apache/axis/tools/common/Utils.java
/**
     * A better method than .equals() because it doesn't 
     * NullPointerException when one of the parameters is null.
     */
A better method than .equals() because it doesn't
NullPointerException when one of the parameters is null.
A better method than . equals () because it doesn ' t NullPointerException when one of the parameters is null .
public static boolean safeEquals(Object o1, Object o2) {
		if (null == o1 && null == o2)
			return true;
		if (null == o1 && null != o2)
			return false;
		if (null != o1 && null == o2)
			return false;
		return o1.equals(o2);
	}
public static boolean safeEquals ( Object o1 , Object o2 ) { if ( null == o1 && null == o2 ) return true ; if ( null == o1 && null != o2 ) return false ; if ( null != o1 && null == o2 ) return false ; return o1 . equals ( o2 ) ; }
A better method than .equals() because it doesn't
 NullPointerException when one of the parameters is null.
A better method than . equals () because it doesn ' t NullPointerException when one of the parameters is null .