=htp cache default RejectionHandler instance, it's safe to share (#20996)
This commit is contained in:
parent
20960d9fd5
commit
d3ea9e49db
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue