=htp cache default RejectionHandler instance, it's safe to share (#20996)

This commit is contained in:
Konrad Malawski 2016-07-20 12:18:52 +02:00 committed by GitHub
parent 20960d9fd5
commit d3ea9e49db
2 changed files with 3 additions and 3 deletions

View file

@ -322,7 +322,7 @@ class ByteStringSpec extends WordSpec with Matchers with Checkers {
check { (a: ByteString) a.asByteBuffers.foldLeft(ByteString.empty) { (bs, bb) bs ++ ByteString(bb) } == a }
check { (a: ByteString) a.asByteBuffers.forall(_.isReadOnly) }
check { (a: ByteString)
import scala.collection.JavaConverters.iterableAsScalaIterableConverter;
import scala.collection.JavaConverters.iterableAsScalaIterableConverter
a.asByteBuffers.zip(a.getByteBuffers().asScala).forall(x x._1 == x._2)
}
}