Tagir Valeev
e02fbb2cfc
[java-analysis] IDEA-375444 Speedup retrieving package-level nullity annotations
...
(cherry picked from commit 7be077c9a1a6b7fade1833689567b5947e2c77de)
IJ-CR-168171
GitOrigin-RevId: 01c5b38d7e028585b94d1596c0de8c7c323a2fa3
2025-07-11 10:25:52 +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
Bas Leijdekkers
0fce756217
[refactorings] Migrate Safe delete to new conflicts dialog (IDEA-360408)
...
GitOrigin-RevId: 78b9aa6520ca3da432b4bcf15b55857cf9c519e9
2025-06-03 17:12:24 +00:00
Bas Leijdekkers
d5ca38c197
[extract method] allow to extract a lambda expression with an assignment inside (IDEA-347866)
...
GitOrigin-RevId: 4258330bf27d70e942dc84d53c62842ac682fba4
2025-06-02 16:18:16 +00:00
Bas Leijdekkers
a32457cc15
[extract method] more strictly disallow multiple output variables in a loop (IDEA-373582)
...
GitOrigin-RevId: 11da42235328984f999ffc678b1c66b74746d7a0
2025-05-29 14:05:37 +00:00
joe
b22ffdcf01
[IDEA-372959] Handle captured variables in chained constructor calls in AnonymousToInnerHandler
...
GitHub PR: https://github.com/JetBrains/intellij-community/pull/3052
#IDEA-372959 fixed
Merge-request: IJ-MR-164104
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
Co-authored-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: 6de9007dc34a8f09d6880f5c27a6db3db7094016
2025-05-27 08:03:46 +00:00
Egor Ushakov
7af2822d11
[debugger] fixed compiling evaluator cases with assignment return
...
GitOrigin-RevId: a3c2e127b2f240d2e0537be545ead539812d6517
2025-05-23 20:52:09 +00:00
joe
5f10f7a6a5
[java-refactorings] IDEA-372592 Fix anonymous to inner class conversion incorrectly converting already-qualified this expressions
...
#IDEA-372592 fixed
closes https://github.com/JetBrains/intellij-community/pull/3048
Merge-request: IJ-MR-162908
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: 0ad34047e08bde4a4689e992768832863036fca0
2025-05-14 11:47:46 +00:00
Bas Leijdekkers
6e41b23672
[extract method with object] show error when variables are used in loop (IDEA-356602)
...
GitOrigin-RevId: e84bcf1f1d03819ca4b5c12b91fad72baf82fc27
2025-05-13 17:43:07 +00:00
joe
fdef4f4a3e
[java-refactorings] IDEA-372415 Fix anonymous to inner refactoring not copying generics when non-static.
...
#IDEA-372415 fixed
closes https://github.com/JetBrains/intellij-community/pull/3045
Merge-request: IJ-MR-162638
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: b3c0b68d02d93813021c0e70191c894071f83453
2025-05-12 10:28:41 +00:00
Tagir Valeev
70c2d610cb
[java-refactoring] When inlining getter, prefer record accessor
...
Fixes IDEA-371138 Inline method: record field references are not always replaced with the default getter
GitOrigin-RevId: be9e49bedabc173394ba47920f6deca1ee89a89d
2025-05-07 11:53:21 +00:00
Bas Leijdekkers
bd66ff4f25
Java: fix safe delete invoked on a java file (IDEA-258214)
...
GitOrigin-RevId: a079978d5c2ab912b125a825c09819ef8aacdaea
2025-04-28 11:12:48 +00:00
Bas Leijdekkers
f93991ab92
Java: fix implicit class' use scope (IDEA-371297)
...
GitOrigin-RevId: 1165c265bbb527d6474b5c10888ad8c7a683706f
2025-04-28 11:12:48 +00:00
Egor Ushakov
9d59b5beda
IDEA-371371 Stream trace debugging doesn't work with records
...
GitOrigin-RevId: bbe83739e3db7cd0b7a4b8842b6e5c1cbb8d1f32
2025-04-24 00:27:05 +00:00
Tagir Valeev
87fcb4eece
[java-refactoring] IDEA-360690 Inline method: replace inaccessible field references with getters/setters when available
...
GitOrigin-RevId: 287af8db31ae356162add06e3564c4052025a026
2025-04-15 07:43:30 +00:00
Tagir Valeev
ab93bd6d65
[java-intentions] IDEA-370319 'Replace constructor with factory' fails on incomplete code
...
GitOrigin-RevId: 7f06233850dbbd58ba13a7ea67aca458ffd24658
2025-04-03 11:48:25 +00:00
Mikhail Pyltsin
6ed978ea82
[java-debugger] IDEA-367755 Stream trace debugging gives Internal Error in implicitly declared class
...
- set language level explicitly
GitOrigin-RevId: 01b844c4f0d812c4505491121429af3cc7df24c5
2025-04-01 16:21:48 +00:00
Georgii Ustinov
91d37684a1
[Java. Code Formatting] Extract leading and trailing empty lines before reformatting the javadoc
...
IDEA-361836
GitOrigin-RevId: 707bb0081905309266aec9cc74802fe6e6092063
2025-04-01 13:06:43 +00:00
Tagir Valeev
c7ad2cfd8d
[java-refactoring] IDEA-369011 Refactor -> introduce constant added NotNull annotation
...
GitOrigin-RevId: 485a0861caad52b591044e221dec0e44729b4c1e
2025-03-31 19:38:37 +00:00
Bas Leijdekkers
9d6f3cd20a
Java: don't suggest name starting with "get" when extract method from expression with void type (IDEA-293740)
...
GitOrigin-RevId: 9e685871187a33c9327835c466e83df4d9b55402
2025-03-20 18:24:49 +00:00
Bas Leijdekkers
35aab21776
Java: avoid IAE on Introduce Variable (IDEA-369326)
...
GitOrigin-RevId: 9fa79fc70578d8ff14bda2051341b6d22ece6677
2025-03-20 18:24:49 +00:00
Bas Leijdekkers
33d037c1fd
Java: disallow introduce variable in interface field initializers (IDEA-369318)
...
GitOrigin-RevId: 9581036bab179eb78d908aff92da0517ccaaa328
2025-03-20 18:24:49 +00:00
Bartek Pacia
ba2a6c09d7
[mod-command] improve IllegalArgumentException message when PSI element is not valid
...
The bug doesn't reproduce anymore, I don't know why exactly.
I added a test, added testing preview for all ReplaceConstructorWithFactoryTest tests, and a better message to the exception. I will monitor this situation.
related to #IDEA-368914
Merge-request: IJ-MR-157599
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: 4deefc4ece1f457aab8cbea2fa6f70fbb24ea90a
2025-03-13 16:49:50 +00:00
Bas Leijdekkers
a36f063456
Java: add test for renaming record component with non-physical accessor (IJ-CR-157393)
...
GitOrigin-RevId: e88f2f4fc950c169d932220c48148a82e4c5bd34
2025-03-13 10:50:04 +00:00
Tagir Valeev
99844b3f87
[java-refactoring] IDEA-368729 Refactor -> introduce field fails if the expression contains unresolved type
...
GitOrigin-RevId: 564e2f82913f777c5c9e0b760b27fc0a859ec430
2025-03-07 11:16:13 +00:00
Tagir Valeev
5aa8e16842
[java-refactoring] IDEA-368385 Refactor introduce field added NotNull annotation
...
Additionally fix when LVTI local is converted to a field
GitOrigin-RevId: 274f9c199b0299986f6e381a109ef55424f0c333
2025-03-07 11:16:13 +00:00
Bas Leijdekkers
eb03149e68
Java: don't break unrelated code in the same file when renaming record component (IDEA-367393)
...
GitOrigin-RevId: e262dd757e952cbd2a0cd6fba58f1448e96832b8
2025-03-06 10:26:37 +00:00
Tagir Valeev
a8ae2217c2
[java-refactoring] IDEA-368385 Refactor introduce field added NotNull annotation
...
GitOrigin-RevId: c695550e832b648d31097d85ee887358551e95ac
2025-03-03 18:40:14 +00:00
Bas Leijdekkers
53ded717a4
Java: fix incorrect "visibility conflict" detection when moving static method (IDEA-223533)
...
GitOrigin-RevId: 3137d113f9535fd7bd3595aa7bcfc67c763fae5d
2025-01-25 23:18:21 +00:00
Bas Leijdekkers
c482950f2e
Java: fix accessibility check when inlining superclass (IDEA-335158)
...
GitOrigin-RevId: ca48bfdfea8085fccedef9489b2c32ab82fcfcfb
2025-01-22 23:29:29 +00:00
Bas Leijdekkers
c64d343e65
Java: fix 'Inline to Anonymous class' doesn't work for class with inner class (IDEA-365779)
...
GitOrigin-RevId: 5d1b8577e541fed47fb9ba4e0d8c17affa8fbf5d
2025-01-22 12:03:57 +00:00
Bas Leijdekkers
59ddd99f7b
Java: keep @Override annotation on record accessor when Kotlin plugin is active
...
for Safe Delete refactoring
GitOrigin-RevId: 01e9b581bd83aaf805cd1952f0e5200cc5677f68
2025-01-17 18:10:29 +00:00
Bas Leijdekkers
052a9496b9
Java: Safe Delete should not make method private when it does not compile (IDEA-248028, IDEA-365766)
...
GitOrigin-RevId: 29071dfc72f3bb572d42b1d7f84e5aaa104323c0
2025-01-15 19:47:39 +00:00
Bas Leijdekkers
620c92a50a
Java: keep @Override annotation when renaming record accessor method (IDEA-365420)
...
GitOrigin-RevId: b7bdf5fd1aadcb4aaa396f866ff73bd5e5de0e3e
2025-01-15 16:20:06 +00:00
Bas Leijdekkers
275753dbec
Java: update records when inverting boolean (IDEA-357915)
...
GitOrigin-RevId: 3c05e0d1ce455cfb5c505a74a57caf25dde2cbe0
2025-01-07 10:05:14 +00:00
Mikhail Pyltsin
bd9dc78aae
[java-inspection] IDEA-311157 deleting component doesn't check usages
...
- fix recursive call with unconditional
GitOrigin-RevId: fb08111db21de7acb23ddef7368c1880da361e82
2024-12-02 23:20:02 +00:00
Mikhail Pyltsin
4b76fbce4f
[java-inspection] IDEA-311157 deleting component doesn't check usages
...
GitOrigin-RevId: 55ef9a7d7fa7b96a8f54e91801060b7c3d44dd65
2024-12-02 18:59:47 +00:00
Tagir Valeev
ff60a4753c
[java-refactoring] IDEA-360614 Replace with single implementation: no downcast when 'this' is used
...
GitOrigin-RevId: f2ea406a5cf229cf9e63b6c2b53b9d86f245a6d9
2024-11-26 09:06:06 +00:00
Bas Leijdekkers
953aac49b4
Java: don't remove method call when renaming method called on qualifier with null type (IDEA-363097)
...
GitOrigin-RevId: 249bd70002d9d0400fa06d2d127a1016e0e6d252
2024-11-13 18:31:47 +00:00
Tagir Valeev
731b66f737
[java-refactoring] isFirstUse: handle static method qualifier
...
Fixes IDEA-356148 Inlining method creates undesirable temporary variable
GitOrigin-RevId: 34091cb3a6c6388b2086d92e8cd4b206b9250202
2024-11-11 16:52:09 +00:00
Tagir Valeev
a762d39396
[java-refactoring] isFirstUse: take PsiAssignmentExpression into account
...
Fixes IDEA-361852 Java Inline Method refactor introduces intermediate variables
GitOrigin-RevId: 680fbb62f3440b7ae29f4de1793260fe5be0ab36
2024-11-11 16:52:09 +00:00
Bas Leijdekkers
f81e59d5d8
Java: correctly qualify method call when it is inlined from static interface method (IDEA-362625)
...
GitOrigin-RevId: 2f32664c77558fc4507a8a6ecc327f6c91b7d815
2024-11-08 13:42:36 +00:00
Tagir Valeev
447ff452ae
[java-refactoring] Inline method: support invert transformer in polyadic
...
GitOrigin-RevId: 516bb8355466a6f994c30692e1432353885d8b04
2024-10-24 16:36:51 +00:00
Tagir Valeev
f1473af5f4
[java-refactoring] IDEA-361117 Inline method does not collapse lambda expression back after single-line method inlining
...
GitOrigin-RevId: e54db7c5b175b264ac37c28a0cdab8ffd194c93f
2024-10-22 12:20:34 +00:00
Bas Leijdekkers
b4c155f5de
Java: allow importing a class when there is a variable/method with the exact same name (IDEA-216101)
...
GitOrigin-RevId: e4c5b86ce2f4910711e33581c58d271dadbf6970
2024-10-21 10:51:02 +00:00
Tagir Valeev
9f74153b21
[java-refactoring] CodeBlockSurrounder: avoid collapsing with unrelated if-statement
...
Fixes IDEA-360579 Inline Method creates uncompilable code
GitOrigin-RevId: cd73e3e730b8cef37f4a26235a2ab3db812f02ff
2024-10-18 10:13:21 +00:00
Bas Leijdekkers
905b338cc3
Java: ignore parentheses when checking write access in Inline Parameter
...
GitOrigin-RevId: 3807aa5f627febd0f44acab16f8145148945f5a3
2024-10-17 19:06:58 +00:00
Bas Leijdekkers
d9bb6a9b0b
Java: avoid incorrect warnings when Inlining Parameter (IDEA-345199)
...
GitOrigin-RevId: 489422cffc7aecacd07468009da620a5732ce5ba
2024-10-17 19:06:58 +00:00
Bas Leijdekkers
b9b2735045
Java: make Inline Object with Subsequent Call work for records with compact constructor (part of IDEA-255384)
...
GitOrigin-RevId: 497cb4f446c4ae6c90622e54898bfc105ba93bd6
2024-10-17 19:06:58 +00:00
Bas Leijdekkers
e6233a181d
Java: better check that parameter is still available after inlining (IDEA-308977)
...
GitOrigin-RevId: 4c9da5c574ed55e63dfef43d0d5dd655931533ee
2024-10-16 10:06:48 +00:00