Skip to content

Commit 5ceffc1

Browse files
dougqhclaude
andcommitted
Move Latch out of this PR
Latch has no user here; it moves to the Jackson NoSuchFieldError fix (#12670), which is where it is used. ClassLatch's Javadoc no longer links to it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent f4b29e6 commit 5ceffc1

3 files changed

Lines changed: 2 additions & 174 deletions

File tree

‎internal-api/src/main/java/datadog/trace/util/ClassLatch.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
/**
66
* A per-class latch for an operation that, once it has failed for a class, will fail the same way
77
* for every instance of that class: an interface method the class does not implement, for example.
8-
* For a failure that is the same for everyone, use {@link Latch}.
8+
* A failure that is the same for everyone, whatever the class, needs only a single flag and no
9+
* per-class state.
910
*
1011
* <p>Intended as a {@code static final} anonymous subclass, one per call site and per operation: a
1112
* class lacking one method says nothing about another, so latches must not be shared. As a constant

‎internal-api/src/main/java/datadog/trace/util/Latch.java‎

Lines changed: 0 additions & 58 deletions
This file was deleted.

‎internal-api/src/test/java/datadog/trace/util/LatchTest.java‎

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)