Skip to content

Commit 47c9b4f

Browse files
committed
Remove the TODO comment and replace it with original one
1 parent 6a534f2 commit 47c9b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/semanticdb/internal/SemanticdbInputStream.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ class SemanticdbInputStream private (buffer: Array[Byte], input: InputStream) {
464464
bytes = readRawBytesSlowPath(size);
465465
pos = 0;
466466
}
467-
// TODO: should validate Utf8
467+
// TODO(martinrb): We could save a pass by validating while decoding.
468468
// if (!Utf8.isValidUtf8(bytes, pos, pos + size)) {
469469
// throw InvalidProtocolBufferException.invalidUtf8();
470470
// }

0 commit comments

Comments
 (0)