blob: ac05e050003467a7c947d41f8ffafa20985c5212 [file] [log] [blame]
import androidx.annotation.DimenRes;
public class InferParameterFromUsage {
public void inferParameterFromMethodCall(int dummy, @DimenRes int id) {
// Here we can infer that parameter id must be @DimenRes from the below method call
getDimensionPixelSize(id);
}
private void getDimensionPixelSize(@DimenRes int id) {
}
}