diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-03-03 16:04:50 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-03-03 16:04:50 +0000 |
commit | 3d62db6fdd354e07deae1b762065cc76a4bd888c (patch) | |
tree | c93503993e7ebe280b9669126da5ee14e7ec0c21 /src | |
parent | 94339301cf181103c5eae5918f2410483f3ab8fd (diff) | |
download | scala-3d62db6fdd354e07deae1b762065cc76a4bd888c.tar.gz scala-3d62db6fdd354e07deae1b762065cc76a4bd888c.tar.bz2 scala-3d62db6fdd354e07deae1b762065cc76a4bd888c.zip |
returning "" is more efficient than new String()
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/xml/parsing/MarkupParser.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/xml/parsing/MarkupParser.scala b/src/library/scala/xml/parsing/MarkupParser.scala index 2c968fc240..bf7c42bbe3 100644 --- a/src/library/scala/xml/parsing/MarkupParser.scala +++ b/src/library/scala/xml/parsing/MarkupParser.scala @@ -706,7 +706,7 @@ trait MarkupParser extends AnyRef with TokenTests { self: MarkupParser with Mar n } else { reportSyntaxError("name expected") - new String() + "" } } |