Skip to content

Instantly share code, notes, and snippets.

@maximveksler
Created November 14, 2012 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximveksler/4071723 to your computer and use it in GitHub Desktop.
Save maximveksler/4071723 to your computer and use it in GitHub Desktop.
public AbstractStringBuilder append(boolean b) {
if (b) {
ensureCapacityInternal(count + 4);
value[count++] = 't';
value[count++] = 'r';
value[count++] = 'u';
value[count++] = 'e';
} else {
ensureCapacityInternal(count + 5);
value[count++] = 'f';
value[count++] = 'a';
value[count++] = 'l';
value[count++] = 's';
value[count++] = 'e';
}
return this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment