mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8343286: Missing unchecked cast warning in polymorphic method call
Reviewed-by: mcimadamore
This commit is contained in:
parent
b80ca4902a
commit
cc2acd14b1
10 changed files with 40 additions and 2 deletions
|
@ -505,6 +505,7 @@ final class ForEachOps {
|
|||
// "happens-before" completion of the associated left-most leaf task
|
||||
// of right subtree (if any, which can be this task's right sibling)
|
||||
//
|
||||
@SuppressWarnings("unchecked")
|
||||
var leftDescendant = (ForEachOrderedTask<S, T>)NEXT.getAndSet(this, null);
|
||||
if (leftDescendant != null)
|
||||
leftDescendant.tryComplete();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue