Skip to content

Commit

Permalink
reduced number of function calls
Browse files Browse the repository at this point in the history
...as correctly pointed out in eclipse-archived#3169

relates to eclipse-archived#3169
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
  • Loading branch information
Simon Kaufmann committed Mar 22, 2017
1 parent 034ba55 commit b31fedb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,9 @@ public String toString() {
} else {
sb.append(", ");
}
Object value = prop.getValue();
sb.append(String.format("{key=%s; type=%s; value=%s}", prop.getKey(),
prop.getValue() != null ? prop.getValue().getClass().getSimpleName() : "?", prop.getValue()));
value != null ? value.getClass().getSimpleName() : "?", value));
}
sb.append("]");
return sb.toString();
Expand Down

0 comments on commit b31fedb

Please sign in to comment.