Commit Graph

22309 Commits

Author SHA1 Message Date
Tagir Valeev
aa035a99ca [java-inspections] LambdaToAnonymousFix: tolerate incorrect state
It was not checked in the same RA that the state is correct
Fixes EA-1003038 - T: LambdaCanBeReplacedWithAnonymousInspection.doFix

GitOrigin-RevId: e53a448587e698a9984bf3bc25a7ac177d86be08
2024-06-28 16:52:24 +00:00
Tagir Valeev
229eff0461 Raw type and other warnings fixed
GitOrigin-RevId: cde52de8987d2a995c4d2861f3b77356d79f3dd4
2024-06-28 16:52:24 +00:00
Tagir Valeev
2854780d0a Fix "ignored result of call" and other warnings
GitOrigin-RevId: 13ffae0c5ef1ea27b7306f4b0cc5386369717734
2024-06-27 18:57:13 +00:00
Tagir Valeev
9b8d299c1e Warnings fixed (i18n+others)
GitOrigin-RevId: 404f67f93b6c8d0df6ed13774791fc2d12b613cc
2024-06-27 11:21:13 +00:00
Mikhail Pyltsin
36f87ac0b6 [java] IDEA-354964 Migrate standard descriptors like JAVA_21 to TYPE_USE annotations
- fix tests
- fixes to show external annotations

GitOrigin-RevId: 79cde38663de10c2985b72e76e98372fef214b20
2024-06-26 20:34:48 +00:00
Mikhail Pyltsin
330ba98e01 [java] IDEA-354964 Migrate standard descriptors like JAVA_21 to TYPE_USE annotations
- fix NullableManager, when it can't find annotation in type

GitOrigin-RevId: 121927429534971abb4a50d1f670afbed9384045
2024-06-26 20:34:48 +00:00
Mikhail Pyltsin
638393e895 [java] IDEA-354964 Migrate standard descriptors like JAVA_21 to TYPE_USE annotations
GitOrigin-RevId: d13187d41d214bd2ccadecb4cadc925f7d787d60
2024-06-26 20:34:48 +00:00
Bart van Helvert
2fb679f5e4 [java] Remove test runner icon hiding for classes with only disabled tests
This feature can cause confusion to users, didn't work correctly and if implemented correctly can be fairly expensive to compute so it was decided that it was better to remove it. #IDEA-355402 Fixed

GitOrigin-RevId: 38e4fb787c41a55967811de9994708459da5e778
2024-06-26 18:23:10 +00:00
Bart van Helvert
a67965fce8 [java] Support go to test for implicit classes
#IDEA-353532 Fixed

GitOrigin-RevId: 5692c6d30579b3ca48aa875220a343c1040bbd6b
2024-06-26 18:23:10 +00:00
Bart van Helvert
0232d76e56 [java] Implement getName for implicit classes
GitOrigin-RevId: 069362cff5ebee9eaf5e75d566097a2deaed8e8f
2024-06-26 18:23:10 +00:00
Aleksey Dobrynin
1b2f919aed [java-intentions] calculate a CircularModuleDependencies in a non-blocking read action IDEA-327659
GitOrigin-RevId: d634f0d0ca5cf944df2f3d9ec92779c2a6edcae7
2024-06-26 14:15:17 +00:00
Tagir Valeev
19fb624028 [java] Use PsiUtil.getContainingClass instead of ClassUtils.getContainingClass
GitOrigin-RevId: f8a6abc7358a2c39dc4c50deaabe14c676f0977c
2024-06-26 11:52:02 +00:00
Mikhail Pyltsin
114a8907cf [java-completion] IDEA-354763 IJ-CR-137494 Don't suggest protected/transient and so on the top file level
- skip `strictfp` according to language level
- more accurately determine position
- refactoring

GitOrigin-RevId: 2d660d7f4fd86bed089da62f4ca746c6f2348aec
2024-06-25 15:47:02 +00:00
Bas Leijdekkers
2fce834c88 Move registry key to Java plugin (IJ-CR-137130)
GitOrigin-RevId: eb6da35f1760cc93aebed16c46bdc48f08e97353
2024-06-24 19:20:28 +00:00
Bas Leijdekkers
a21e97104d Java: support GoToSuperMethod line marker in dumb mode (IDEA-352891)
GitOrigin-RevId: 7b311aebb90d2dd5eee357294a1f304962f7eafb
2024-06-24 19:20:28 +00:00
Mikhail Pyltsin
5c719214e3 IJ-CR-137428 [java-completion] IDEA-355252 Don't suggest deconstruction with incorrect name
- use JavaCodeStyleManager

GitOrigin-RevId: 140a4b58a6d0f12a14219bd3f48091d61d187b0c
2024-06-24 14:54:59 +00:00
Mikhail Pyltsin
c2c156d53a IJ-CR-137494 [java-completion] IDEA-354763 Don't suggest protected/transient and so on the top file level
- fix from `public` to `private`

