Skip to content

Commit 831bb2c

Browse files
Corrected Javadoc for compute*SizeNoTag methods
PiperOrigin-RevId: 843394943
1 parent cd8423d commit 831bb2c

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

java/core/src/main/java/com/google/protobuf/CodedOutputStream.java

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -728,18 +728,12 @@ public static int computeSFixed32SizeNoTag(@SuppressWarnings("unused") final int
728728
return FIXED32_SIZE;
729729
}
730730

731-
/**
732-
* Compute the number of bytes that would be needed to encode an {@code int64} field, including
733-
* tag.
734-
*/
731+
/** Compute the number of bytes that would be needed to encode an {@code int64} field. */
735732
public static int computeInt64SizeNoTag(final long value) {
736733
return computeUInt64SizeNoTag(value);
737734
}
738735

739-
/**
740-
* Compute the number of bytes that would be needed to encode a {@code uint64} field, including
741-
* tag.
742-
*/
736+
/** Compute the number of bytes that would be needed to encode a {@code uint64} field. */
743737
public static int computeUInt64SizeNoTag(long value) {
744738
int clz = Long.numberOfLeadingZeros(value);
745739
// See computeUInt32SizeNoTag for explanation
@@ -761,18 +755,12 @@ public static int computeSFixed64SizeNoTag(@SuppressWarnings("unused") final lon
761755
return FIXED64_SIZE;
762756
}
763757

764-
/**
765-
* Compute the number of bytes that would be needed to encode a {@code float} field, including
766-
* tag.
767-
*/
758+
/** Compute the number of bytes that would be needed to encode a {@code float} field. */
768759
public static int computeFloatSizeNoTag(@SuppressWarnings("unused") final float unused) {
769760
return FIXED32_SIZE;
770761
}
771762

772-
/**
773-
* Compute the number of bytes that would be needed to encode a {@code double} field, including
774-
* tag.
775-
*/
763+
/** Compute the number of bytes that would be needed to encode a {@code double} field. */
776764
public static int computeDoubleSizeNoTag(@SuppressWarnings("unused") final double unused) {
777765
return FIXED64_SIZE;
778766
}

0 commit comments

Comments
 (0)