MCPcopy Create free account
hub / github.com/antlr/codebuff / toString

Method toString

output/java_guava/1.4.16/MediaType.java:1047–1056  ·  view source on GitHub ↗

Returns the string representation of this media type in the format described in RFC 2045 .

()

Source from the content-addressed store, hash-verified

1045
1046
1047 @Override
1048 public String toString() {
1049 // racy single-check idiom, safe because String is immutable
1050 String result = toString;
1051 if (result == null) {
1052 result = computeToString();
1053 toString = result;
1054 }
1055 return result;
1056 }
1057
1058 private String computeToString() {
1059 StringBuilder builder = new StringBuilder().append(type).append('/').append(subtype);

Callers

nothing calls this directly

Calls 1

computeToStringMethod · 0.95

Tested by

no test coverage detected