mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
NPE: check raw substitution during inline
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
public class NotRaw<T> {
|
||||
T g<caret>et(T t){
|
||||
T tt = t;
|
||||
if ( t == null) {
|
||||
return null;
|
||||
} else
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Raw extends NotRaw {
|
||||
void foo() {
|
||||
Object o = get(null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user