summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2008-02-13 08:38:13 +0000
committerBurak Emir <emir@epfl.ch>2008-02-13 08:38:13 +0000
commit9481a6f1811e430651988ac595e302e2bd23eab0 (patch)
tree84a60a8b889af61093483f711fdcbb5890f97b2a /src
parent433db019ec8b99cf9809a25205a2c29232fce906 (diff)
downloadscala-9481a6f1811e430651988ac595e302e2bd23eab0.tar.gz
scala-9481a6f1811e430651988ac595e302e2bd23eab0.tar.bz2
scala-9481a6f1811e430651988ac595e302e2bd23eab0.zip
fixed PrefixedAttr inconsistency and scaladoc
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/xml/PrefixedAttribute.scala4
-rw-r--r--src/library/scala/xml/UnprefixedAttribute.scala2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/xml/PrefixedAttribute.scala b/src/library/scala/xml/PrefixedAttribute.scala
index 0ee62b9cd7..5b98e2ff36 100644
--- a/src/library/scala/xml/PrefixedAttribute.scala
+++ b/src/library/scala/xml/PrefixedAttribute.scala
@@ -26,9 +26,9 @@ class PrefixedAttribute(val pre: String,
if(value eq null)
throw new UnsupportedOperationException("value is null")
- /** same as this(key, Utility.parseAttributeValue(value), next) */
+ /** same as this(key, Text(value), next) */
def this(pre: String, key: String, value: String, next: MetaData) =
- this(pre, key, Utility.parseAttributeValue(value), next)
+ this(pre, key, Text(value), next)
/*
// the problem here is the fact that we cannot remove the proper attribute from
diff --git a/src/library/scala/xml/UnprefixedAttribute.scala b/src/library/scala/xml/UnprefixedAttribute.scala
index 611eba2ac6..be0f82129f 100644
--- a/src/library/scala/xml/UnprefixedAttribute.scala
+++ b/src/library/scala/xml/UnprefixedAttribute.scala
@@ -23,7 +23,7 @@ class UnprefixedAttribute(val key: String, val value: Seq[Node], next1: MetaData
def this(key: String, value: String, next: MetaData) =
this(key, if (value ne null) Text(value) else {val z:NodeSeq=null;z}, next)
- /** same as this(key, Text(value), next) */
+ /** same as this(key, Text(value.get), next), or no attribute if value is None */
def this(key: String, value: Option[Seq[Node]], next: MetaData) =
this(key, if (!value.isEmpty) value.get else {val z:NodeSeq=null;z}, next)