Commit Graph

698 Commits

Author SHA1 Message Date
Daniil Ovchinnikov
6fe5c49599 deprecate com.intellij.reference.SoftReference constructors
GitOrigin-RevId: a723be59b812f71953e79879d7adf09d58a9e935
2023-04-15 00:04:29 +00:00
Roman Ivanov
6de5192f60 [inlays] get field of getter only when index is disabled EA-785577
GitOrigin-RevId: e549da4afc56b02a9c6061ac7245843d728b1365
2023-02-21 12:19:58 +00:00
Nikolay Chashnikov
07576fecb2 [java] get rid of identity-based comparisons of Strings (IDEA-312368)
Such a code is often written by mistake, and 'equals' method should be used instead. If rare cases where identity-based comparison is really needed, the code is changed to use a special Strings.areSameInstance method to make the intention explicit and avoid warnings.

GitOrigin-RevId: e89d229059157ecc9ad21d9a189f7393839ab45f
2023-02-06 19:58:52 +00:00
Tagir Valeev
e9832acb26 [java] Use pattern variables; other minor cleanup
GitOrigin-RevId: e2345bd54d92f6676c6fbc55955e85cbdc5c2793
2023-02-01 17:09:26 +00:00
Nikolay Chashnikov
8ce3039acf cleanup: get rid of usages of deprecated constants from PsiType (IDEA-309438)
GitOrigin-RevId: 3373eb8b47af51b9f6dd71e565f773d69e8a3218
2023-01-26 16:11:57 +00:00
Anna Kozlova
630b9cb64f [lombok] ignore implicit constructor usages in generated code (IDEA-300494)
GitOrigin-RevId: bcafd4fbb0f0771ccd46acf7cff9bc23ee3e9130
2023-01-23 16:03:17 +00:00
Nikolay Chashnikov
c8c61b308d [workspace file index] move JvmPackageRootData to Java plugin and make it public
Kotlin plugin needs to contribute its directories to PackageIndex, so we need to have a public API for that. It's better to put it to Java plugin from the beginning, since corresponding functionality will be removed from the platform as soon as we get rid of platform API which allows plugins to access it.

GitOrigin-RevId: d66adf78641383312478950bb040bdf66ffd1eb2
2023-01-20 10:31:36 +00:00
Nikolay Chashnikov
98b622aa27 cleanup: remove redundant '@author' tags from javadoc comments - 5
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: e1f798814ca7f22747768b99cbcd962d820bbfb9
2023-01-18 17:01:41 +00:00
Daniil Ovchinnikov
578eaaf60e rename library kotlin-stdlib-jdk8 -> kotlin-stdlib
GitOrigin-RevId: cddf45ccfd5563d3fe209bea62a1c37c94f44ff9
2023-01-10 12:22:34 +00:00
Tagir Valeev
15b23c536a Fix constant value and some other warnings
GitOrigin-RevId: 8c9ffeab46602a73270451ae97bd25a47a2076e4
2022-12-01 17:34:54 +00:00
Alexey Kudravtsev
96d7f26415 cleanup: convert to record
GitOrigin-RevId: f3b35f1005da75d5b425c87847525bea83542910
2022-11-10 16:21:03 +00:00
Nikolay Chashnikov
638bc9f054 [java] access ProjectFileIndex under read action (IDEA-304640)
GitOrigin-RevId: 6795f00ee7f4e94c62c68111c71e87846e61ad52
2022-10-31 17:28:24 +00:00
Tagir Valeev
063a2a9b7a [java-indexing] JavaFunctionalExpressionSearcher: use NBRA (IDEA-304259)
GitOrigin-RevId: f21c5a6efcdcc3ca382e985eb08843021605a656
2022-10-25 15:55:50 +00:00
Anna Kozlova
b6571d42d7 [java] overriding search: return false if search was canceled by consumer
GitOrigin-RevId: 02c4f24580e4eae58b49d28a055630735d25ae0e
2022-10-21 08:40:11 +00:00
Nikolay Chashnikov
e7195f6214 cleanup: remove '@author peter' tags from javadoc comments
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: 99ea11604b3d5dfdf838d7f3685477814e642ceb
2022-10-13 14:39:10 +00:00
Bart van Helvert
3cdc6793a4 [java] IDEA-303356 Get source module from index even when file type extension is not registered
GitOrigin-RevId: b8c04bc5b27615de916e13bea5b4e53904b06575
2022-10-13 11:12:21 +00:00
Anna Kozlova
76ece48d63 [kotlin] direct function overrides search
wrap search parameters to forbid kotlin class inheritance search from java overriding methods search, cause kotlin method overrides should be found separately and without LC