GitOrigin-RevId: a89154832591e57c45bbe5d38d74e49b1e8bda25
2024-06-24 14:54:59 +00:00
Dmitry Yudin
2a61a4e3f6 Return addJdk in JdkWarmupProjectActivity
GitOrigin-RevId: 9882d235f0f9b7c3d8ad0aeaf591372cbe3f44b5
2024-06-24 14:01:36 +00:00
Aleksey Dobrynin
fc7386cc87 [java-intentions] fix: add dependencies in a write action IDEA-327659
GitOrigin-RevId: e672a266237f47106a128b971d8ddc86c262c198
2024-06-24 12:34:36 +00:00
Yuriy Artamonov
b333fe8ad9 [codevision] IJPL-156683 Simplify changing the default alignment of inlay hints in IDE
GitOrigin-RevId: e18312174ae63c4bfcf00941963628a748ade580
2024-06-21 22:13:16 +00:00
Bas Leijdekkers
4505ed6de8 Java: improve inspection description
GitOrigin-RevId: 544591aeaaa7b94d29339efe75e9cccc18818a86
2024-06-21 20:51:40 +00:00
Georgii Ustinov
41cf8f6fe3 [Java. Code Formatting] Add check to TypeAnnotationUtil that language level is at least 8
IDEA-353192

GitOrigin-RevId: e8d2d8270dbc1c39300d5a2d55ef993e433ccdbc
2024-06-21 15:13:57 +00:00
Mikhail Pyltsin
7fe1e933e6 [java-completion] IDEA-354763 Don't propose protected/transient and so on the top file level
GitOrigin-RevId: b8bdcc7329a0a26ef6260c56097c5994ee4e94b6
2024-06-21 15:13:08 +00:00
Mikhail Pyltsin
aec277cf21 IJ-CR-137428 [java-completion] IDEA-355252 Don't suggest deconstruction with incorrect name
- extend VariableNameGenerator

GitOrigin-RevId: b6c1455ff9e01ae898219410cba45a5c5c669703
2024-06-21 13:47:15 +00:00
Bas Leijdekkers
d1f0e0880a Update "Unused declaration" messages for increased clarity
GitOrigin-RevId: 8bb4dd31d51f3cc4fb63c36579bd3078f6f622f7
2024-06-21 09:13:05 +00:00
Anna Kozlova
d3eed00412 [kotlin] k2: implement type hierarchy which works without light classes
not implemented yet:
- java's functional expressions are missed from results
- annotations are not processed both in super and sub hierarchies

- updated presentation: replace `<root>` with an empty string for default package

KTIJ-28922

GitOrigin-RevId: abc1a53935f7deebe974c5e5144b6a1eb7ebda1f
2024-06-21 07:58:09 +00:00
Mikhail Pyltsin
73bbc5d00d [java-completion] IDEA-355252 Don't suggest deconstruction with incorrect name
GitOrigin-RevId: 9bdb1273f507054c479eaa86597eadaf4568a9dd
2024-06-20 17:53:33 +00:00
Alexander Kuznetsov
948d66738b [debugger] IDEA-348853 implement Java evaluator statistics
GitOrigin-RevId: d06e86bdcf53ab2190c055d82f39241559f8cfd6
2024-06-20 17:48:42 +00:00
Louis Vignier
0e6e24cb4e [javadoc] Remove always true instanceof check
IJ-CR-132677

GitOrigin-RevId: a37fd00f55fb612e68a49c0129c68047563f7b52
2024-06-20 17:46:18 +00:00
Louis Vignier
ab2b1e736f [javadoc] Infer explicit super in getInheritDocSymbol
IJ-CR-137121

GitOrigin-RevId: 1c7849ad0cabf91c0d7f80e1385aba346503fca8
2024-06-20 17:46:18 +00:00
Louis Vignier
467af6f301 [javadoc] Fix StackOverflowError on inheritDoc tag navigation
IJ-CR-137121

