Commit Graph

253 Commits

Author SHA1 Message Date
Bas Leijdekkers
ff4d693212 Java: introduce PsiArrayInitializerMemberValue.getInitializerCount() (IJ-CR-176760)
GitOrigin-RevId: d2cd802dbb3edff7218517221db96b39840e720a
2025-09-26 14:02:14 +00:00
Bas Leijdekkers
a1c7ca404c Java optimization: introduce PsiArrayInitializerExpression.getInitializerCount() and use it where possible (IDEA-375485)
GitOrigin-RevId: 1d54ca3773469a22db195a1667ce21cdc679a324
2025-09-19 17:27:37 +00:00
Bas Leijdekkers
e61cfd625f Java: minor UAST optimization (IDEA-375485)
GitOrigin-RevId: 3551a8a0af9f2eb7428da63a1e5f83aa7bc81778
2025-09-18 13:06:51 +00:00
Aleksei.Cherepanov
c7515bfd3a KTIJ-35250 [Bazel] Promote "Missing dependency superclass" warning to error (part 2)
This commit enables check only for modules WITH a Kotlin facet
Bazel generator was updated as well

GitOrigin-RevId: 90a3427d4b5a3ebc29e257693cb3748ac09bfc6a
2025-08-24 18:49:00 +00:00
Ilia Kirianovskii
dc268560b6 [bazel] Update build files (IJI-2835)
GitOrigin-RevId: 275260ab73f59d3c08f0b4cb9f4c89b74054094a
2025-08-20 08:49:22 +00:00
Vladimir Krivosheev
ef0323d07c IJ-MR-162467 don't export intellij.platform.core
GitOrigin-RevId: 05f350c1c087be1bf9b46d8bdac5345a65f55958
2025-06-13 21:52:48 +00:00
Mikhail Filippov
40e854e522 IJPL-188826 bump Kotlin language version to 2.2
GitOrigin-RevId: 61c9fecae6a713d7e328e74b83186bc5d2f6bf66
2025-05-26 13:41:54 +00:00
Mikhail Filippov
493c93a4bf IJPL-182711 bump Kotlin language version
GitOrigin-RevId: 0beaed34efbd3b42a739dddd78de097b4e1d09c5
2025-04-09 14:26:59 +00:00
Max Medvedev
0e5df35887 IDEA-359853 rename PsiKeywords to JavaKeywords
GitOrigin-RevId: 549c1b35265414221b6b83ed1b5c426418ad032e
2025-04-03 11:33:32 +00:00
Max Medvedev
0ce5d6986a IDEA-359853 deprecated constants in PsiKeyword
GitOrigin-RevId: 94f23984ad8f4f467fed1f01f47b2a9b46242cac
2025-04-03 00:36:42 +00:00
Yuriy Artamonov
30952f8e49 [registry] IJPL-175398 Move java.* keys to Java plugin
GitOrigin-RevId: 1dc739ed8f42d75e61a7d725fe906ddd70b49ea2
2025-01-21 22:44:54 +00:00
Vladimir Krivosheev
0bc1cf1557 update bazel files
GitOrigin-RevId: 7320d3eff3aba093692ce66839c720ece6d7c4db
2024-12-30 11:28:24 +00:00
Vladimir Krivosheev
c760e695b8 cleanup
GitOrigin-RevId: db6ac3f5ae230e7ce0792e90cc9c58499de23e29
2024-12-26 14:56:01 +00:00
Jinseong Jeon
5aded8dfe2 Java UAST: JavaUClass's own isRecord
Otherwise, it will use the default interface impl,
which always returns false.

^IDEA-363783 fixed

GitOrigin-RevId: 1e5eedd75661c92f95f76611eb7c48c77be71052
2024-12-17 14:47:56 +00:00
Vladimir Krivosheev
98799639aa do not use _test as lib - test targets do not support this
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Tagir Valeev
83fc9cfd7b Revert "[java-uast] Properly delegate default methods for JavaUClass and JavaUAnonymousClass"
This reverts commit 5b86954ab906a07e3758f234440e69eb04b99adc.

GitOrigin-RevId: 156a171d976a8af8a3cd9f83b28def700c477822
2024-12-12 08:56:55 +00:00
Tagir Valeev
90b7398204 [java-uast] Properly delegate default methods for JavaUClass and JavaUAnonymousClass
Fixes IDEA-363783 `JavaUClass.isRecord` always returns `false`

