redundant cast: ensure that temp variable would have unique name (IDEA-118197)

This commit is contained in:
Anna Kozlova
2013-12-16 17:00:39 +04:00
parent a449241577
commit 7ca0d0b0d5
4 changed files with 18 additions and 2 deletions
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -0,0 +1,9 @@
import java.util.*;
public class RedundantCast{
<T> void foo2(List<Object[]> x) {
for (Object[] l : x) {
String[] s = (String[]) l;
}
}
}