Commit Graph

11 Commits

Author SHA1 Message Date
Bart van Helvert
d942ea174c [jvm] Fix RefMethodImpl hasBody check for Kotlin accessors
#KTIJ-34354 Fixed

GitOrigin-RevId: 926aab275ad24453f34287cccfe6d9621bf57aee
2025-06-09 20:00:17 +00:00
Jinseong Jeon
b4352ad4f8 UAST: introduce UField.sourceAnnotations
and apply it to existing inspections that rely on annotations on
property w/o use-sites (which technically don't belong to UField). #KTIJ-33663

GitOrigin-RevId: 2ff1de00976104ae33beed0b71e544354c7de606
2025-06-09 20:00:17 +00:00
Jinseong Jeon
8e4ffb351b KT UAST: fix UField modeling of annotation that belongs to \$annotations
Only `FIELD` or `PROPERTY_DELEGATE_FIELD` use-site targets are
applicable to fields. Also annotations whose meta-annotation targets
include `FIELD`, but not `PROPERTY`, e.g., @JvmField or
@ScheduledForRemoval

It is not trivial to figure out meta-annotation at UAST level (as it
will trigger expensive resolution). Instead, similar to KotlinUMethod
(where functions and property accessors need similar use-site
computation), we piggy-back on LC's use-site computation.

^KTIJ-33663 fixed

GitOrigin-RevId: 92b95b5ce6d27436d13d92bf40df40c861f884c6
2025-06-09 20:00:17 +00:00
Bartek Pacia
0a80fecf2c [jvm-inspections] fix inconsistencies between OverrideOnlyApiInspection and NonExtendableApiInspection
Follow up to made comments in IJ-MR-156853 after it was already merged to master.

Merge-request: IJ-MR-157747
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com>

GitOrigin-RevId: 3b4ec6551c0d18f79eeff51954850327538fbeab
2025-03-14 20:25:12 +00:00
Bartek Pacia
06445fb75e [jvm-inspections] Highlight more improper usages of @ApiStatus.OverrideOnly
#IDEA-368649 fixed

Merge-request: IJ-MR-156853
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com>

GitOrigin-RevId: 610defac3e82e7d46c4e2554257825ae7fdf8915
2025-03-13 15:29:46 +00:00
Bartek Pacia
1a09a243dc [jvm-inspections] Highlight improper usages of @ApiStatus.NonExtendable
resolve #IDEA-368647

Merge-request: IJ-MR-156895
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com>

GitOrigin-RevId: 22125cec784675045f4141a01a1c954eed199476
2025-03-12 15:53:28 +00:00
Bartek Pacia
101ec81418 [jvm-inspections] Highlight improper usage of @ApiStatus.OverrideOnly
#IDEA-367313 fixed

Merge-request: IJ-MR-155973
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com>

GitOrigin-RevId: cdaed6390cfede7196f6be28c6e04854e208e72e
2025-02-26 13:18:25 +00:00
Bart van Helvert
69ddce69ae [java] Ignore static and final methods in OverrideOnlyInspection
#IDEA-367314 Fixed

GitOrigin-RevId: 418750107648323fe36a75c492d05a9e499268b2
2025-02-11 00:47:20 +00:00
Johannes Spangenberg
6c7da7b25a IDEA-367007 Exclude static methods from @OverrideOnly
GitOrigin-RevId: 0f67f91edf0558fcab0be98927e0828872ec21d4
2025-02-11 00:47:19 +00:00
Bart van Helvert
99e28672d9 [jvm] Remove old JUnit 5 test data
This test data isn't used by any test.

GitOrigin-RevId: 09f944bfdf3978b89e41d73c4762f8e31e59970e
2024-08-08 16:45:55 +00:00
Bart van Helvert
72b748d5e0 [kotlin] Run Kotlin JVM tests on both K1 and K2 frontend
#IDEA-354810 Fixed


(cherry picked from commit d29d3256472dfe368161335732ded20ae95cf34e)

IJ-MR-140910

GitOrigin-RevId: 0a9b3cae7aab473f732012ad91b4e67f97ff8697
2024-08-02 11:11:07 +00:00