mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
drop contract cache on method change (EA-68596 - AIOOBE: ContractChecker.checkContractClause)
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user