Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/CatchRuntimeException.java
T
2012-10-30 17:01:18 +01:00

26 lines
801 B
Java

import org.jetbrains.annotations.NotNull;
public class BrokenAlignment {
@NotNull
Object test(){
try{
bar(<warning descr="Passing 'null' argument to parameter annotated as @NotNull">null</warning>);
return <warning descr="'null' is returned by the method declared as @NotNull">null</warning>;
}
catch (RuntimeException e) {
return <warning descr="'null' is returned by the method declared as @NotNull">null</warning>;
}
}
public void bar(@NotNull Object foo) {
assert <warning descr="Condition 'foo != null' is always 'true'">foo != null</warning>;
}
public void bar2(@NotNull Object foo) {
assert <warning descr="Condition 'foo != null' is always 'true'">foo != null</warning>;
try { }
catch (java.lang.RuntimeException ex) { }
}
}