GitOrigin-RevId: 33bbefa169bc8ad4e6440e09d036e3b7ce11238e
2022-10-10 08:42:49 +00:00
Alexey Kudravtsev
053d2754f8 EA-261506 - AE: ResolveScopeManagerImpl.getDefaultResolveScope
GitOrigin-RevId: 9a1a4f7c50b4b0408bd3c7bd7265b3e0276a85bd
2022-10-08 14:35:09 +00:00
Alexey Kudravtsev
8d35c16f23 cleanup
GitOrigin-RevId: 5d20721a4e8f0f82d4d408367d30faa688bfb841
2022-10-08 14:35:05 +00:00
Anna Kozlova
8d75856ee5 [java] don't stop if only direct overridings are requested in java overriding search
would break layered queries

GitOrigin-RevId: 62487a663609ba92d748f1e8569bd4d79c64db03
2022-10-04 18:46:45 +00:00
Anna Kozlova
77e8aba20f [java] cleanup
GitOrigin-RevId: a861a7c61030962b77e23cd37331bb9f372072ba
2022-09-30 15:19:36 +00:00
Nikolay Chashnikov
2251f9330d [platform] move 'getPackageNameByDirectory' from platform to Java plugin
...because packages is a Java thing.

GitOrigin-RevId: 4974402aab9aaf77b3e725e83a4d96979c83319d
2022-08-26 17:14:26 +00:00
Tagir Valeev
2758aadfab [java-indexing] JavaFunctionalExpressionSearcher: fallback to reindex if restoring fragment failed
Supersedes EA-261675 - AE: JavaParserUtil.parseFragment

GitOrigin-RevId: 4ca90da3b550a3041572399e7cf38dca9a0d5751
2022-06-27 13:22:04 +00:00
Alexey Kudravtsev
3f2a2eaf34 JavaElementVisitor: notnull
GitOrigin-RevId: e4b356ce28796e2631b0a631b5108e0348b77baf
2022-06-11 23:31:48 +00:00
Anna Kozlova
61e72943a3 EA-534308 - NPE: JavaAutoModuleFilterScope.contains
GitOrigin-RevId: d0ac5e2a40ffcaf1e78efc011b4925cb9dff7251
2022-06-08 08:32:19 +00:00
Florian Kistner
6b13ec47a5 KMA-432 Provide mechanism that inheritor searchers can use to avoid unnecessary work for participating queries
GitOrigin-RevId: 84cb945d4f6e979de56adcb50e3642bda80b9ab6
2022-05-31 13:30:51 +00:00
Daniil Ovchinnikov
3b8a970c87 deprecate PsiResolveHelper$SERVICE
GitOrigin-RevId: 85081ddd627298396d389f1d45f97ac23ec155ce
2022-05-19 15:33:24 +00:00
Anna Kozlova
5840073672 [java] avoid traversing vfs during indexing to check for automatic module name in MANIFEST.MF(IDEA-293456)
review comments

