Commit Graph
910 Commits
Author SHA1 Message Date
Nikita Iarychenko 5365eb173a OPENIDE fix some problems from static analyser
(cherry picked from commit 0f1d91d293)
(cherry picked from commit 49cd46e3b3)
2025-12-15 12:54:03 +04:00
Vladimir Krivosheev 67a6dac7f8 IJPL-209476 IJ-CR-146078 kotlinx-datetime-jvm, kotlinx-document-store-mvstore, kotlinx-html-jvm, kotlinx-serialization-protobuf, kotlinx-collections-immutable
GitOrigin-RevId: 058331a1e834d7780456f98d003afe56abfc36a0
2025-10-12 11:10:47 +00:00
Egor Ushakov 39060349fd IDEA-300723 the evaluate-dialog window should allow comments
GitOrigin-RevId: 6b9f44ba8e4fb4a450ba1ad4031c413e03d0573e
2025-10-08 19:07:51 +00:00
Tagir Valeev fb9db64967 [java-debugger] Fix for IDEA-370817 Evaluate Expression with a lambda and a comment at the top throws EvaluateException: Cannot find local variable 'EvaluationClass'
GitOrigin-RevId: d915e69afe155a13b0dbf61344308550ea01cd52
2025-10-08 16:21:30 +00:00
Tagir Valeev 29818f3ad2 [java-refactorings] ExtractLightMethodObjectHandler: fix warnings
GitOrigin-RevId: f709f0dd39044a9da338bef028e47fc145e7f7f2
2025-10-08 16:21:30 +00:00
Bas Leijdekkers cd8ada5c65 Java: add synthetic default constructor on resolve (IDEA-376799)
GitOrigin-RevId: 71d783efd5095b0995ac1788863c8a50de759f77
2025-10-07 18:33:10 +00:00
Vladimir Krivosheev 4b619431c2 IJ-MR-175479 IJ-CR-146078 IJPL-209476 fast-util
GitOrigin-RevId: 87af2a3aad6e264a9b332c20ff572ec735f741f2
2025-10-06 16:34:02 +00:00
Nikolay Chashnikov fa644d918a [java] API cleanup: remove unused deprecated API scheduled for removal (IJPL-190638)
GitOrigin-RevId: fbb17fdf9252bf4d0721ffcd0163ee1492b73964
2025-10-03 16:06:15 +00:00
Tagir Valeev ac74ac484e [java] IDEA-379795 Add hasAnnotations() to PsiAnnotationOwner, PsiModifierListOwner and TypeAnnotationProvider
GitOrigin-RevId: dbe2d9508f45fb5bbbff26c1ba81792f5120c690
2025-09-26 11:09:02 +00:00
Bas Leijdekkers 69f8ffade6 Java: allow safe delete of single variable in multi-declaration without splitting into separate declarations
GitOrigin-RevId: 73bc261b2e6dc88ca6148a8a6c5ff697efb9bd18
2025-09-19 17:27:37 +00:00
Bas Leijdekkers 99dc01d75a Java: annotate PsiExpressionListStatement.getExpressionList() as @NotNull
GitOrigin-RevId: 509212ab37f403b04109dc7535cc4a6e1fdf3478
2025-09-19 17:27:37 +00:00
Bas Leijdekkers e7b08f96b2 Java: cleanup
GitOrigin-RevId: ef7d29d20c20d702cb384b2deecf0ec80b6a0453
2025-09-19 17:27:37 +00:00
Tagir Valeev fbd13ff64c [java-psi] IDEA-377644 PsiImmediateClassType, PsiArrayType: reset nullability when annotations changed
Also: do not merge annotations during the substitution (unnecessary anymore after nullability is implemented and causes problems)
Some tests that rely on annotation merging during the substitution are removed/updated. The behavior was inconsistent anyway.

GitOrigin-RevId: c13e68616507bbb10cbe0384d122334879e166df
2025-09-18 15:04:14 +00:00
Tagir Valeev 865726ee14 [java] cleanup: use reversed iteration
GitOrigin-RevId: d06c8b96458e1f73308825669af589888ed67aef
2025-09-15 08:54:13 +00:00
Tagir Valeev 53489602f1 [java] cleanup: use getLast/getFirst/etc.
GitOrigin-RevId: e77d2952e8d83aedd00784a2b3290c6c92460717
2025-09-15 08:54:13 +00:00
Tagir Valeev 2bc43dfd13 [java] cleanup: try using enhanced switch instead of instanceof in Java plugin
GitOrigin-RevId: 10d311406ce7774656f85abb26f7854ae3f3abd7
2025-09-15 08:54:13 +00:00
Tagir Valeev 56f9ec5abb [multiple] cleanup: ClassFilter as a functional interface; convert anonymous classes to lambdas/method references
GitOrigin-RevId: e30b38c2fa0e3c59eee568e15a16fbf868e77cbf
2025-09-12 16:59:10 +00:00
Bas Leijdekkers d01c9a55cd Java: avoid too big jobs in "Method can be extracted" inspection (IDEA-375485)
GitOrigin-RevId: 1db15d34a09443dfb3c8104d153264492dfab9de
2025-09-11 19:36:32 +00:00
Georgii Ustinov b6f12b93d5 [Java. Code Completion] IDEA-373902 support command completion for the introduce variable and introduce method
[Java. Code Completion] IDEA-373902 support command completion for the introduce method

