summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-04-02 13:41:48 -0700
committerPaul Phillips <paulp@improving.org>2013-04-03 01:30:58 -0700
commitda7e175b424610c6b416ee3c9f17a5d7cad20c15 (patch)
tree9d0043da9610e4664008b87fc0eef85d2299a202 /src
parentf657c375706773ca7b6d2f4f554e7414b35c67b0 (diff)
downloadscala-da7e175b424610c6b416ee3c9f17a5d7cad20c15.tar.gz
scala-da7e175b424610c6b416ee3c9f17a5d7cad20c15.tar.bz2
scala-da7e175b424610c6b416ee3c9f17a5d7cad20c15.zip
Add () to side-effecting u1/u2/u4.
On good advice of reviewer.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala6
1 files changed, 3 insertions, 3 deletions
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