Commit Graph

16427 Commits

Author SHA1 Message Date
Tagir Valeev
0a7c79a9b8 [java-intention] IDEA-355627 Insert semicolon action fails in injection
GitOrigin-RevId: b43046d97bb73f7fa17eedef5575271b7ddbf28f
2024-06-28 17:23:07 +00:00
Tagir Valeev
e35d04820c [java-refactoring] IJPL-157516 T: InlineUtil.inlineVariable
GitOrigin-RevId: 89f3781736ca0f67437538878c26174286657973
2024-06-28 17:23:07 +00:00
Bas Leijdekkers
db923128c6 Java: take care to avoid calling a different method when converting static method to instance method (IDEA-275602)
GitOrigin-RevId: 644b0312256a7cd2859f18ba261bfc83addfb672
2024-06-28 17:14:56 +00:00
Bas Leijdekkers
6916b6b005 Java: better error message when there are more arguments than parameters (IDEA-336129)
GitOrigin-RevId: a17a5f0f3878b9baf211737a614d1aa1a5103d31
2024-06-28 17:14:56 +00:00
Tagir Valeev
2909ce4932 [java-intentions] RemoveAllUnusedImportsFix: support static imports; tests
Fixes IDEA-353352 "Remove unused imports" does nothing for static imports

GitOrigin-RevId: ae20983342012414568af9ca68db67994832443c
2024-06-28 11:03:18 +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
edec77df83 [mod-commands] ModOpenUrl command
GitOrigin-RevId: 164a69f1d570e08a8e7af108c24e6c3f312f405e
2024-06-27 18:57:13 +00:00
Mikhail Pyltsin
092062f856 [java] IDEA-354964 Migrate standard descriptors like JAVA_21 to TYPE_USE annotations
- extract tests, which require old annotations
- return old name to method to add annotations

GitOrigin-RevId: c559cea10f942f72d5a19176d3ee808d46ad5dd2
2024-06-27 13:29:33 +00:00
Tagir Valeev
e9c60004b1 [java-inspections] Result of call ignored: Avoid false-positives in fragments (like debugger evaluation)
Fixes IDEA-355461 "Result is ignored" inspection triggered in evaluate and log

GitOrigin-RevId: e3870ff2b90d9297896caceb3b566098ee324c6d
2024-06-27 11:21:13 +00:00
Tagir Valeev
2f10b5f14d [mod-commands] IJPL-157211 Support creation of binary files via ModCommand
GitOrigin-RevId: abebbf301426d4d66abeadc4b72afa8dfd041f0e
2024-06-27 11:21:13 +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
f3c3d74a8e [java, jigsaw] fix: flaky test. the test needs a read action IDEA-353200
GitOrigin-RevId: 4ebdc4ef92b9a1c317a0480533ced694a9714d05
2024-06-26 16:22:25 +00:00
Alex Plate
8b228031a3 [Workspace Model] Refresh code by getting rid of the deprecated test function
GitOrigin-RevId: 67a80f51df0af4f081b0fd58d87f6cef1c306b08
2024-06-26 12:37:27 +00:00
Tagir Valeev
1ddafbe011 [java-refactoring] IDEA-354116 Make Static refactoring erroneously qualifies calls inside the anonymous inheritor of the outer class
GitOrigin-RevId: 732a36ab1c1577909e66175ac94efc4597121fe0
2024-06-26 11:52:02 +00:00
Vladimir Krivosheev
e82400eb49 IJPL-155974 cleanup
GitOrigin-RevId: bd620ecf4a6ded0e385353723bb80b3941280a65
2024-06-26 08:01:10 +00:00
Vladimir Krivosheev
314683bdb4 IJPL-155974 cleanup
GitOrigin-RevId: 82f959e3edca705548b4e1c22eafc4cf1efa0aa5
2024-06-25 18:42:48 +00:00
Tagir Valeev
2c31e99a77 [java-inspections] Use latest mockJDK instead of mocking individual classes
GitOrigin-RevId: 5bdde04b83f4a66e373724bc40ea5d129467bf25
2024-06-25 16:42:40 +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
Tagir Valeev
838cf2d73c [java-incomplete-model] Assume that any unresolved class-type is assignable to java.lang.Object
Partially improves inference in incomplete mode

GitOrigin-RevId: 1d9c7c75afd524ea02980be8f96c19fba1eaaf54
2024-06-25 13:54:11 +00:00
Louis Vignier
46881c21ab [javadoc] Add tests for inheritDoc tag navigation
GitOrigin-RevId: 8027c88e263bbcd2c2cc4f17eba3cf68871d715e
2024-06-22 21:42:51 +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
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
Tagir Valeev
e573732e7c [java-inspections] Extract method recommender: do not include initial comment into the length
Fixes IDEA-354492 "Method can be extracted" includes comments as minimum code length

