drop contract cache on method change (EA-68596 - AIOOBE: ContractChecker.checkContractClause)

This commit is contained in:
peter
2015-05-21 15:31:39 +02:00
parent cf233126df
commit 04331ce6a7
@@ -1516,12 +1516,12 @@ public class ControlFlowAnalyzer extends JavaElementVisitor {
return contract.arguments.length == paramCount;
}
});
return Result.create(applicable, contractAnno);
return Result.create(applicable, contractAnno, method, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
}
catch (Exception ignored) {
}
}
return Result.create(Collections.<MethodContract>emptyList(), contractAnno, method);
return Result.create(Collections.<MethodContract>emptyList(), contractAnno, method, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
}
});
}