GitOrigin-RevId: 5b86954ab906a07e3758f234440e69eb04b99adc
2024-12-11 11:36:11 +00:00
Mikhail Pyltsin
cccb22d78e [java-inspections] IDEA-360429 Support guards in switch UAST
GitOrigin-RevId: 6679acb5d8380073f75ef7be8a8261c59e6b392b
2024-12-02 11:30:30 +00:00
Vladimir Krivosheev
17916c90f8 libraries -> lib, resources, opt-in, test deps
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Tagir Valeev
e84b0a31e3 Declare contract for asSafely method
GitOrigin-RevId: e3797d068110395045e4ffab4b64ef92a5223ac4
2024-10-07 15:17:39 +00:00
Mikhail Filippov
bf43f2fc01 IJPL-150165 bump Kotlin language and API version
GitOrigin-RevId: a59dc8ca214a5047773fccf1cf28a1e1b07acf68
2024-08-30 22:15:55 +00:00
Jinseong Jeon
576a39c176 Java UAST: show constructor target annotation on constructors
^IDEA-353636 fixed

GitOrigin-RevId: a744c8140a60bd9621d95663438ca46ef517e4c8
2024-05-17 13:07:41 +00:00
Bart van Helvert
6b626d904d [uast] Add pattern variable UAST conversion
#IDEA-310333

GitOrigin-RevId: 925c54c4bc2525dde46d3fc58291421600e0b572
2024-02-13 12:58:38 +00:00
Bart van Helvert
6d55bf058d [uast-java] Add support for pattern matching
#IDEA-310333 Fixed

GitOrigin-RevId: 31fa57a0fdc5efcdfc419cd56ccc783f682234ce
2024-02-13 12:58:38 +00:00
Yuriy Artamonov
26d01f5692 [spring] IDEA-343557 Spring line markers while indexing
GitOrigin-RevId: 3c6fe78c34280f7ed2b0e3c5dd8b8f8fa2f98c94
2024-01-29 23:45:56 +00:00
Bart van Helvert
559ba08c10 [uast-java] Don't show type annotations on methods
#IDEA-336319 Fixed

GitOrigin-RevId: ce7aa689c95e379f0013899822550c78c51f2309
2024-01-25 23:58:27 +00:00
Bart van Helvert
159cf612e9 [uast] Support try-with-resource expressions in Java
#IDEA-337821 Fixed

GitOrigin-RevId: c17644363e2d00219f5ab08a547ad5532f24974b
2023-11-15 18:17:22 +00:00
Yuriy Artamonov
185d56c74c [kotlin] IDEA-332091 UAST: get rid of volatile in elements and optimize memory allocations
GitOrigin-RevId: 06360d002086da9dd61851bd8efcf9b07d02ad94
2023-10-08 23:11:39 +00:00
Yuriy Artamonov
5d7e54f360 [uast] IDEA-332091 Use less memory for JavaUVariable
GitOrigin-RevId: 9470e0c5a7437ad3eabc8cadd9a5bdfa938d1792
2023-10-03 18:08:15 +00:00
Yuriy Artamonov
69178f157e [uast] IDEA-332091 Use less memory for visitors of JavaUastLanguagePlugin
GitOrigin-RevId: d9d20882cdd3903c2d0ab14b728d216aa97061d3
2023-10-03 18:08:15 +00:00
Yuriy Artamonov
c3ecb67628 [uast] IDEA-332091 Use less memory for Java UAST elements
GitOrigin-RevId: c5230a90c90b0dcf70c4bf95261d37f877c0f0ad
2023-10-03 18:08:15 +00:00
Yuriy Artamonov
809aeaadb5 [uast] IDEA-332091 UAST: get rid of volatile parts in elements
GitOrigin-RevId: 0ad25e60bdc20cc25518773490a847d06d80cb18
2023-10-03 18:08:15 +00:00
Daniil Ovchinnikov
27e155fc21 IJPL-167 bump language and API version 1.8 -> 1.9
GitOrigin-RevId: 5204df1784bbbba550476415e4ceff7368ab5fd4
2023-09-19 19:52:47 +00:00
Yuriy Artamonov
ee0fbe3fae [java] EA-868961 NPE in JavaUastLanguagePlugin.isOneOfNames
GitOrigin-RevId: e9f80605d1a8dda81f3abb4a8a98daab77af7d06
2023-06-20 13:46:44 +00:00
Alexey Belkov
55f582d5d3 Apply Kotlin inspection "Redundant 'if' statement"
GitOrigin-RevId: 2f93c77e56d8519431e8cc94f4ca2354003806b6
2023-06-12 14:45:50 +00:00
Yuriy Artamonov
69369c9409 [uast] IDEA-321901 SpringElInjector passes annotation hints to UAST
GitOrigin-RevId: f6c4cdc3b78195c6a371d7f31f7f10eed91e4aa7
2023-06-08 11:51:05 +00:00
Yuriy Artamonov
5dcca42d84 [uast] IDEA-321901 SpringElInjector takes a significant amount of time in highlighting performance tests
GitOrigin-RevId: cebb76629837905ac51d70e0e971a8c9bd60026c
2023-06-07 12:37:14 +00:00
Dima Golovinov
24e9f15dc1 Move Java UAST helper class to the uast-java plugin.
GitOrigin-RevId: 2eb72425f6e55e4e22bcdb27165612820388c296
2023-05-31 19:40:46 +00:00
Alexey Belkov
4467dc883b Apply Kotlin inspection "Unnecessary type argument" on whole project
GitOrigin-RevId: 70a38b512309685d57bb5eddf2fc5068f14fe481
2023-05-27 14:22:18 +00:00
Alexey Kudravtsev
004bcb109a uast cleanup: specify return types explicitly
GitOrigin-RevId: 759797ac529472d62c7e9e6f50c36bc49ea18083
2023-05-18 16:32:42 +00:00
Bart van Helvert
0caae99ba3 Revert "[uast] Add expression type for implicit expressions"
This reverts commit 2233af9186c631a34f6e182f6e00b5ae804e33cc.

