去除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;
}
}
/**
* 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;
}
}
...全文
相关推荐
checkstyle_eclipse5.3插件 及最sun_check.rar
checkstyle_eclipse 支持eclipse3.5 有一份eclipse的格式化模板
CheckStyle配置详解
代码质量检查工具,elipse中可安装插件checkstyle
IDEA CheckStyle离线安装包
IDEA checkstyle插件离线安装包,该插件可以通过配置文件来检测你的代码是否符合规范
eclipse集成checkStyle
由于在eclipse里安装checkstyle 输入链接经常报错,所以整了一个离线包,内含checkstyle的检查方式,也可以自己编辑
idea 插件 CheckStyle
CheckStyle


Java SE
