From 9466db5e2012f9b9bb9d4f74834a4a9bfe3b140b Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Fri, 13 Sep 2013 19:24:39 +0400 Subject: [PATCH] Suppress unchecked cast warning --- python/src/com/jetbrains/python/psi/PyUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/python/src/com/jetbrains/python/psi/PyUtil.java b/python/src/com/jetbrains/python/psi/PyUtil.java index e008c08005db..3ce5aebb1a3f 100644 --- a/python/src/com/jetbrains/python/psi/PyUtil.java +++ b/python/src/com/jetbrains/python/psi/PyUtil.java @@ -125,6 +125,7 @@ public class PyUtil { List result = new SmartList(); for (PsiElement child : element.getChildren()) { if (instanceOf(child, aClass)) { + //noinspection unchecked result.add((T)child); } else {