From 2301b3677678e86673ebd0cbe7bb9740ebfba84a Mon Sep 17 00:00:00 2001 From: Andrey Turbanov Date: Sat, 26 Feb 2022 14:17:56 +0300 Subject: Cleanup redundant type casts, due to too weak variable type declaration --- .../org/aspectj/runtime/internal/cflowstack/ThreadCounterImpl11.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime') 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; -- cgit v1.2.3