findbugs Long comparison == -> equals()

(cherry picked from commit f4db8df66f)

Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
Daan Hoogland 2014-01-31 09:07:55 +01:00
parent 6aa3fd8a81
commit 8c45ab0761
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;