去除sun的checkstyle的警告
各位高手,下面这段代码用sun的checkstyle校验会出现警告,应该如何去除?
/**
* rewrite equals.
*
* @param obj
* Object
* @return if equal return true else return false.
* @see
*/
public final synchronized boolean equals(final Object obj) {
if (obj == null) {
return false;
}
try {
return ((RangeType) obj.getUnid() == getUnid());
/*
if (((RangeType) obj).getUnid() == getUnid())
return true;
else
return false;
*/
} catch (ClassCastException e) {
return false;
}
}