summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2011-12-05 13:20:35 +0100
committerEugene Burmako <xeno.by@gmail.com>2011-12-05 13:22:28 +0100
commit17e50bae3f6ba005d1c7c9edb9365312d521ec84 (patch)
treeb10a942c7eb781fd981d8905f435986189cdfee4 /src/compiler
parenta289465c70630719cbd3a74edf5502a156ef83c4 (diff)
downloadscala-17e50bae3f6ba005d1c7c9edb9365312d521ec84.tar.gz
scala-17e50bae3f6ba005d1c7c9edb9365312d521ec84.tar.bz2
scala-17e50bae3f6ba005d1c7c9edb9365312d521ec84.zip
A minor fix to -Yreify-copypaste.
Empty modifiers are now correctly printed out as "Modifiers()" instead of annoyingly verbose "Modifiers(Set(), newTermName(""), List())". No review.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/transform/LiftCode.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/LiftCode.scala b/src/compiler/scala/tools/nsc/transform/LiftCode.scala
index 68a53e57a1..f3f823d197 100644
--- a/src/compiler/scala/tools/nsc/transform/LiftCode.scala
+++ b/src/compiler/scala/tools/nsc/transform/LiftCode.scala
@@ -95,7 +95,7 @@ abstract class LiftCode extends Transform with TypingTransformers {
buf.append(", " + "List(" + annotations + ")")
var s = buf.toString
- if (s.endsWith(", Map()")) s = s.substring(0, s.length - ", Map()".length)
+ if (s.endsWith(", List()")) s = s.substring(0, s.length - ", List()".length)
if (s.endsWith(", newTypeName(\"\")")) s = s.substring(0, s.length - ", newTypeName(\"\")".length)
if (s.endsWith("Set()")) s = s.substring(0, s.length - "Set()".length)
"Modifiers(" + s + ")"