GitOrigin-RevId: 3d4e34e6726f7917fe3b0224653b89f07cd2ae42
2024-06-21 13:49:43 +00:00
Tagir Valeev
3b45af56a7 [java-dfa] IDEA-354336 Java DFA fails to report nullable var passed to notnull arg after instanceof
GitOrigin-RevId: 2fada677a054fbd049e12e9b585a5f08711a5b26
2024-06-21 13:49:37 +00:00
Dmitry Avdeev
6f5ebf0d46 [workspace] convert to plugin
GitOrigin-RevId: c1682d99eeb8526db7176deade6dbcc97bfbfe8e
2024-06-21 10:53:45 +00:00
Roman Shevchenko
36367cddfe [tests] fixing inspection warnings in Src*RepositoryUseTest
GitOrigin-RevId: 94ad0e92db595aae799ae7184e6769e138b612e1
2024-06-21 10:51:45 +00:00
Bas Leijdekkers
774c6c6d42 Java: fix "Variable assigned to itself" inspection quick-fix operator assignment bug (IDEA-306674)
GitOrigin-RevId: 92f5ab3b782cd0a2e6af8f83ff80de64f000c3bf
2024-06-21 09:13:06 +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
Mikhail Pyltsin
fc86f137ca [java-inspections] EA-1288620 record deconstruction can be broken in inspections
- check that record deconstructions have correct numbers of components
- optimize `unwrapSealedTypes` a bit

GitOrigin-RevId: 167dabb1a5e6dd156e8d5772373c6f059e209257
2024-06-20 17:53:33 +00:00
Louis Vignier
70cc5359e6 [javadoc] Add a F-bound type parameter test for JavaDocInfoGenerator
IJ-CR-132677

GitOrigin-RevId: cac811c8e5d74358a45a362ac12fc0a1046077e2
2024-06-20 17:46:18 +00:00
Alexandr Suhinin
ac42764da7 [extract method] IDEA-262123: return default variable value on unconditional exits
GitOrigin-RevId: eaf46751769ecddd3711de96c48b62f209878b27
2024-06-20 16:21:05 +00:00
Tagir Valeev
0c576e7a4d [java] SwitchStatementPostfixTemplate: ModCommand surrounder
GitOrigin-RevId: 8949927faaa1cc4592287671d0eb077ab6b3816f
2024-06-20 11:51:01 +00:00
Georgii Ustinov
581dfa8bd3 [Java. Code Formatting] Add test for preserving line breaks in TypeAnnotationFormatterTest
IDEA-353192

GitOrigin-RevId: a57c5ed2713711663acbab2560ed150645309609
2024-06-19 17:37:28 +00:00
Georgii Ustinov
009e515c58 [Java. Code Formatting] Disable KEEP_LINE_BREAKS by default in TypeAnnotationFormatterTest
IDEA-353192

GitOrigin-RevId: cdefb444214d19fcfa762e2ab00fb0e236882d14
2024-06-19 17:37:28 +00:00
Alexandr Suhinin
0baf44b97e [extract method] IDEA-354122: make static should pass local variables as method parameters
GitOrigin-RevId: e1c14880358479e7c6b151f0ece7ab6cdd8ac87e
2024-06-19 15:37:48 +00:00
Tagir Valeev
6acadcb4f0 [java-inspections] IDEA-355111 "Parameter annotated @Nonnull should not receive 'null' as an argument" can support records
GitOrigin-RevId: a3f557fe842cc7c57cdae150d87f474eab07315e
2024-06-19 15:08:14 +00:00
Tagir Valeev
f3a9cdfdab [java-psi] Static interface method accessible through inheritance should not shadow static import
Fixes IDEA-355152 Good code red when static import collides with static interface method from the hierarchy

GitOrigin-RevId: f6f68cc372928d98bb1f66f2c3ddfaaf63d69702
2024-06-19 15:08:14 +00:00
Tagir Valeev
df1679571e Some 'Result of method call ignored' warnings fixed or suppressed
GitOrigin-RevId: 757e7bc0b1d7cb7cbf4a13c35e4f5c1fc375e0a4
2024-06-18 20:08:54 +00:00
Bas Leijdekkers
b0b4e53ad2 Java: strip trailing whitespace from text-block string template end correctly (IDEA-354777)
GitOrigin-RevId: fa0266faeeaf63b04451b4f068550e22e2cdf8ee
2024-06-18 19:20:03 +00:00
Bas Leijdekkers
19bcdae73f Java: quick fix should insert empty string when need to convert expression to string concatenation (IJ-CR-136837)
GitOrigin-RevId: aab43eb95b7bd05f70d1b187f2b0619a437bc21e
2024-06-18 19:20:03 +00:00
Louis Vignier
38c8e76b7d [refactoring] Migrate change signature gutter icon tests to inlay provider tests
#IJPL-10790

GitOrigin-RevId: c55dfc9d42dc0e1c14239c92b4dfca94a8005bc2
2024-06-18 12:06:00 +00:00
Alexandr Trushev
1e4e505e16 IJPL-797 intellij.platform.editor review internal API
GitOrigin-RevId: 514591f43e57749b752d8399d08b2cfd79fb34ea
2024-06-17 22:06:02 +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
Tagir Valeev
20c7b3400a [java-refactoring] MoveInstanceMethod: moving abstract method to interface should not change the 'default' modifier
GitOrigin-RevId: db6aca91eed8c0d7bebe6bb86dd398a3a372bfab
2024-06-17 13:22:21 +00:00