|
27 | 27 | import soot.jimple.infoflow.data.AbstractMethodAndClass; |
28 | 28 | import soot.jimple.infoflow.river.AdditionalFlowCondition; |
29 | 29 | import soot.jimple.infoflow.sourcesSinks.definitions.AccessPathTuple; |
30 | | -import soot.jimple.infoflow.sourcesSinks.definitions.FieldSourceSinkDefinition; |
31 | 30 | import soot.jimple.infoflow.sourcesSinks.definitions.IAccessPathBasedSourceSinkDefinition; |
32 | 31 | import soot.jimple.infoflow.sourcesSinks.definitions.ISourceSinkCategory; |
33 | 32 | import soot.jimple.infoflow.sourcesSinks.definitions.ISourceSinkDefinition; |
34 | | -import soot.jimple.infoflow.sourcesSinks.definitions.MethodSourceSinkDefinition; |
35 | 33 | import soot.jimple.infoflow.sourcesSinks.definitions.MethodSourceSinkDefinition.CallType; |
36 | 34 | import soot.jimple.infoflow.sourcesSinks.definitions.SourceSinkCondition; |
37 | 35 | import soot.jimple.infoflow.sourcesSinks.definitions.SourceSinkType; |
@@ -413,19 +411,18 @@ public void endElement(String uri, String localName, String qName) throws SAXExc |
413 | 411 | } |
414 | 412 |
|
415 | 413 | protected void handleEndtagMethod() { |
416 | | - if (methodSignature == null) |
417 | | - return; |
418 | | - |
419 | | - // Check whether we have data |
420 | | - if (!baseAPs.isEmpty() || !paramAPs.isEmpty() || !returnAPs.isEmpty()) { |
421 | | - AndroidMethod tempMeth = AndroidMethod.createFromSignature(methodSignature); |
422 | | - if (tempMeth != null) { |
423 | | - @SuppressWarnings("unchecked") |
424 | | - ISourceSinkDefinition ssd = createMethodSourceSinkDefinition(tempMeth, baseAPs, |
425 | | - paramAPs.toArray(new Set[paramAPs.size()]), returnAPs, callType, category, conditions); |
426 | | - addSourceSinkDefinition(methodSignature, ssd); |
427 | | - } else { |
428 | | - logger.error("Invalid method signature: " + methodSignature); |
| 414 | + if (methodSignature != null) { |
| 415 | + // Check whether we have data |
| 416 | + if (!baseAPs.isEmpty() || !paramAPs.isEmpty() || !returnAPs.isEmpty()) { |
| 417 | + AndroidMethod tempMeth = AndroidMethod.createFromSignature(methodSignature); |
| 418 | + if (tempMeth != null) { |
| 419 | + @SuppressWarnings("unchecked") |
| 420 | + ISourceSinkDefinition ssd = createMethodSourceSinkDefinition(tempMeth, baseAPs, |
| 421 | + paramAPs.toArray(new Set[paramAPs.size()]), returnAPs, callType, category, conditions); |
| 422 | + addSourceSinkDefinition(methodSignature, ssd); |
| 423 | + } else { |
| 424 | + logger.error("Invalid method signature: " + methodSignature); |
| 425 | + } |
429 | 426 | } |
430 | 427 | } |
431 | 428 |
|
|
0 commit comments