mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
26 lines
310 B
Java
26 lines
310 B
Java
import org.junit.jupiter.api.Test;
|
|
|
|
public class E {
|
|
public void f(Object obj) {
|
|
obj.hashCode();
|
|
}
|
|
|
|
@Test
|
|
public void fTest() {
|
|
f(null);
|
|
}
|
|
|
|
public interface I {
|
|
void run();
|
|
}
|
|
|
|
public void runI(I i) {
|
|
i.run();
|
|
}
|
|
|
|
@Test
|
|
public void fTest2() {
|
|
runI(() -> f(null));
|
|
}
|
|
}
|