Skip to content

Commit 47a2701

Browse files
committed
cleanup
1 parent 17c2c82 commit 47a2701

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/src/main/java/datadog/instrument/utils/ClassLoaderKey.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ static void registerCleaner(Consumer<ClassLoaderKey> cleaner) {
4444

4545
/** Checks for stale class-loader keys; stale keys are cleaned by the registered cleaners. */
4646
static void cleanStaleKeys() {
47-
ClassLoaderKey ref;
48-
while ((ref = (ClassLoaderKey) staleKeys.poll()) != null) {
47+
ClassLoaderKey key;
48+
while ((key = (ClassLoaderKey) staleKeys.poll()) != null) {
4949
//noinspection ForLoopReplaceableByForEach - indexed loop performs better
5050
for (int i = 0, size = cleaners.size(); i < size; i++) {
51-
cleaners.get(i).accept(ref);
51+
cleaners.get(i).accept(key);
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)