Andrey.Cherkasov
375b7b102f
[java-intentions] Implement quick-fix to create record from deconstruction pattern, if the identifier is unresolved
...
IDEA-303300
GitOrigin-RevId: f4cd752f81987885a72b5da8d898f875a5198dcb
2022-10-10 17:13:10 +00:00
Andrey.Cherkasov
2cd4777e8a
[java-intentions] Create type parameter is not available for record components
...
IDEA-291332
GitOrigin-RevId: 636d4212fe6eaea5d1269c85b83be710ee4b5869
2022-10-10 12:17:22 +00:00
Andrey.Cherkasov
0e1dd4d61b
[intention-preview] CreateRecordFromNewFix: start template and set up generic parameters
...
GitOrigin-RevId: e7fea4d4b8c11d584d53bdf9450d4a29cfb19f6b
2022-10-10 12:17:19 +00:00
Andrey.Cherkasov
e03e35185f
[intention-preview] CreateRecordFromNewFix: fix 'java.lang.Throwable'
...
GitOrigin-RevId: 43a4f857410fe1f6c2088f60725c65e34fd73c77
2022-10-10 12:17:16 +00:00
Roman Ivanov
c3164ace1a
[java] do not suggest to create type parameter in instanceof
...
IDEA-253901
GitOrigin-RevId: 0675634e1020633bb56d3bd110e2aca3ab794a9c
2022-10-07 11:09:53 +00:00
Roman Ivanov
86f798194c
[java] do not suggest type parameter patterns
...
IDEA-303299
GitOrigin-RevId: 45364631c438b20532fd13ed54ddc9f7125b7d56
2022-10-07 11:09:50 +00:00
Andrey.Cherkasov
40a07679bb
IDEA-303240 Resolve for parenthesized patterns
...
GitOrigin-RevId: 7e3cd33ea7abbe2acd8e7821a844df680e0c5a65
2022-10-06 16:21:48 +00:00
Andrey.Cherkasov
e3ef393494
[java-highlighting] Parenthesized patterns are present in Java 19 preview
...
IDEA-303229
GitOrigin-RevId: a195e7fd3657a94f1dbd4d7868b2508878448983
2022-10-06 16:21:45 +00:00
Tagir Valeev
d9193529e2
[java-inspections] MakeVarEffectivelyFinalFix: stream API fixer
...
GitOrigin-RevId: e6f1c6e2d80af6332bae642391ca4b6113aa12ed
2022-10-06 15:55:11 +00:00
Tagir Valeev
b95b63e818
[java-inspections] MakeVarEffectivelyFinalFix: move to separate package; allow more initializers
...
GitOrigin-RevId: 32c6fca2a43cbb9752056e1403ffc5ac3bba08b9
2022-10-06 15:55:07 +00:00
Andrey.Cherkasov
a9a92e5dca
[java-inspections] 'Remove pattern variable' fix is not available on unused record pattern variables in switch'es
...
IDEA-302981
GitOrigin-RevId: 7b350efb5bf6010efacd5330e7a6e526aa9acfae
2022-10-04 23:38:05 +00:00
Roman Ivanov
4ad8ad99d0
IDEA-302330: substitute type parameters into implicit types in record
...
GitOrigin-RevId: e145e50b6da66ac566ce7968c9568164174cca89
2022-10-04 10:58:43 +00:00
Andrey.Cherkasov
c66a135e25
[java-highlighting] "'switch' has both a total pattern and a default label": false positive
...
IDEA-302945
GitOrigin-RevId: c88e5071b36c3a132b4bf15c5c3710677bae8d5d
2022-10-03 11:02:14 +00:00
Andrey.Cherkasov
64f0fb3cee
[java-highlighting] Allow instanceof pattern on subtype since Java 19 (JEP 427)
...
IDEA-302944
GitOrigin-RevId: e4c44b0694ffb65d02f2415243d08f00a2dea74f
2022-10-03 11:02:13 +00:00
Andrey.Cherkasov
5e014911d3
[java-highlighting] Detect the "Cannot create array with '<>'" error
...
IDEA-302432
GitOrigin-RevId: ba0f9ed38fc7b2741852296180c10dab346840fc
2022-10-03 11:02:11 +00:00
Andrey.Cherkasov
e07cf816af
[java-highlighting] pattern of any type is not applicable at primitive types (JEP 427)
...
IDEA-302943
GitOrigin-RevId: a47bb507a501be23d03f84cb4891a66fec13fb0f
2022-10-03 11:02:10 +00:00
Andrey.Cherkasov
3a072cc6a2
[java-highlighting] Check if 'when' expression have type boolean or Boolean
...
GitOrigin-RevId: 81692debf6a10d70406065967ceaeebf6a2cc31d
2022-09-28 21:21:16 +00:00
filipp
e86a7e7cbb
IDEA-146675 Permute reverse selection
...
GitOrigin-RevId: 4208981b342550bc4db6b801ba8d91aba1322f32
2022-09-27 14:27:16 +00:00
Andrey.Cherkasov
6ace002822
Convert 'ReplaceCastWithVariableAction' to 'CastCanBeReplacedWithVariableInspection' and support pattern variables
...
IDEA-302310
GitOrigin-RevId: 2b364e79c3b2f43fe4729677491c3676ba39d493
2022-09-26 17:31:54 +00:00
Roman Ivanov
8e06661e69
[java] provide type from record components for implicit type in patterns
...
GitOrigin-RevId: 5d337a975a3b4121eda4ef61333832ec3dbc2674
2022-09-23 12:29:48 +00:00
Alexandr Suhinin
1f1eead389
IDEA-301787 [java-19 highlighting]: fix exhaustiveness for typed parameters
...
GitOrigin-RevId: a4c266bd37d1af63c9650e7ef402907f9c30b26e
2022-09-23 12:26:36 +00:00
Tagir Valeev
cf9be48742
[java-completion] Restore references in switch labels (IDEA-301950)
...
Likely, regression after IDEA-278622
GitOrigin-RevId: cc77068631608e388e95cb4f103b3d8155aa58e9
2022-09-21 10:52:20 +00:00
Tagir Valeev
c1e672960d
[java-inspections] UnwrapSwitchLabelFix: try to collapse after unwrap
...
GitOrigin-RevId: 21428eb3209594c00dc1d81c3d4cda3a7276e3fb
2022-09-20 09:26:47 +00:00
Tagir Valeev
073a1426b1
[java-completion] IDEA-300415 Smart enter should add lambda body
...
GitOrigin-RevId: ad58fe40fa08a263fc68c39d7f2fe0e6e7ef9938
2022-09-20 09:26:44 +00:00
Tagir Valeev
269d17c850
[java-completion] IDEA-302003 Complete statement keywords after switch rule arrow
...
GitOrigin-RevId: 2a9f1b3deb68145bbe4fbfa42e45432e6281a41d
2022-09-19 16:43:17 +00:00
Tagir Valeev
d3fffdcc31
[java-templates] Avoid braces when completing 'throw' in switch rule branch
...
GitOrigin-RevId: ef54453da96b8bf9f957cf40d9d6d162debab8ea
2022-09-18 11:09:32 +00:00
Tagir Valeev
cacf1099f9
[java-intentions] IDEA-229521 "Return outside of enclosing switch statement" should have a fix to replace 'return' with 'yield'
...
GitOrigin-RevId: e8cc607a3f5a30e9fac7ea69671062ac14dc2673
2022-09-12 18:28:50 +00:00
Alexey Kudravtsev
f3f0c00e42
more compilable version of thinlet
...
GitOrigin-RevId: bb2e131be9881e396eb707566619bae8a0d8d9b8
2022-09-12 14:58:22 +00:00
Tagir Valeev
24511394c3
[java-intentions] IDEA-301288 Suggest to make variable effectively final moving assignment to the branch without assignment
...
GitOrigin-RevId: c9953f2df87f2fa35ed97be97e48cd6240ee8fae
2022-09-09 15:06:38 +00:00
Tagir Valeev
6ffb7e417e
[java-dfa] Extract "Constant conditions" into separate "Constant values" inspection (IDEA-58235)
...
GitOrigin-RevId: 95a81fcd1546afec31afc2a044a9ba5fa1337411
2022-09-08 21:30:59 +00:00
Andrey.Cherkasov
bb71856ac0
[java-highlighting] It is a compile-time error if a when expression is a constant expression with the value 'false'
...
IDEA-301355
GitOrigin-RevId: a67f6921d44d0acf8c8bdf1d42927d7c8ff42e1e
2022-09-08 14:33:42 +00:00
Andrey.Cherkasov
1c11e442b0
[java-highlighting] Check if variable within pattern guard is effectively final
...
IDEA-301356
GitOrigin-RevId: 0b8146783be915b5a05a48801151bf64176e39d8
2022-09-08 14:33:39 +00:00
Anna Kozlova
c59dfcedab
intentions preview: create annotation method from usage
...
GitOrigin-RevId: 202cf795eba05296027ab41e034220a9c1a6b678
2022-09-07 13:34:14 +00:00
Tagir Valeev
98e7ca52f1
[java-inspections] IDEA-301083 "Replace lambda with method reference" doesn't work for constructor calls in nested Enum
...
Copied enum was created always at top-level. In fact, as we copy the whole file anyway, there's no need to do something additional with enum. Just find it in copy and return.
GitOrigin-RevId: d85c21acfc879c02be0ef85eff4264faf0c99ffb
2022-09-05 20:08:11 +00:00
Andrey.Cherkasov
600967c68e
[java-highlighting] Provide Split values of 'switch' branch quick-fix for "Illegal fall-through from/to a pattern" error
...
IDEA-273885
GitOrigin-RevId: 49ea03660bc8079eb93b76c2ace9264ae1c2cc7a
2022-09-01 09:52:26 +00:00
Alexandr Suhinin
67998a0600
[java error highlighting] fix: highlight illegal fall-through when default case exists
...
GitOrigin-RevId: 686b3613a6fdf05d7e4d9af5e94fe977653ed9bd
2022-09-01 09:46:20 +00:00
Andrey.Cherkasov
aeecaa845d
[java-highlighting] Fix 'com.intellij.util.IncorrectOperationException' for unresolved record patterns
...
IDEA-301036
GitOrigin-RevId: 476813a2f4f1f488087c21ce926850a19b504cfc
2022-08-31 23:05:37 +00:00
Andrey.Cherkasov
8857a2ee8c
[java-intentions] SimplifyBooleanExpressionFix: consider casting deconstructed parameters to specific subtype
...
IJ-CR-94735
IDEA-300018
GitOrigin-RevId: 5668e7cdb6c08fb415b7e729e8eed5029f1c8387
2022-08-31 18:19:24 +00:00
Alexandr Suhinin
5506746a24
IDEA-297405: don't check not applicable types for exhaustiveness
...
GitOrigin-RevId: 4a5f15a68805070c1d7609eb47ba5d7e9f57dcf6
2022-08-31 09:33:58 +00:00
Andrey.Cherkasov
8c63208047
[java-intentions] SplitFilterAction: add test for record patterns
...
IJ-CR-94735
GitOrigin-RevId: 81dd336174b6ebe4908a3df717ab2d8200c788ce
2022-08-30 15:47:22 +00:00
Bas Leijdekkers
3d5589bde2
IG: better messages and fixed highlighting for "Redundant 'String' operation" inspection
...
GitOrigin-RevId: f328b47c3c64b6f078f89fa04f0353ec34d57f24
2022-08-29 22:19:49 +00:00
Bas Leijdekkers
e7c55493a1
Java: fix IOE on replacing single character string operation
...
GitOrigin-RevId: 26ba697294eebb109148b86672a22e7aa2e921e4
2022-08-29 22:19:46 +00:00
Andrey.Cherkasov
f78c90027c
[java-inspections] StreamApiMigration: "Replace with collect" fix produces wrong code for record patterns
...
IDEA-300726
GitOrigin-RevId: 83c638a60f4dee0a363b285535e808140e853fae
2022-08-29 17:03:09 +00:00
Andrey.Cherkasov
1c7aea69ba
[java-inspections] 'Remove pattern variable' fix is available on deconstruction pattern component but produces red code
...
IDEA-298527
GitOrigin-RevId: 32645ea4938384d31bbe4750c3867e3b00f3fafe
2022-08-29 13:52:32 +00:00
Andrey.Cherkasov
3510811585
[java-inspections] 'Replace with a null check': add negative tests for record patterns
...
IDEA-300018
GitOrigin-RevId: 6e6ea72ddf6e62b06eba1daeebb23a5b477e58aa
2022-08-26 09:50:04 +00:00
Andrey.Cherkasov
1207deb772
[java-inspections] SimplifyBooleanExpressionFix: support record patterns
...
IDEA-300018
GitOrigin-RevId: 2f6d431cfb3baf2961ad560abdabd6fd373ef6b6
2022-08-25 18:48:55 +00:00
Alexandr Suhinin
db97df0ad1
IDEA-300124: highlight raw deconstruction patterns
...
GitOrigin-RevId: 8c5c34e21d9952a67b880868fe3ac600f058c582
2022-08-24 11:36:18 +00:00
Alexandr Suhinin
ddde6efcca
IDEA-300284: fix pattern resolve state for deconstructions
...
GitOrigin-RevId: e3d5598a857fd24d63a7e9a5b13d14c342ccd886
2022-08-24 11:06:27 +00:00
Bas Leijdekkers
9addc5eaf7
java: include parentheses () in text when referring to methods
...
GitOrigin-RevId: 1cfc8afb26b5db175d865f6bbdc752356040d8bb
2022-08-22 17:58:06 +00:00
Tagir Valeev
3ba76e26e3
[java] .new postfix template: support qualified references
...
Fixes IDEA-300278 'new' postfix doesn't work well for nested classes
GitOrigin-RevId: 3b0b7a2e378dcf386b1813d7ec8af247379d2736
2022-08-19 19:03:36 +00:00