This fixes errorprone error: [ReturnValueIgnored] Return value of
'toString' must be used.
Change-Id: I90d2725ae16725a053179322cfaab18cab7b8e68
public String toString() {
StringBuilder sb = new StringBuilder(getClass().getSimpleName())
.append('[');
- if (tip != null)
+ if (tip != null) {
sb.append(format());
- else
+ } else {
sb.append((Object) null);
+ }
sb.append(',').append(cost).append(']').append(' ')
- .append(super.toString()).toString();
+ .append(super.toString());
return sb.toString();
}
}