Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
plokhotnyuk committed Jan 12, 2025
1 parent 2941f75 commit 1e424e0
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions zio-json/shared/src/main/scala/zio/json/internal/lexer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package zio.json.internal

import zio.json.JsonDecoder.{JsonError, UnsafeJson, int}
import zio.json.JsonDecoder.{ JsonError, UnsafeJson, int }

import scala.annotation._

Expand Down Expand Up @@ -416,10 +416,9 @@ final class StringMatrix(val xs: Array[String], aliases: Array[(String, Int)] =

require(width <= 64)

val lengths: Array[Int] = Array.tabulate[Int](width) {
string =>
if (string < xs.length) xs(string).length
else aliases(string - xs.length)._1.length
val lengths: Array[Int] = Array.tabulate[Int](width) { string =>
if (string < xs.length) xs(string).length
else aliases(string - xs.length)._1.length
}
val height: Int = lengths.max
val initial: Long = -1L >>> (64 - width)
Expand All @@ -440,10 +439,9 @@ final class StringMatrix(val xs: Array[String], aliases: Array[(String, Int)] =
}
m
}
private val resolve: Array[Int] = Array.tabulate[Int](width) {
string =>
if (string < xs.length) string
else aliases(string - xs.length)._2
private val resolve: Array[Int] = Array.tabulate[Int](width) { string =>
if (string < xs.length) string
else aliases(string - xs.length)._2
}

// must be called with increasing `char` (starting with bitset obtained from a
Expand Down

0 comments on commit 1e424e0

Please sign in to comment.