cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] 1m2c3t4 commented on a change in pull request #3143: Fix some LGTM alerts
Date Thu, 24 Jan 2019 09:00:01 GMT
1m2c3t4 commented on a change in pull request #3143: Fix some LGTM alerts
URL: https://github.com/apache/cloudstack/pull/3143#discussion_r250513108
 
 

 ##########
 File path: api/src/main/java/com/cloud/deploy/DeployDestination.java
 ##########
 @@ -78,6 +78,10 @@ public int hashCode() {
 
     @Override
     public boolean equals(Object obj) {
+        if (obj == null)
+            return false;
+        if (!(obj instanceof DeployDestination))
+            return false;
 
 Review comment:
   Fixed the formatting

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message