Skip to content

Commit

Permalink
[JBIDE-16041] make sure we're always displaying default (null) host c…
Browse files Browse the repository at this point in the history
…orrectly
  • Loading branch information
adietish committed Nov 20, 2013
1 parent 0da53a7 commit c70b5b1
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,14 @@ private SecurePasswordStore getSecureStore(final String platform, final String u
}

public String getId() {
return new StringBuilder(username)
.append(" (").append(host).append(')').toString();
StringBuilder builder = new StringBuilder(username);
builder
.append(" at ")
.append(getHost());
if (isDefaultHost()) {
builder.append(" (default)");
}
return builder.toString();
}

@Override
Expand Down

0 comments on commit c70b5b1

Please sign in to comment.