diff options
author | Andrey Turbanov <turbanoff@gmail.com> | 2022-02-26 14:17:56 +0300 |
---|---|---|
committer | Andrey Turbanov <turbanoff@gmail.com> | 2022-02-26 14:17:56 +0300 |
commit | 2301b3677678e86673ebd0cbe7bb9740ebfba84a (patch) | |
tree | f5ce0e965cfd718811a8f4e4d54b622a566233ba /runtime | |
parent | 102e0617a4bbcf0bd232b4f64995161db8681099 (diff) | |
download | aspectj-2301b3677678e86673ebd0cbe7bb9740ebfba84a.tar.gz aspectj-2301b3677678e86673ebd0cbe7bb9740ebfba84a.zip |
Cleanup redundant type casts, due to too weak variable type declaration
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/src/main/java/org/aspectj/runtime/internal/cflowstack/ThreadCounterImpl11.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/src/main/java/org/aspectj/runtime/internal/cflowstack/ThreadCounterImpl11.java b/runtime/src/main/java/org/aspectj/runtime/internal/cflowstack/ThreadCounterImpl11.java index b040dfd19..6f6a51bd9 100644 --- a/runtime/src/main/java/org/aspectj/runtime/internal/cflowstack/ThreadCounterImpl11.java +++ b/runtime/src/main/java/org/aspectj/runtime/internal/cflowstack/ThreadCounterImpl11.java @@ -48,8 +48,7 @@ public class ThreadCounterImpl11 implements ThreadCounter { Thread t = (Thread)e.nextElement(); if (!t.isAlive()) dead_stacks.add(t); } - for (Object dead_stack : dead_stacks) { - Thread t = (Thread) dead_stack; + for (Thread t : dead_stacks) { counters.remove(t); } change_count = 0; |