Skip to content

Commit

Permalink
Update scalafmt-core to 3.7.17 (scalapb#276)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.7.17

* Reformat with scalafmt 3.7.17

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.7.17' to .git-blame-ignore-revs
  • Loading branch information
scala-steward authored Nov 19, 2023
1 parent 12c4cd3 commit e9e9874
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Scala Steward: Reformat with scalafmt 3.5.8
ead57e14d463ef8e3175e933cf820220af653464

# Scala Steward: Reformat with scalafmt 3.7.17
0823f223e84d4329888f54a20d4b58da1dbec4dd
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "3.7.14"
version = "3.7.17"
runner.dialect="scala213source3"
14 changes: 7 additions & 7 deletions shared/src/main/scala/com/google/protobuf/CodedInputStream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ class CodedInputStream private (buffer: Array[Byte], input: InputStream) {
* not yet available, and that the requested space is less than BUFFER_SIZE.
*
* @return
* { @code true} if the bytes could be made available; { @code false} if
* the end of the stream or the current limit was reached.
* {@code true} if the bytes could be made available; {@code false} if the
* end of the stream or the current limit was reached.
*/
private def tryRefillBuffer(n: Int): Boolean = {
if (bufferPos + n <= bufferSize) {
Expand Down Expand Up @@ -185,7 +185,7 @@ class CodedInputStream private (buffer: Array[Byte], input: InputStream) {

/** Returns true if the stream has reached the end of the input. This is the
* case if either the end of the underlying input source has been reached or
* if the stream has reached a limit created using {@link #pushLimit(int)}.
* if the stream has reached a limit created using {@link #pushLimit(int)} .
*/
def isAtEnd: Boolean = {
bufferPos == bufferSize && !tryRefillBuffer(1)
Expand All @@ -195,7 +195,7 @@ class CodedInputStream private (buffer: Array[Byte], input: InputStream) {
totalBytesRetired + bufferPos
}

/** Sets {@code currentLimit} to (current position) + {@code byteLimit}. This
/** Sets {@code currentLimit} to (current position) + {@code byteLimit} . This
* is called when descending into a length-delimited embedded message.
*
* <p>Note that {@code pushLimit()} does NOT affect how many bytes the {@code
Expand Down Expand Up @@ -226,7 +226,7 @@ class CodedInputStream private (buffer: Array[Byte], input: InputStream) {
/** Discards the current limit, returning to the previous limit.
*
* @param oldLimit
* The old limit, as returned by { @code pushLimit}.
* The old limit, as returned by {@code pushLimit} .
*/
def popLimit(oldLimit: Int): Unit = {
currentLimit = oldLimit
Expand All @@ -236,8 +236,8 @@ class CodedInputStream private (buffer: Array[Byte], input: InputStream) {
/** Reads and discards a single field, given its tag value.
*
* @return
* { @code false} if the tag is an endgroup tag, in which case nothing is
* skipped. Otherwise, returns { @code true}.
* {@code false} if the tag is an endgroup tag, in which case nothing is
* skipped. Otherwise, returns {@code true} .
*/
@throws(classOf[IOException])
def skipField(tag: Int): Boolean = {
Expand Down

0 comments on commit e9e9874

Please sign in to comment.