Skip to content

Commit da7e175

Browse files
committed
Add () to side-effecting u1/u2/u4.
On good advice of reviewer.
1 parent f657c37 commit da7e175

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ abstract class ClassfileParser {
5656
// They are an unsigned byte, unsigned char, and unsigned int respectively.
5757
// We bitmask u1 into an Int to make sure it's 0-255 (and u1 isn't used
5858
// for much beyond tags) but leave u2 alone as it's already unsigned.
59-
protected final def u1 = in.nextByte & 0xFF
60-
protected final def u2 = in.nextChar
61-
protected final def u4 = in.nextInt
59+
protected final def u1(): Int = in.nextByte & 0xFF
60+
protected final def u2(): Char = in.nextChar
61+
protected final def u4(): Int = in.nextInt
6262

6363
private def readInnerClassFlags() = readClassFlags()
6464
private def readClassFlags() = JavaAccFlags classFlags u2

0 commit comments

Comments
 (0)