GitOrigin-RevId: f15c66a204c6eb81f43a533f81a54a627c0f041c
2024-06-20 17:46:18 +00:00
Tagir Valeev
ea54b23881 [java-inspections] DefaultNotLastCaseInSwitchInspection, ComparisonOfShortAndCharInspection: enabled by default
GitOrigin-RevId: 7f6abf59c7fbf9e167cb4696a689473ba4337e91
2024-06-20 16:25:34 +00:00
Vladislav Rassokhin
78e0059e89 [platform] move isIdeaProject to a dedicated class in intellij.platform.ide.core as it's widely used
GitOrigin-RevId: 73c43defd45327b2beb761cd3a2d027d04754d7c
2024-06-20 13:09:26 +00:00
Tagir Valeev
0b7995dbd1 [mod-command] ModTemplateBuilder: support end position; use in JavaWithCastSurrounder
GitOrigin-RevId: 1fa5adbd8cac92062303baec88441a4489138b90
2024-06-20 11:51:01 +00:00
Tagir Valeev
0c576e7a4d [java] SwitchStatementPostfixTemplate: ModCommand surrounder
GitOrigin-RevId: 8949927faaa1cc4592287671d0eb077ab6b3816f
2024-06-20 11:51:01 +00:00
Nikolay Chashnikov
a0f7130f41 [java] API cleanup: mark for removal API which was deprecated in 2023.3 or earlier (IJPL-503)
GitOrigin-RevId: 76cae6e709fa5b22f2eabd37fa2d2dbd99938998
2024-06-20 09:26:41 +00:00
Georgii Ustinov
1b99ec9f45 [Java. Code Formatting] Preserve allow KEEP_LINE_BREAKS for type parameter list in method
IDEA-353192

GitOrigin-RevId: f0a200b1a8060de8a5a05b05025ff335eed163dd
2024-06-19 17:37:28 +00:00
Tagir Valeev
cd0459d220 Pattern variable hides field warnings fixed
GitOrigin-RevId: ed5d717578bd3d765bd865ab27dd93521e2a7323
2024-06-18 19:55:23 +00:00
Tagir Valeev
440654c48f Pattern variable can be used fixes; other warning fixes
GitOrigin-RevId: 49f37e7f5d748be50ee66fdf66a5c9b98b1b7432
2024-06-18 19:55:23 +00:00
Tagir Valeev
3fd0f4975d Pattern variable can be used fixes; other warning fixes
GitOrigin-RevId: 4965216d1872b439970db33dbe2864d5aab9606e
2024-06-18 19:55:23 +00:00
Mikhail Pyltsin
70f1723530 [java] IDEA-355024 use explicit modifiers for formatting and for suggestion.
GitOrigin-RevId: 770b9a3d009fe5734d0732feeebde54d3566819c
2024-06-18 13:55:12 +00:00
Tagir Valeev
2fcef82733 [java] ComponentTypeOfMacro: fix lookup items
GitOrigin-RevId: 9f52fc318aa85456b6cf704b0301a0fcd8f7aa8f
2024-06-18 12:26:39 +00:00
Louis Vignier
c289726b57 [fus] Detect JDK vendor in JavaLanguageVersionsCollector
#IDEA-291470 Fixed

GitOrigin-RevId: bd07db9dfa6520b0c4ffaeec32eb4e864abdd3b1
2024-06-18 12:06:00 +00:00
Dmitry Yudin
2157456570 IJPL-156058 Use a sequence and better name check in JDK search in JdkWarmupProjectActivity
GitOrigin-RevId: 26f6b80ad2a57c9ba912a625d4cd46f9a930f2a2
2024-06-17 22:31:26 +00:00
Mikhail Pyltsin
e42c3ee1e4 IJ-MR-136429 [java-generation] IDEA-344399 generate annotation based on type_use option
- fix message
- fix comparator

GitOrigin-RevId: 842fbf9e29150159ae92a47eddb84eb9a8d7288a
2024-06-17 21:14:57 +00:00
Mikhail Pyltsin
9bf2727703 [java-generation] IJ-MR-136429 IDEA-344399 generate annotation based on type_use option
- fix non-standard-root-packages
- introduce project descriptors

GitOrigin-RevId: 41db7240e29fbfed81957df2d68e2de29c573ef2
2024-06-17 21:14:57 +00:00
Mikhail Pyltsin
2023228d8c [java-generation] IDEA-344399 generate annotation based on type_use option
- extracted new option
- reuse this option in MissortedModifiersInspection
- override uses this option too

GitOrigin-RevId: 39f3f72991240753c86c7f80df865728aa9743ad
2024-06-17 21:14:57 +00:00
Yuriy Artamonov
514a6af057 [fus] IJPL-149278 Report file schema usages correctly computing value in NBRA
GitOrigin-RevId: 2b8639e9ab2cda0cfadfff9e4140b97921a38ddf
2024-06-17 20:24:55 +00:00
Alexander Lobas
89d58ee436 IJPL-150231 Move icon mappings from json to icon generator
GitOrigin-RevId: 4d4576fc7eeb92ec43c36abec2d62d271b45d9a4
2024-06-15 23:19:46 +00:00
Dmitry Yudin
65b5af76bd IJPL-156058 Update JDK handling in warmup activity
This update refactors the JdkWarmupProjectActivity class, implementing a better check for existing JDKs. This change optimizes the way the class avoids creating unnecessary JDKs.

GitOrigin-RevId: 930a98cc6ed03bbbbbf2f79b5d5d6bfe262ad950
2024-06-15 22:56:55 +00:00