Here you can find the source of areEqual(Object obj, Object obj2)
public static boolean areEqual(Object obj, Object obj2)
//package com.java2s; public class Main { public static boolean areEqual(Object obj, Object obj2) { if (obj == null) { return obj2 == null; } else {/* w w w. j a v a 2 s . com*/ return obj.equals(obj2); } } }