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
Tagir Valeev
4efbdf1fb5
[java-inspections] IDEA-300159 Redundant close(): Search closing statements in if statements
...
PR#2106
Reviewed-by: Tagir Valeev <tagir.valeev@jetbrains.com >
GitOrigin-RevId: 501e4fee7441bf38e1d0ad19f826d3a7b565920b
2022-08-19 10:55:36 +00:00
Bas Leijdekkers
790d7872ae
IPP: refer to methods including parentheses () in intention text
...
GitOrigin-RevId: 2578135cbf75767e296f6bc48db3b5a56aa6acd1
2022-08-18 20:56:33 +00:00
Tagir Valeev
04ec75869f
[java-analysis] IDEA-299693 'Infer Nullity' . Should not infer Nullable for null->fail parameters
...
GitOrigin-RevId: ae146b13ef72fe38c9e22ad2e397d1fa6feae943
2022-08-18 20:52:04 +00:00
Andrey.Cherkasov
8cfde5e798
[java-intentions] ConvertSwitchToIf: don't add explicit null check if the selector expression is not null
...
IDEA-300120
GitOrigin-RevId: d49fa3356b23ec87c8f493fc4cdacb0655e4b600
2022-08-18 20:46:01 +00:00
Andrey.Cherkasov
108dc80b56
[java-intentions] ConvertSwitchToIf: fix the intention according a switch throws NPE if the selector expression is null
...
IDEA-300120
GitOrigin-RevId: 5d77f98e7931e32a06cb3c54076978d317f78a98
2022-08-17 23:14:53 +00:00
Bas Leijdekkers
ae1825cb0a
java: surround with array quick-fix fixes
...
GitOrigin-RevId: 8c3e7bcf9d4423515c59b027eca3ca35b0a18ff1
2022-08-12 13:57:51 +00:00
Tagir Valeev
ed136d9dbf
[java-inspections] WrapExpressionFix: suggest Arrays.toString if expected type is string and actual is array
...
GitOrigin-RevId: 4c838da8dbb068de751bfb71ef98448bc475bf90
2022-08-12 09:31:22 +00:00
Tagir Valeev
a952ee5872
[intention-preview] CreateClassFromUsageFix: preview; tests for preview
...
GitOrigin-RevId: 2eb36ee066743ffcacf4fae2968ba9d6d9c8bcff
2022-08-12 09:31:04 +00:00
Fabrice Tiercelin
1c9de6b4cf
[java-inspections] IDEA-299573 Handle Optional.isEmpty() in "Non functional style Optional.isPresent() usage" inspection
...
PR#2100
Co-authored-by: Tagir Valeev <tagir.valeev@jetbrains.com >
GitOrigin-RevId: c0b8495f26bccf51c593deb6be927eb01c37d379
2022-08-10 18:04:05 +00:00
pyltsin-m
794497240b
[java-inspections] IDEA-298475 Redundant compareTo() call for java.time classes
...
GitOrigin-RevId: c7effac4c48448e5e9db6360f012cc13846df41d
2022-08-09 16:34:19 +00:00
Bart van Helvert
07e6ec4678
[java-inspections] IJ-CR-27871 Introduce local variable in preview
...
GitOrigin-RevId: 1d9b8d6e4acab1a48e99370cf8a296e84309d7f2
2022-08-09 11:36:04 +00:00
Tagir Valeev
b2f80bd4db
[java-highlighting] Better call type mismatch reporting
...
GitOrigin-RevId: d1ed820188361e9104709793d5e5f4965f4cfc8b
2022-08-08 14:49:54 +00:00
Tagir Valeev
f7aaa72829
[java-highlighting] Better actual type definition; fixes for some type mismatch in collectors
...
GitOrigin-RevId: 0f6206952feff0aef3d80ea0fa487e53a6d7dae8
2022-08-08 14:49:53 +00:00
Tagir Valeev
2271d25144
[java-highlighting] Better call type mismatch reporting
...
GitOrigin-RevId: a380998d882152ed0a9f020aa61d4828e8f4a6fa
2022-08-08 14:15:30 +00:00
Tagir Valeev
18aebd9415
[java-highlighting] Better actual type definition; fixes for some type mismatch in collectors
...
GitOrigin-RevId: 871b08cad495504075d4bfe618ec8f208c59b42f
2022-08-08 14:15:27 +00:00
Tagir Valeev
b41375447f
[java-highlighting] Better call type mismatch reporting
...
GitOrigin-RevId: 1f7240ef2cdad17d78aa0f691b1b5ce3108293b3
2022-08-08 14:00:00 +00:00
Tagir Valeev
a0bc3ee404
[java-highlighting] Better actual type definition; fixes for some type mismatch in collectors
...
GitOrigin-RevId: 3652f4511a067b86bc9138f492a2a88cded09de0
2022-08-08 13:59:57 +00:00
Alexey Kudravtsev
0c4fbaeaa2
remove unnecessary test data
...
GitOrigin-RevId: 8dfc0eca12d06026ff2f81bc70cd59edc4a3603e
2022-08-05 11:30:06 +00:00
Tagir Valeev
a500d6b7b3
[java-intentions] IDEA-299075 Better support for types with several type parameters
...
GitOrigin-RevId: 9f7d4d429ef9aca857e36b24990be23d664c255a
2022-08-04 18:10:45 +00:00
Tagir Valeev
41d70528b5
[java-intentions] IDEA-299327 'Merge filter chain' quick-fix produces uncompilable code when lambda contains return
...
GitOrigin-RevId: 1e8d17520a03629891549385727b62e0bd342500
2022-08-04 18:10:44 +00:00
Bart van Helvert
2a86552363
[java-inspections] Add quotes to annotations in inspection messages
...
GitOrigin-RevId: a2d102bb75c6f0f213cfe79928909f8501be6ca7
2022-08-04 13:39:06 +00:00
Tagir Valeev
41cbe227c2
[java-intentions] IDEA-299075 Additional fixes
...
1. Map to supertype if expected is a supertype for actual
2. Do not suggest the replacement when type parameter bounds are violated
GitOrigin-RevId: 7784f18fcdb7fdd9541e5c92a211808475f62054
2022-08-04 13:37:44 +00:00
Tagir Valeev
c99da54bb4
[java-intentions] IDEA-299075 More scenarios for parameter fixes
...
1. Surround with array initialization
2. Apply .toArray() conversion
3. Limited vararg support
4. Limited qualifier propagation
GitOrigin-RevId: f81f593502df317b555e816af20cdec2d04488fc
2022-08-03 15:00:24 +00:00
Tagir Valeev
47924b8886
[java-intentions] Better messages for wrap and adapt intentions
...
GitOrigin-RevId: f0a38046a71722f48f3ff1d59ea501259139237e
2022-08-03 12:19:14 +00:00
Alexey Kudravtsev
5145671442
split UnimplementInterfaceAction to two fixes with immutable text for clarity (boolean parameter considered harmful) and for stability
...
GitOrigin-RevId: 3942585b2071cb81733080dee122913cdac001f1
2022-08-03 08:34:18 +00:00
Tagir Valeev
0e76072ac4
[java-intentions] Do not show "Type migration" intention if it cannot do better than "Change variable type"
...
GitOrigin-RevId: 6a8c95e53e4c5c160ab1e97c63a2733397cccad1
2022-08-02 18:58:12 +00:00