aboutsummaryrefslogtreecommitdiff
path: root/java/core/src/main/java/com/google/protobuf/NioByteString.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/core/src/main/java/com/google/protobuf/NioByteString.java')
-rw-r--r--java/core/src/main/java/com/google/protobuf/NioByteString.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/java/core/src/main/java/com/google/protobuf/NioByteString.java b/java/core/src/main/java/com/google/protobuf/NioByteString.java
index 76594809..64de6b1b 100644
--- a/java/core/src/main/java/com/google/protobuf/NioByteString.java
+++ b/java/core/src/main/java/com/google/protobuf/NioByteString.java
@@ -44,9 +44,7 @@ import java.nio.charset.Charset;
import java.util.Collections;
import java.util.List;
-/**
- * A {@link ByteString} that wraps around a {@link ByteBuffer}.
- */
+/** A {@link ByteString} that wraps around a {@link ByteBuffer}. */
final class NioByteString extends ByteString.LeafByteString {
private final ByteBuffer buffer;
@@ -60,16 +58,12 @@ final class NioByteString extends ByteString.LeafByteString {
// =================================================================
// Serializable
- /**
- * Magic method that lets us override serialization behavior.
- */
+ /** Magic method that lets us override serialization behavior. */
private Object writeReplace() {
return ByteString.copyFrom(buffer.slice());
}
- /**
- * Magic method that lets us override deserialization behavior.
- */
+ /** Magic method that lets us override deserialization behavior. */
private void readObject(@SuppressWarnings("unused") ObjectInputStream in) throws IOException {
throw new InvalidObjectException("NioByteString instances are not to be serialized directly");
}