- Move JavaRefactoringIntentionCommandSkipper to the appropriate package

[Java. Code Completion] IDEA-373902 support command completion for the introduce method

- Expand the visibility for the non-standard-root-packages inside java-impl-refactorings module

[Java. Code Completion] IDEA-373902 support command completion for the introduce method

- Skip IntroduceLocalVariableIntentionAction by DirectIntentionCommandProvider

[Java. Code Completion] IDEA-373902 support command completion for the introduce method

[Java. Code Completion] IDEA-373902 support command completion for the introduce variable


Merge-request: IJ-MR-174437
Merged-by: Georgii Ustinov <georgii.ustinov@jetbrains.com>

GitOrigin-RevId: 81903f94135efa187ee5ffa26033a17bd238524a
2025-09-08 14:41:45 +00:00
Georgii Ustinov 84526c727c [Java. Intention Actions] IDEA-378080 Fix exception when renaming unnamed variables as lambda parameters
GitOrigin-RevId: 2e6173d4b11962c6197ff3216b68d11bcc1b7751
2025-08-28 18:20:53 +00:00
Aleksey Dobrynin 4b05d866cd [migration] fix binding of elements during migration updates KTIJ-35166
GitOrigin-RevId: 2288382ed4dc520ead347df52361a40fc864fec7
2025-08-28 16:26:57 +00:00
Bas Leijdekkers c44bcf0283 Java: make Inline parameter Flexible Constructor Bodies aware (IDEA-377621)
GitOrigin-RevId: ee720fecb1fb4c447188eab28090bc858d22119e
2025-08-19 09:09:25 +00:00
Bas Leijdekkers 40d25dbdc3 Java: fix typo in conflict message
GitOrigin-RevId: f8840f44131b57eee969db7c50dae5860f0dcf30
2025-08-19 09:09:25 +00:00
Bas Leijdekkers a927fa7653 Java: allow to extract vararg arguments into method (IDEA-310454)
GitOrigin-RevId: ea061b03905f994b46b0339d9157dc693f8fbd84
2025-08-15 12:17:38 +00:00
Bas Leijdekkers 907c281ca0 Java: cleanup
GitOrigin-RevId: ce39534ca3f26407aa918aef3157900a631109cd
2025-08-14 16:16:04 +00:00
Bas Leijdekkers d1654ab5dc Java: inline method parameter for vararg parameters (IDEA-243062)
GitOrigin-RevId: 776d18524b6ec5c4eeec7f7bd71c01b768370aca
2025-08-13 22:14:57 +00:00
Bas Leijdekkers 3780122878 Java: cleanup
GitOrigin-RevId: 922db0ea89cc111e2a9790f1623e372cfeb71a2c
2025-08-07 16:25:03 +00:00
Bas Leijdekkers 7d5bd541d5 Java: enable inlining on chaining vararg constructors (IDEA-376690, IDEA-376692)
GitOrigin-RevId: 2594b3ca241b7a4a0ca7e362482f5b606486f254
2025-08-07 16:25:03 +00:00
Anna Kozlova 09026724f9 [kotlin] port automatic test renamer to K2
^KTIJ-34922 fixed

GitOrigin-RevId: 104308e382e288cab999e15ded8d50375041e3a9
2025-08-04 11:06:41 +00:00
Tagir Valeev b9e7976d92 [java-refactoring] Handle sub-expression extracting when prefix contains another call
Fixes IDEA-375976 "Extract Method" from selected sub-expression starts editing the wrong place and produces uncompileable code

GitOrigin-RevId: 88b610c8376ff56882052c3a977a465a796cf1d0
2025-07-30 17:13:42 +00:00
Bas Leijdekkers 4358c0c90d Java: fix variable renaming when inlining method and variable name prefixes or suffixes are configured (IDEA-376160)
GitOrigin-RevId: 560f1bf1a24d8d6195934d0abbb0745c63cf68d7
2025-07-29 17:34:50 +00:00
Tagir Valeev 15510f839e [java-refactoring] Do not replace null-type with expression type when inlining the variable
Fixes IDEA-376103 Inline method returning 'null' into for-each iterable parameter makes code incompilable

GitOrigin-RevId: 6216652a66ebe3e12285803b4370405be5d5f353
2025-07-18 13:41:55 +00:00
Tagir Valeev ac013e30b2 [java] Make default annotations context-dependent
Default annotation is now defined from PSI context using an ordered list of nullable or notnull annotations. The first available annotation is selected.
For Spring Boot 3, default annotation is org.springframework.lang.NonNull/Nullable
For Spring Boot 4, default annotation is org.jspecify.annotations.NonNull/Nullable
Legacy settings with an unordered annotation list are converted to make them ordered
Non-context-specific default annotations are still used as a default for external and inferred annotation; also it's a fallback option in contexts where no annotation is available at all
ChangeNullableDefaultsFix is removed, as now it's unlikely to produce the desired result (and probably was not useful before as well)
Fixes IDEA-372145 Support for third-party nullability providers

