summaryrefslogtreecommitdiff
path: root/sources/scala/xml/Node.scala
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scala/xml/Node.scala')
-rw-r--r--sources/scala/xml/Node.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/xml/Node.scala b/sources/scala/xml/Node.scala
index 0ae73a7618..13d29613ce 100644
--- a/sources/scala/xml/Node.scala
+++ b/sources/scala/xml/Node.scala
@@ -13,7 +13,7 @@ abstract class Node {
/** returns a mapping from all present attributes to values */
def attributes: Map[String,String];
- protected val attribHashCode: int;
+ protected val attribHashCode = attributes.toList.hashCode();
/** hashcode for this node*/
override def hashCode() = Utility.hashCode( label, attribHashCode, children );