mirror of https://github.com/apache/cloudstack.git
findbugs Long comparison == -> equals()
(cherry picked from commit f4db8df66f)
Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
parent
6aa3fd8a81
commit
8c45ab0761
|
|
@ -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