mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inline variable: captured wildcard != wildcard so isAssignable should be used in order to avoid redundant class casts (IDEA-27243); though isAssignable can't replace equals as for primitive types cast can change expr semantics, e.g. (float)intVar1/intVar2
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import java.util.*;
|
||||
class Test {
|
||||
void foo() {
|
||||
final Collection<? extends Number> extensions = getExtensions();
|
||||
for (Number extension : exte<caret>nsions) {
|
||||
}
|
||||
}
|
||||
|
||||
Collection<? extends Number> getExtensions() {return null;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user