Here you can find the source of areEqual(Object o1, Object o2)
static boolean areEqual(Object o1, Object o2)
//package com.java2s; //License from project: Open Source License public class Main { static boolean areEqual(Object o1, Object o2) { return !(o1 == null || o2 == null || !o1.equals(o2)); }// w ww.j a va 2 s .c o m }