From da7e175b424610c6b416ee3c9f17a5d7cad20c15 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 2 Apr 2013 13:41:48 -0700 Subject: Add () to side-effecting u1/u2/u4. On good advice of reviewer. --- src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala index f8f6d1827e..a8a47205dd 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala @@ -56,9 +56,9 @@ abstract class ClassfileParser { // They are an unsigned byte, unsigned char, and unsigned int respectively. // We bitmask u1 into an Int to make sure it's 0-255 (and u1 isn't used // for much beyond tags) but leave u2 alone as it's already unsigned. - protected final def u1 = in.nextByte & 0xFF - protected final def u2 = in.nextChar - protected final def u4 = in.nextInt + protected final def u1(): Int = in.nextByte & 0xFF + protected final def u2(): Char = in.nextChar + protected final def u4(): Int = in.nextInt private def readInnerClassFlags() = readClassFlags() private def readClassFlags() = JavaAccFlags classFlags u2 -- cgit v1.2.3