We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 108db21 commit a167dceCopy full SHA for a167dce
compiler/src/dotty/tools/dotc/core/tasty/AttributeUnpickler.scala
@@ -14,11 +14,9 @@ class AttributeUnpickler(reader: TastyReader):
14
val attributesBuilder = List.newBuilder[String]
15
while (!isAtEnd) {
16
val length = readNat()
17
- if (length > 0) {
18
- val bytes = readBytes(length)
19
- val attribute = new String(bytes, StandardCharsets.UTF_8)
20
- attributesBuilder += attribute
21
- }
+ val bytes = readBytes(length)
+ val attribute = new String(bytes, StandardCharsets.UTF_8)
+ attributesBuilder += attribute
22
}
23
attributesBuilder.result()
24
0 commit comments