mirror of https://github.com/apache/cloudstack.git
findbugs Long comparison == -> equals()
This commit is contained in:
parent
a4f2f0b39f
commit
f4db8df66f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue