Java: Simplified handling the parentheses in the quick-fix Collection.toArray() (IDEA-163341)

This commit is contained in:
Pavel Dolgov
2017-01-13 12:42:51 +03:00
parent f351ba2ddb
commit 93e109126a
2 changed files with 4 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ import java.util.*;
class Cast {
Integer[] foo() {
Iterable<Integer> c = Arrays.asList(1, 2);
Integer[] arr = ((Collection<Integer>)c).toArray(new Integer[0]);
Integer[] arr = ((Collection<Integer>) c).toArray(new Integer[0]);
return arr;
}
}