Skip to content

Commit 16a0319

Browse files
committed
1 parent bcc8ff3 commit 16a0319

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

core/src/main/scala/org/json4s/Xml.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ object Xml {
171171
def toXml(name: String, json: JValue): NodeSeq = json match {
172172
case JObject(fields) => new XmlNode(name, fields flatMap { case (n, v) => toXml(n, v) })
173173
case JArray(xs) => xs flatMap { v => toXml(name, v) }
174-
case JSet(xs) => xs.flatMap { v => toXml(name, v) }(collection.breakOut)
174+
case JSet(xs) => xs.flatMap { v => toXml(name, v) }.toList
175175
case JLong(x) => new XmlElem(name, x.toString)
176176
case JInt(x) => new XmlElem(name, x.toString)
177177
case JDouble(x) => new XmlElem(name, x.toString)

scalap/src/main/scala/org/json4s/scalap/scalasig/ScalaSig.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object ScalaSigParser {
2727

2828
def mergedLongSignatureBytes(signatureParts: Seq[ElementValue]): Array[Byte] = signatureParts.flatMap {
2929
case ConstValueIndex(index) => bytesForIndex(index)
30-
}(collection.breakOut)
30+
}.toArray
3131

3232
def bytesForIndex(index: Int) = constantWrapped(index).asInstanceOf[StringBytesPair].bytes
3333

scalaz/src/main/scala/org/json4s/scalaz/Base.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import _root_.scalaz._
2121
import std.list._
2222
import std.option._
2323
import syntax.traverse._
24-
import scala.collection.breakOut
2524

2625
trait Base { this: Types =>
2726
implicit def boolJSON: JSON[Boolean] = new JSON[Boolean] {
@@ -118,6 +117,6 @@ trait Base { this: Types =>
118117
}
119118
}
120119
implicit def mapJSONW[A: JSONW]: JSONW[Map[String, A]] = new JSONW[Map[String, A]] {
121-
def write(values: Map[String, A]) = JObject(values.map { case (k, v) => JField(k, toJSON(v)) }(breakOut).toList)
120+
def write(values: Map[String, A]) = JObject(values.map { case (k, v) => JField(k, toJSON(v)) }.toList)
122121
}
123122
}

0 commit comments

Comments
 (0)