diff --git a/api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java b/api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java index 058f0ea304d..936a1a6e06c 100644 --- a/api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java +++ b/api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java @@ -47,12 +47,11 @@ static TraceFlags getSampled() { /** * Returns the {@link TraceFlags} converted from the given lowercase hex (base16) representation. * + *

This may throw runtime exceptions if the input is invalid. + * * @param src the buffer where the hex (base16) representation of the {@link TraceFlags} is. * @param srcOffset the offset int buffer. * @return the {@link TraceFlags} converted from the given lowercase hex (base16) representation. - * @throws NullPointerException if {@code src} is null. - * @throws IndexOutOfBoundsException if {@code src} is too short. - * @throws IllegalArgumentException if invalid characters in the {@code src}. */ static TraceFlags fromHex(CharSequence src, int srcOffset) { return ImmutableTraceFlags.fromHex(src, srcOffset);