You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
335 B
24 lines
335 B
/*
|
|
* Copyright (c) 2015-present Facebook.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
package codetoanalyze.java.tracing;
|
|
|
|
import com.facebook.infer.annotation.Verify;
|
|
|
|
public class NullPointerExceptionExample {
|
|
|
|
void deref(T t) {
|
|
t.f();
|
|
}
|
|
|
|
@Verify
|
|
void callDeref(T t, boolean condition) {
|
|
if (condition) {
|
|
deref(t);
|
|
}
|
|
}
|
|
|
|
}
|