Skip to content

Commit 6dd3eac

Browse files
authored
Remove the documentation about explicit exceptions thrown when TraceFlags are invalid. (#2945)
1 parent 0d467ab commit 6dd3eac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ static TraceFlags getSampled() {
4747
/**
4848
* Returns the {@link TraceFlags} converted from the given lowercase hex (base16) representation.
4949
*
50+
* <p>This may throw runtime exceptions if the input is invalid.
51+
*
5052
* @param src the buffer where the hex (base16) representation of the {@link TraceFlags} is.
5153
* @param srcOffset the offset int buffer.
5254
* @return the {@link TraceFlags} converted from the given lowercase hex (base16) representation.
53-
* @throws NullPointerException if {@code src} is null.
54-
* @throws IndexOutOfBoundsException if {@code src} is too short.
55-
* @throws IllegalArgumentException if invalid characters in the {@code src}.
5655
*/
5756
static TraceFlags fromHex(CharSequence src, int srcOffset) {
5857
return ImmutableTraceFlags.fromHex(src, srcOffset);

0 commit comments

Comments
 (0)