Skip to content

Commit f4db8df

Browse files
committed
findbugs Long comparison == -> equals()
1 parent a4f2f0b commit f4db8df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/template/TemplateManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ private VMTemplateVO updateTemplateOrIso(BaseUpdateTemplateOrIsoCmd cmd) {
18011801
}
18021802

18031803
// Don't allow to modify system template
1804-
if (id == Long.valueOf(1)) {
1804+
if (Long.valueOf(1).equals(id)) {
18051805
InvalidParameterValueException ex = new InvalidParameterValueException("Unable to update template/iso of specified id");
18061806
ex.addProxyObject(String.valueOf(id), "templateId");
18071807
throw ex;

0 commit comments

Comments
 (0)