mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
In this commit we implement a logical implication of the fact that StubIndex::get is deprecated, combined with the fact that AbstractStubIndex::get is not deprecated but calls StubIndex::get with the exact same arguments it received. The absence of deprecation of AbstractStubIndex::get obfuscates the fact that we want to phase out StubIndex::get calls. Apart from deprecating said method, we add some convenience methods in AbstractStubIndex inheritors that ensure a few things: - The not-deprecated and preferred StubIndex::getElements is called with appropriate arguments, including a properly specialised requiredClass argument. - Shorter syntax and DRY: only 3 arguments are required to pass into the convenience method, whereas getElements requires 2 more. These 2 arguments are fields of the AbstractStubIndex inheritor, so it makes little sense to get them from there and pass them into StubIndex::getElements everywhere. Wherever we can, these convenience methods are now used. If you have access to JetBrains internal resources, also see: https://jetbrains.team/p/ij/reviews/112930/timeline https://jetbrains.slack.com/archives/CMDBCUBGE/p1691509451975689 GitOrigin-RevId: c51ef4de44aa85841799640b1ece9d291208dc69