diff options
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/text/Utf8.java')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/text/Utf8.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/text/Utf8.java b/vespajlib/src/main/java/com/yahoo/text/Utf8.java index 91bbb86d3fc..b2b6fa13b70 100644 --- a/vespajlib/src/main/java/com/yahoo/text/Utf8.java +++ b/vespajlib/src/main/java/com/yahoo/text/Utf8.java @@ -111,7 +111,7 @@ public final class Utf8 { * @return Utf8 encoded array */ public static byte[] toBytes(String string) { - // This is just wrapper for String::getBytes. Pre-Java 9 this had an more efficient approach for ASCII-only strings. + // This is just wrapper for String::getBytes. Pre-Java 9 this had a more efficient approach for ASCII-only strings. return string.getBytes(StandardCharsets.UTF_8); } /** @@ -121,7 +121,7 @@ public final class Utf8 { * @return Utf8 encoded array */ public static String toString(byte [] utf8) { - // This is just wrapper for String::new. Pre-Java 9 this had an more efficient approach for ASCII-onlu strings. + // This is just wrapper for String::new. Pre-Java 9 this had a more efficient approach for ASCII-onlu strings. return new String(utf8, StandardCharsets.UTF_8); } |