Skip to content

Commit

Permalink
Remove buggy JArray equals method (fixes lift#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joni Freeman committed Oct 24, 2011
1 parent 2dbccbb commit 28c0dea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/json/src/main/scala/net/liftweb/json/JsonAST.scala
Expand Up @@ -383,11 +383,6 @@ object JsonAST {
type Values = List[Any]
def values = arr.map(_.values)
override def apply(i: Int): JValue = arr(i)

override def equals(that: Any): Boolean = that match {
case a: JArray => Set(arr.toArray: _*) == Set(a.arr.toArray: _*)
case _ => false
}
}

/** Renders JSON.
Expand Down

0 comments on commit 28c0dea

Please sign in to comment.