All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.squareup.protoparser.Utils Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package com.squareup.protoparser;

final class Utils {
  static void appendDocumentation(StringBuilder builder, String documentation) {
    if (documentation.isEmpty()) {
      return;
    }
    for (String line : documentation.split("\n")) {
      builder.append("// ").append(line).append('\n');
    }
  }

  static void appendIndented(StringBuilder builder, String value) {
    for (String line : value.split("\n")) {
      builder.append("  ").append(line).append('\n');
    }
  }

  private Utils() {
    throw new AssertionError("No instances.");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy