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
0d890a82a0
[java] IDEA-354964 Migrate standard descriptors like JAVA_21 to TYPE_USE annotations
...
- revert changes in other modules
- delete obsolete comment
GitOrigin-RevId: 656c643184103d5e83409cbec47df1346f22cbd9
2024-06-27 10:17:54 +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
246f6ab1cc
[java] IDEA-354964 Migrate standard descriptors like JAVA_21 to TYPE_USE annotations
...
- fix NullableManager, when it can't find annotation in type
- fix nullability for `switch`
GitOrigin-RevId: c8a369f4ccf07297e520ec837b13cb9dbf49a67f
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
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
Mikhail Pyltsin
42968dfc2f
IJ-CR-137825 [java-typing] IDEA-354366 close braces after switch rule
...
- support multiline case rules
GitOrigin-RevId: 8c5dd5a3c4cb6b699c565ef39c2c29deacffc7e2
2024-06-26 14:34:55 +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
Mikhail Pyltsin
3b8b3f50f4
[java-typing] IDEA-354366 close braces after switch rule
...
GitOrigin-RevId: 057d759e922903ffca05c1ad6c405f4422e90d26
2024-06-25 19:07:29 +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
Tagir Valeev
15bb3eb9f4
[java-incomplete-model] Support declared but unresolved exceptions
...
GitOrigin-RevId: 2e493f1820ce2e676708e191c0ff0b72b4ecaa59
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
c93d4b68d2
[java-incomplete-model] Support unknown exceptions thrown from try block
...
GitOrigin-RevId: f968327e98f7f9804973c8ff9adf6366a5aec490
2024-06-25 13:54:11 +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
Tagir Valeev
e377c6f30c
[java-incomplete-model] Support concatenation with null-type expressions
...
GitOrigin-RevId: 19cdff4368ec690fb291f5eb25c381dbbba3cdd4
2024-06-25 09:23:05 +00:00
Tagir Valeev
7b5b0bd4e4
[java-incomplete-model] Support known constructors with unresolved components
...
GitOrigin-RevId: 12f529c3eae1abba306c6318f189d08c877f9aa7
2024-06-25 09:23:05 +00:00
Tagir Valeev
b6771f471e
[java-incomplete-model] Fix unresolved method call with qualifier and incomplete hierarchy
...
GitOrigin-RevId: 94881c672bb3c1a5c3ea9dde381c6223a4996fca
2024-06-25 09:23:05 +00:00
Tagir Valeev
acf8109a0f
[java-incomplete-model] Support 'var' declarations
...
GitOrigin-RevId: 1d35868639192661ad6d1f8bafbcbda188b547b2
2024-06-25 09:23:05 +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
Tagir Valeev
b038d3db65
[java-inspections] NullableStuffInspectionBase: fix record constructor support
...
GitOrigin-RevId: defcd306c9f5a32c027cbc2105ac3224878de452
2024-06-21 17:47:17 +00:00
Georgii Ustinov
bea3fefda2
[Java. Code Formatting] Restore caret in files for AnnotateMethodTest#testAfterDoNotAnnoI
...
IDEA-353192
GitOrigin-RevId: 5f930ffb06158c40e786cd948c8f8d0982e61814
2024-06-21 15:13:57 +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
Bas Leijdekkers
c4c6723e5a
Java: don't warn when fix is not possible (part of IDEA-306674)
...
for "Variable is assigned to itself" inspection
GitOrigin-RevId: e2b630232fcc34b3d441689193e4daf169920192
2024-06-21 09:13:06 +00:00
Bas Leijdekkers
d1f0e0880a
Update "Unused declaration" messages for increased clarity
...
GitOrigin-RevId: 8bb4dd31d51f3cc4fb63c36579bd3078f6f622f7
2024-06-21 09:13:05 +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
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
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