GitOrigin-RevId: 6b9ca21c02e896782a0bdffc94bca235a99bf474
2022-05-13 10:00:15 +00:00
Anna Kozlova
a69b28077f [java] avoid traversing vfs during indexing to check for automatic module name in MANIFEST.MF(IDEA-293456)
GitOrigin-RevId: db5ee5c486ac4fc57c7c8a30a2002ec1295fd93f
2022-05-11 17:20:13 +00:00
Anna Kozlova
914bb33096 [search] start non-blocking read action for access (IDEA-292724)
GitOrigin-RevId: 6b7894773886e9b0e1014c85fbf660c133f668e2
2022-04-22 18:58:40 +00:00
Roman Ivanov
2aeceafd59 [java, usages] search record component method references in other files IDEA-291753
GitOrigin-RevId: 0dd837183b67f8a25ff1c35a71bc796414b2d8a7
2022-04-08 11:56:43 +00:00
Alexey Kudravtsev
9493da7062 EA-476002 IAE: JavaClassInheritorsSearcher.$$$reportNull$$$0
GitOrigin-RevId: 08b0c9a377283954c4978bad963d2d78f5331cc7
2022-04-01 15:07:05 +00:00
Alexey Kudravtsev
28716cba33 prefer VisibleForTesting from jetbrains-annotation to avoid unnecessary Guava dependency
GitOrigin-RevId: 81134246cde73fb3205064bef8c888c1fa0c44a9
2022-03-22 18:02:22 +00:00
Anna Kozlova
5d5412de4f EA-389337 T: SharedImplUtil.findFileElement
GitOrigin-RevId: 313fa6aab59c6c8529d0add9ac53e14e62f77670
2022-03-14 18:24:07 +00:00
Tagir Valeev
090f452ab0 Remove unnecessary boxing
GitOrigin-RevId: 5b7d8fbfca9d58fcde762c01e564b16be44d9c1f
2022-02-17 05:40:22 +00:00
Gregory.Shrago
1c61e531af IDEA-288818 make index check hashed key equality for all clients
GitOrigin-RevId: f4900beb1828322740ca955afc7e771f164cf62e
2022-02-16 10:51:02 +00:00
Gregory.Shrago
8f8e8ba3e5 IJ-CR-18672 extract CharSequenceHashStubIndexExtension
GitOrigin-RevId: 3e16c095659bba47916bc076978bed3c510916c3
2022-02-07 21:59:09 +00:00
Alexey Kudravtsev
d91c72c6af add more javadoc
GitOrigin-RevId: 1d20b851f2eba13236e4ae16f38562d39b27324b
2022-02-03 15:08:03 +00:00
Alexey Kudravtsev
64b65d2542 cleanup
GitOrigin-RevId: 6318779922a84841f760815b02bc340fe3218d93
2022-02-01 15:28:26 +00:00
Dmitry Avdeev
ce0f0b675f IDEA-280487 Inlay hints settings: hints are not displayed in preview
enabling hints for inheritors

GitOrigin-RevId: 2383c9a9e19e8d07384afe51edac9fe3c8ae5b4f
2022-01-22 12:53:12 +00:00
Dmitry Batkovich
f4dae2224f enable JavaNullMethodArgumentIndex even in online mode
GitOrigin-RevId: f550b3d1426fe9b6b1f6d7b3ad97aa50fc09fb38
2022-01-20 19:37:39 +00:00
Vladimir Krivosheev
5418193f18 CompilerReferenceService as a preloaded service - this index is important is used right after the project opening to highlight
GitOrigin-RevId: ea5b6b03cd1ea5f4e8f7a8b6c7dff1f51d2a3567
2021-12-31 12:06:52 +00:00
Dmitry Batkovich
d21c8dd1ae revert index version changes
GitOrigin-RevId: ace3c132a74bc011a03718f01882628a329363d0
2021-12-17 00:39:22 +00:00
Gregory.Shrago
12c74c9d89 make java fqn index use string keys
GitOrigin-RevId: 637d790f739944841efe199888666d2fe300dbf2
2021-12-14 12:42:07 +00:00
Anna Kozlova
2e4ea1b5d4 EA-389337 (plugin) - T: SharedImplUtil.findFileElement
GitOrigin-RevId: 366560ce9a30c3bb52defe2ab32980f31fd57c52
2021-11-15 11:53:48 +00:00
Anna Kozlova
05f2dbfda9 NPE
GitOrigin-RevId: 4054a3a3248f3c06924b9b94fb89a4f487504f51
2021-11-09 08:19:01 +00:00
Anna Kozlova
e8cc225191 [java] add external annotations in batch when roots are configured
IJ-CR-16418

GitOrigin-RevId: ad4d8aef04eaa61250e7e0bc59930b8e3edfb064
2021-11-08 20:58:13 +00:00
Dmitry Gridin
eff8240ca2 [java] MethodTextOccurrenceProcessor: add annotations
GitOrigin-RevId: ab0c00a6f40f47a0491c632146207b8962f9e35d
2021-11-03 13:46:18 +00:00
Alexey Kudravtsev
908de66f0e replace error-prone start/finishBatch API with runBatchFilesProcessing(Computable)
GitOrigin-RevId: c3169602fa6cdc6c82d6323538cc3caefa9c378f
2021-10-28 18:49:56 +00:00
Andrey.Cherkasov
631b9ae393 [java] Check for PsiQualifiedExpression instead of checking for both PsiThisExpression and PsiSuperExpression
GitOrigin-RevId: 8ec9b9cc3f255218bed65ace1a2613e34609f251
2021-10-26 15:06:39 +00:00