Skip to content

Commit

Permalink
Objects of different types compared with equals method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Barger committed Feb 11, 2015
1 parent 251bac0 commit 8b759c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ private boolean shouldRegister(InstanceInfo myInfo) {
if (!clientConfig.shouldRegisterWithEureka()) {
return false;
} else if ((myInfo != null)
&& (myInfo.getDataCenterInfo()
&& (myInfo.getDataCenterInfo().getName()
.equals(DataCenterInfo.Name.Amazon))) {
return true;
}
Expand Down Expand Up @@ -1630,7 +1630,7 @@ public void run() {
// Pass in the appinfo again since
if ((discoveryServer != null)
&& (Name.Amazon.equals(discoveryServer
.getDataCenterInfo()))) {
.getDataCenterInfo().getName()))) {
String amiId = ((AmazonInfo) discoveryServer
.getDataCenterInfo()).get(MetaDataKey.amiId);
if (discoveryServerAMIId == null) {
Expand Down

0 comments on commit 8b759c5

Please sign in to comment.