We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17c2c82 commit 47a2701Copy full SHA for 47a2701
utils/src/main/java/datadog/instrument/utils/ClassLoaderKey.java
@@ -44,11 +44,11 @@ static void registerCleaner(Consumer<ClassLoaderKey> cleaner) {
44
45
/** Checks for stale class-loader keys; stale keys are cleaned by the registered cleaners. */
46
static void cleanStaleKeys() {
47
- ClassLoaderKey ref;
48
- while ((ref = (ClassLoaderKey) staleKeys.poll()) != null) {
+ ClassLoaderKey key;
+ while ((key = (ClassLoaderKey) staleKeys.poll()) != null) {
49
//noinspection ForLoopReplaceableByForEach - indexed loop performs better
50
for (int i = 0, size = cleaners.size(); i < size; i++) {
51
- cleaners.get(i).accept(ref);
+ cleaners.get(i).accept(key);
52
}
53
54
0 commit comments