MCPcopy
hub / github.com/google/guava / normalizeToken

Method normalizeToken

guava/src/com/google/common/net/MediaType.java:1085–1089  ·  view source on GitHub ↗
(String token)

Source from the content-addressed store, hash-verified

1083 }
1084
1085 private static String normalizeToken(String token) {
1086 checkArgument(TOKEN_MATCHER.matchesAllOf(token));
1087 checkArgument(!token.isEmpty());
1088 return Ascii.toLowerCase(token);
1089 }
1090
1091 private static String normalizeParameterValue(String attribute, String value) {
1092 checkNotNull(value); // for GWT

Callers 2

withParametersMethod · 0.95
createMethod · 0.95

Calls 4

toLowerCaseMethod · 0.95
isEmptyMethod · 0.65
checkArgumentMethod · 0.45
matchesAllOfMethod · 0.45

Tested by

no test coverage detected