Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
#95 removed deprecated references
Browse files Browse the repository at this point in the history
  • Loading branch information
sdibernardo committed Jan 21, 2019
1 parent 2650158 commit f9db115
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private Map<String, ProcessVariableOperation> checkWriteAccess(final Body body,
final JInterfaceInvokeExpr expr = (JInterfaceInvokeExpr) ((AssignStmt) unit)
.getRightOpBox().getValue();
if (expr != null) {
if (expr.getMethodRef().declaringClass().equals(Scene.v()
if (expr.getMethodRef().getDeclaringClass().equals(Scene.v()
.forceResolve(VariableMap.class.getName(), SootClass.SIGNATURES))) {
initialOperations.putAll(parseInitialExpression(expr, element, resourceFilePath));
invoke = leftBox;
Expand Down Expand Up @@ -225,7 +225,7 @@ private Map<String, ProcessVariableOperation> checkWriteAccess(final Body body,
* @return True/False based on whether the second or third argument refers to the variable map
*/
private boolean checkArgBoxes(Map.Entry<String, Map<String, String>> map, String assignment, String invoke, JInterfaceInvokeExpr expr) {
if (expr.getMethodRef().name().equals(map.getKey())) {
if (expr.getMethodRef().getName().equals(map.getKey())) {
if (!assignment.isEmpty()) {
if (expr.getArgBox(1).getValue().toString().equals(invoke)) {
return true;
Expand Down Expand Up @@ -705,7 +705,7 @@ private VariableBlock blockIterator(final Set<String> classPaths, final CallGrap
private void parseExpression(JInterfaceInvokeExpr expr, VariableBlock variableBlock, BpmnElement element,
ElementChapter chapter, KnownElementFieldType fieldType, String filePath, String scopeId) {

String functionName = expr.getMethodRef().name();
String functionName = expr.getMethodRef().getName();
int numberOfArg = expr.getArgCount();
String baseBox = expr.getBaseBox().getValue().getType().toString();

Expand Down Expand Up @@ -746,7 +746,7 @@ private Map<String, ProcessVariableOperation> parseInitialExpression(final JInte

final LinkedHashMap<String, ProcessVariableOperation> initialOperations = new LinkedHashMap<>();

final String functionName = expr.getMethodRef().name();
final String functionName = expr.getMethodRef().getName();
final int numberOfArg = expr.getArgCount();
final String baseBox = expr.getBaseBox().getValue().getType().toString();

Expand Down

0 comments on commit f9db115

Please sign in to comment.