Remove helper methods asBytes from Trace/Span Id (#2726)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This commit is contained in:
Bogdan Drutu 2021-02-05 20:31:10 -08:00 committed by GitHub
parent eb7e212587
commit 51d176ffdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ public final class SpanId {
* @throws IndexOutOfBoundsException if {@code spanId} too short.
* @throws IllegalArgumentException if {@code spanId} contains non lowercase hex characters.
*/
public static byte[] asBytes(CharSequence spanId) {
static byte[] asBytes(CharSequence spanId) {
Objects.requireNonNull(spanId, "spanId");
return BigendianEncoding.bytesFromBase16(spanId, HEX_LENGTH);
}

View File

@ -73,7 +73,7 @@ public final class TraceId {
* @throws IndexOutOfBoundsException if {@code traceId} too short.
* @throws IllegalArgumentException if {@code traceId} contains non lowercase hex characters.
*/
public static byte[] asBytes(CharSequence traceId) {
static byte[] asBytes(CharSequence traceId) {
Objects.requireNonNull(traceId, "traceId");
return BigendianEncoding.bytesFromBase16(traceId, HEX_LENGTH);
}