GitOrigin-RevId: 31794eb024ba310ca35d4b3df33420d0bb344898
2025-07-17 15:56:29 +00:00
Tagir Valeev 4739aa77bd [java-refactoring] IDEA-375998 Remove GotIt-tooltips for 'extract method'
GitOrigin-RevId: 30715778265304d2e5ae94fd201cdbae522e51aa
2025-07-16 14:04:24 +00:00
Bas Leijdekkers 5454c0de4b Java: optimization to prevent long freezes during typing when big methods are present (IDEA-375485)
caused by "Method can be extracted" inspection

GitOrigin-RevId: c8778af2cd5d51fd62b61349029036e1d7ad0061
2025-07-15 18:39:09 +00:00
Wiz 385d7bb9f2 Replace usage of deprecated UIUtil methods
The replaced methods in question were getters and setters

GitOrigin-RevId: 80ed19c52dcd3a4ec58a653149b78477991bb591
2025-07-10 10:20:02 +00:00
Mikhail Pyltsin 5fc112fa77 [java-property-tests] IDEA-375027 incorrect var type when use var type is enabled
GitOrigin-RevId: a24859428c9fac54a2aa75eb0e82a2ac018114ce
2025-06-26 14:52:13 +00:00
Tagir Valeev e76c456f64 [java-refactoring] InlineLocalHandler: fixes after review of IDEA-371649
1. Exclude an option to rename the original variable if the type differs
2. Rename actions

GitOrigin-RevId: 2fd3bb261163cbd5b0d4af0f986e27250abb0956
2025-06-23 13:02:39 +00:00
Vladimir Krivosheev f821c646cd IJ-MR-162467 don't export intellij.platform.codeStyle
GitOrigin-RevId: e2c2af372d81e3e83dbf22d49381fea92e5e8a17
2025-06-19 20:15:58 +00:00
Vladimir Krivosheev 98173d2ad2 IJ-MR-162467 don't export intellij.platform.codeStyle
GitOrigin-RevId: cd1147b4b7dcb5ecfc054a45beed584409e35c98
2025-06-19 20:15:58 +00:00
Vladimir Krivosheev d2f308caa0 develar/extract-ide-conc
Created by Vladimir Krivosheev (Vladimir.Krivosheev) via Patronus

Merge-request: IJ-MR-166073
Merged-by: Vladimir Krivosheev <vladimir.krivosheev@jetbrains.com>

GitOrigin-RevId: 7b3d0f52e2621c6ca2c45aa8ed832724a7fd038a
2025-06-19 09:07:03 +00:00
Tagir Valeev a25fc4a7c1 [java-refactoring] Shorter message for collision popup
Improves IJPL-190894 A renaming warning is truncated in inline popup

GitOrigin-RevId: 9a596dac199cf536722fb2d394e8ca532e5cecf4
2025-06-18 11:43:56 +00:00
Vladimir Krivosheev a49e310575 IJ-MR-162467 don't export intellij.platform.lang.core
GitOrigin-RevId: dea0fc36382a29eda134dba69917d41c7b585cf2
2025-06-18 11:28:23 +00:00
Vladimir Krivosheev b935234c91 IJ-MR-162467 don't export intellij.platform.projectModel
GitOrigin-RevId: 11c0bf5ca0f3a6d892658a2b149d85cace9aa2b8
2025-06-14 13:00:48 +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
Vladimir Krivosheev 539d5197ad don't export intellij.platform.util.diff
GitOrigin-RevId: 2b25166fd986c0b897636a290a97f1b2927352ce
2025-06-09 21:02:56 +00:00
Vladimir Krivosheev 982fba0b33 IJ-MR-162467 don't export intellij.platform.concurrency
GitOrigin-RevId: 5cd5a6506d69bfd384f21fc5a79d1f12a172a074
2025-06-08 20:43:51 +00:00
joe a548b99409 Fix type parameters referenced by the bounds of other type parameters not being added in anonymous to inner intention.
#IDEA-373936 fixed

closes https://github.com/JetBrains/intellij-community/pull/3075


(cherry picked from commit fe3b036de7f23154be56f1116c58a0eef408c4dd)

IJ-MR-164968

GitOrigin-RevId: b1f78464d8129718f9d5a479a099c173a640d174
2025-06-05 15:52:04 +00:00
Vladimir Krivosheev 2d5aaf391b IJ-MR-162467 don't export intellij.xml.psi
GitOrigin-RevId: d4ca928b7dc468451c0047bd35f1f60c1199207a
2025-06-05 14:33:17 +00:00
Vladimir Krivosheev 65fe061584 IJ-MR-162467 don't export intellij.platform.analysis
GitOrigin-RevId: fcbcb68010b58cb507fee2c47473758b999e471b
2025-06-04 11:16:33 +00:00