Skip to content

Commit

Permalink
add @nullable to AWSXray.setTraceEntity() as the delegate method in A…
Browse files Browse the repository at this point in the history
…WSXrayRecorder accepts nulls when clearing the TraceEntity state (aws#345)
  • Loading branch information
Kurru authored Aug 5, 2022
1 parent 5981f27 commit 5bab3e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public static void clearThreadLocal() {
* the trace entity so it can be restored correctly.
*/
@Deprecated
public static void setTraceEntity(Entity entity) {
public static void setTraceEntity(@Nullable Entity entity) {
globalRecorder.setTraceEntity(entity);
}

Expand Down

0 comments on commit 5bab3e5

Please sign in to comment.