- // setup the location list of callee's parameters
- MethodDescriptor calleemd = min.getMethod();
- MethodLattice<String> calleeLattice = ssjava.getMethodLattice(calleemd);
- CompositeLocation calleeThisLoc =
- new CompositeLocation(new Location(calleemd, calleeLattice.getThisLoc()));
- List<CompositeLocation> calleeParamList = new ArrayList<CompositeLocation>();
- // first, add callee's this location
- calleeParamList.add(calleeThisLoc);
- // second, add callee's parameters
- for (int i = 0; i < calleemd.numParameters(); i++) {
- VarDescriptor calleevd = (VarDescriptor) calleemd.getParameter(i);
- CompositeLocation calleeLoc = d2loc.get(calleevd);
- calleeParamList.add(calleeLoc);
+ if (!calleeMethodDesc.isStatic()) {
+ CompositeLocation calleeThisLoc =
+ new CompositeLocation(new Location(calleeMethodDesc, calleeLattice.getThisLoc()));
+ calleeParamList.add(calleeThisLoc);
+ }
+
+ for (int i = 0; i < calleeMethodDesc.numParameters(); i++) {
+ VarDescriptor calleevd = (VarDescriptor) calleeMethodDesc.getParameter(i);
+ CompositeLocation calleeLoc = d2loc.get(calleevd);
+ calleeParamList.add(calleeLoc);
+ }