MCPcopy Index your code
hub / github.com/processing/processing / trimRight

Method trimRight

java/src/processing/mode/java/AutoFormat.java:429–433  ·  view source on GitHub ↗

Takes all whitespace off the end of its argument.

(final StringBuilder sb)

Source from the content-addressed store, hash-verified

427 * Takes all whitespace off the end of its argument.
428 */
429 static private void trimRight(final StringBuilder sb) {
430 while (sb.length() >= 1 && Character.isWhitespace(sb.charAt(sb.length() - 1))) {
431 sb.setLength(sb.length() - 1);
432 }
433 }
434
435
436 /** Entry point */

Callers 2

writeIndentedLineMethod · 0.95
formatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected