Skip to content

Commit

Permalink
Merge pull request circe#78 from travisbrown/topic/rearrangement
Browse files Browse the repository at this point in the history
Don't define charBuilder where it's unneeded
  • Loading branch information
non authored Jun 14, 2017
2 parents 6af0bc7 + 97fb0f2 commit eab61bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions parser/src/main/scala/jawn/CharBasedParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import scala.annotation.{switch, tailrec}
*/
private[jawn] trait CharBasedParser[J] extends Parser[J] {

private[this] final val charBuilder = new CharBuilder()

/**
* See if the string has any escape sequences. If not, return the
* end of the string. If so, bail out and return -1.
Expand Down
2 changes: 0 additions & 2 deletions parser/src/main/scala/jawn/Parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ abstract class Parser[J] {

protected[this] final val utf8 = Charset.forName("UTF-8")

protected[this] final val charBuilder = new CharBuilder()

/**
* Read the byte/char at 'i' as a Char.
*
Expand Down

0 comments on commit eab61bd

Please sign in to comment.