diff options
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala b/compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala index 6df96a9a0..7ee6427f3 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/NameBuffer.scala @@ -30,7 +30,7 @@ class NameBuffer extends TastyBuffer(10000) { nameIndex(prefix); nameIndex(name) case AnyUniqueName(original, separator, num) => nameIndex(separator.toTermName) - if (original.nonEmpty) nameIndex(original) + if (!original.isEmpty) nameIndex(original) case DerivedTermName(original, _) => nameIndex(original) case _ => @@ -68,7 +68,7 @@ class NameBuffer extends TastyBuffer(10000) { withLength { writeNameRef(separator.toTermName) writeNat(num) - if (original.nonEmpty) writeNameRef(original) + if (!original.isEmpty) writeNameRef(original) } case DefaultGetterName(method, paramNumber) => withLength { writeNameRef(method); writeNat(paramNumber) } |