GitOrigin-RevId: b2a793923134cddfaed4736da6cae21fafa6793c
2023-05-10 12:06:28 +00:00
Bart van Helvert
9046baa01e [uast] Add expression type for implicit expressions
Retrieving expression type didn't work for these elements because there is no source psi. #IDEA-318754 Fixed

GitOrigin-RevId: 2233af9186c631a34f6e182f6e00b5ae804e33cc
2023-05-04 12:01:33 +00:00
Zhanna Gorelova
fcbd87a462 [reactor][java-uast] IDEA-314873: space between comment and code now is preserved
GitOrigin-RevId: 45c7f995af2c19b33a01cdb261186788285c869b
2023-03-31 13:44:59 +00:00
Zhanna Gorelova
1905012ce7 [reactor][java-uast] IDEA-314873 Reactor: now when java statement is created, comments are added (but previous space is not preserved)
GitOrigin-RevId: d77ef3f0a15bddcc7df0b6f90ef9e687a13f91ad
2023-03-30 13:01:38 +00:00
Nicolay Mitropolsky
88a3cfe423 IDEA-314469: lower JVM target level for *intellij.java.uast*
GitOrigin-RevId: 08eb4b2a3cce7f408a887ac1bb99587df8f8fdc4
2023-03-10 13:33:38 +00:00
Zhanna Gorelova
f1d2102624 [reactor] IDEA-279692: review(102582) after in doUnavailableTest was removed, implicit return type for koltin now should be properly processed
GitOrigin-RevId: 391ba1800f0e8263a134ac84d9655c450a44680b
2023-03-09 13:34:26 +00:00
Zhanna Gorelova
bf414b8481 [reactor] IDEA-276117: html with descriptions were actualized, method doOnSuccess now is not highlighted
GitOrigin-RevId: abec1a6420a44ff31abe5cec578789cefc9b5a0d
2023-01-31 20:46:56 +00:00
Zhanna Gorelova
0dfcc25806 [reactor] IDEA-276117: two inspections (Mono.zip and Mono<Void>.map(flatMap)) skeleton and lambda body unwrap for Java was added
GitOrigin-RevId: 2d6141aa7a7bd8b854308437c7fa3eb1a7232305
2023-01-31 20:46:41 +00:00
Yuriy Artamonov
7a5fcda403 [uast] Relax initialization of lazy UAST tree parts from lazy{} to lazyPub{}
GitOrigin-RevId: 6e33dc111a62d9e516305896295563d64165e2d7
2023-01-29 15:12:40 +00:00
Yuriy Artamonov
bde8460757 [uast] IDEA-311783 Excessive memory allocation on file opening from JavaConverter#convertDeclarations
GitOrigin-RevId: 892549e840ff4d3fa2a1197c02d3f23f472d27b7
2023-01-28 18:44:15 +00:00