use StandardCharsets (#934)
This commit is contained in:
parent
2ae6c8d00c
commit
6883d15576
5 changed files with 12 additions and 12 deletions
|
|
@ -15,7 +15,7 @@ package org.apache.pekko.remote.artery
|
|||
|
||||
import java.nio.ByteBuffer
|
||||
import java.nio.ByteOrder
|
||||
import java.nio.charset.Charset
|
||||
import java.nio.charset.StandardCharsets
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
import org.openjdk.jmh.annotations._
|
||||
|
|
@ -30,7 +30,7 @@ import org.apache.pekko.util.Unsafe
|
|||
@Measurement(iterations = 10)
|
||||
class LiteralEncodingBenchmark {
|
||||
|
||||
private val UsAscii = Charset.forName("US-ASCII")
|
||||
private val UsAscii = StandardCharsets.US_ASCII
|
||||
private val str = "pekko://SomeSystem@host12:1234/user/foo"
|
||||
private val buffer = ByteBuffer.allocate(128).order(ByteOrder.LITTLE_ENDIAN)
|
||||
private val literalChars = Array.ofDim[Char](64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue