Skip to content

Commit

Permalink
cardumen tested and fixed on android-async-http
Browse files Browse the repository at this point in the history
  • Loading branch information
khesoem committed Oct 23, 2019
1 parent 97af7c0 commit 3d3bedb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ public boolean filter(ChangePatternInstance instance, IRevision revision) {
String srcAsString = currentSrcElement.toString();
Set<CtElement> elementsInSubtree = new HashSet<>();
elementsInSubtree.add(currentSrcElement);
for (int j = 0; j == 0 || elementsInSubtree.contains(allSrcElements.get(i + j).getParent()); j++) {
for (int j = 0; j == 0 ||
(i + j >= allSrcElements.size() && elementsInSubtree.contains(allSrcElements.get(i + j).getParent()))
; j++) {
CtElement srcElement = allSrcElements.get(i + j);
elementsInSubtree.add(srcElement);
if (srcElement instanceof CtLiteral || srcElement instanceof CtVariableAccess) {
Expand Down

0 comments on commit 3d3bedb

Please sign in to comment.