in google-http-client-findbugs/src/main/java/com/google/api/client/findbugs/BetaDetector.java [62:101]
public void sawOpcode(int seen) {
switch (seen) {
case INVOKEINTERFACE:
case INVOKESTATIC:
case INVOKESPECIAL:
case INVOKEVIRTUAL:
// Method usage
checkMethod(getNameConstantOperand(), getSigConstantOperand());
break;
case GETFIELD:
case GETFIELD_QUICK:
case GETFIELD_QUICK_W:
case PUTFIELD:
case PUTFIELD_QUICK:
case PUTFIELD_QUICK_W:
case GETSTATIC:
case GETSTATIC_QUICK:
case GETSTATIC2_QUICK:
case PUTSTATIC:
case PUTSTATIC_QUICK:
case PUTSTATIC2_QUICK:
// Field usage
checkField(getNameConstantOperand());
break;
case LDC:
case LDC_W:
case LDC2_W:
// Class usage
if (getConstantRefOperand() instanceof ConstantClass) {
// report bug in case it's google api @Beta class
checkClass();
}
break;
default:
// DO NOTHING
}
}