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.
32 lines
653 B
32 lines
653 B
package codetoanalyze.java.harness;
|
|
|
|
import android.app.Activity;
|
|
|
|
/*
|
|
* Test if type inhabitation can inhabit tricky types.
|
|
*/
|
|
public class TrickyParamsActivity extends Activity {
|
|
|
|
private Object mObj;
|
|
|
|
// we have to be able to inhabit all params or no methods from this
|
|
// class will be called by the harness
|
|
public TrickyParamsActivity(
|
|
Object o, int i, boolean b, char c, long l,
|
|
float f, double d, short sh, byte byt,
|
|
Object[] arr1, int[] arr2) {
|
|
this.mObj = new Object();
|
|
}
|
|
|
|
@Override
|
|
public void onPause() {
|
|
mObj = null;
|
|
}
|
|
|
|
@Override
|
|
public void onDestroy() {
|
|
String s = mObj.toString();
|
|
}
|
|
|
|
}
|