findbugs Long comparison == -> equals()

This commit is contained in:
Daan Hoogland 2014-01-31 09:07:55 +01:00
parent a4f2f0b39f
commit f4db8df66f
1 changed files with 1 additions and 1 deletions

View File

@ -1801,7 +1801,7 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
}
// Don't allow to modify system template
if (id == Long.valueOf(1)) {
if (Long.valueOf(1).equals(id)) {
InvalidParameterValueException ex = new InvalidParameterValueException("Unable to update template/iso of specified id");
ex.addProxyObject(String.valueOf(id), "templateId");
throw ex;