Bas Leijdekkers
b5a53393ed
Java: fix bad code is green problem (IDEA-366474)
...
"cannot reference super before superclass constructor is called"
(cherry picked from commit a2eeb5211fed697bc99ec9620bca4493c5a7adae)
GitOrigin-RevId: 6c404d216a804825e70d5c37866e3055dc8c5443
2025-02-13 14:23:53 +00:00
Bas Leijdekkers
3746633993
Java: match javac from jdk 24 in error highlighting for Flexible Constructor Bodies - JEP 492 (IDEA-364189)
...
(cherry picked from commit 686bd65963483f93acd22ae8956681f889105409)
GitOrigin-RevId: b8c02f835e7173b68aa39aee57e4a8c590608482
2025-02-13 14:23:53 +00:00
Bas Leijdekkers
8e0d1b142f
Java: fix error message (IDEA-364189)
...
(cherry picked from commit 6ddc29ca9af9523ac8597bc00b920b872a4250b6)
GitOrigin-RevId: 4ae3e61c614cde608f4593ec7fa758b2ed6c1a5d
2025-02-13 14:23:52 +00:00
Mikhail Pyltsin
b3f8bbb608
[java-highlighting] IDEA-365996 Constructor in an implicitly declared class is not highlighted as error
...
(cherry picked from commit 2de45c452608cea2ab314511060ac733259a8c18)
GitOrigin-RevId: daed31a96a3fb96a6cbed183443ed90205b679f3
2025-02-13 14:23:52 +00:00
Mikhail Pyltsin
aea70bba3b
[java-highlighting] IDEA-363617 Support JEP 494: Module Import Declarations (Second Preview)
...
- support shadowing module imports by package-on-demand
(cherry picked from commit 643fc10bcbfee2f1d41ec02e624b30bc3a48e4bb)
GitOrigin-RevId: d1e49b2d48f0b69f8e15393cb823e5529f9b4452
2025-02-13 14:23:52 +00:00
Tagir Valeev
a35bbc7c9c
[java-inspections] Preview feature warning: limit highlighting to method name
...
Fixes IDEA-362013 Stream.of should not be highlighted because it's not a preview feature
(cherry picked from commit 0818188d2e5ae25916c0433dfe976c808eebf869)
IJ-CR-151174
GitOrigin-RevId: c81154ec031a4da1ef432831628fe93537ce599b
2024-12-13 10:37:17 +00:00
Tagir Valeev
071179ffed
[java-intentions] IDEA-363624 Create Class generates invalid and redundant annotation @NotNull @NotNull for constructor parameter
...
(cherry picked from commit 9c3c9c55517369e6715c65a9696c287514261a10)
IJ-CR-151031
GitOrigin-RevId: 8306c8925395abd7dcee24de847335e4e9b1f535
2024-12-09 10:58:58 +00:00
Tagir Valeev
d2d87a71f3
[java-intentions] IDEA-363734 "Make Xxx impelent Yyy" quick fix inserts @NotNull
...
(cherry picked from commit 4e9a3f94cf1aedadd0b2c4699e168ccb3be0e405)
IJ-CR-150708
GitOrigin-RevId: ced9d4595e513387ebf996bf8dd0894877ef0f3e
2024-12-05 01:08:15 +00:00
Tagir Valeev
32684d7e9f
[java-intentions] Create method from usage should skip external type annotation
...
Fixes (finally) IDEA-360115 Create method from List.of results in long jetbrains NotNull annotation
(cherry picked from commit 8e1657ad1d3af686e50c048eea1f7c439ec7365b)
IJ-CR-149633
GitOrigin-RevId: 1c86e8a1b9b0d5902f095ca7393bef8e2dea66d9
2024-11-19 14:11:05 +00:00
Bas Leijdekkers
dfae4a26c2
Java: "Generate overloaded constructor with default parameter values" for records (IDEA-360071)
...
GitOrigin-RevId: a20fd5478241de404df3243f1b8b9a7d1a73829e
2024-10-02 20:13:41 +00:00
Bas Leijdekkers
95ed423db6
Java: don't create final fields from parameters when this does not compile (IDEA-359981)
...
GitOrigin-RevId: 3a85c9310c8928cf65459ae1ff1825fabf31ec03
2024-10-02 20:13:41 +00:00
Bas Leijdekkers
14096f0f03
java: don't create final field from parameter when this does not compile (IDEA-359980)
...
GitOrigin-RevId: d7ce31fbb607a409afa0e2b988eed424440cc336
2024-10-02 20:13:41 +00:00
Tagir Valeev
3ec30c1c1b
[java-highlighting] IDEA-359187 LVTI: 'lambda expression requires an explicit target type' not highlighted as error when in parenthesis
...
GitOrigin-RevId: 248072c38aeaf7f05b088c04bc435ecd0e940dd8
2024-10-02 14:26:44 +00:00
Tagir Valeev
5905b6f62a
[java-inspections] TrivialFunctionalExpressionUsageInspection: more accurate side-effect handling
...
IDEA-355026 "Trivial usage of functional expression" breaks semantics if one argument updates the variable used in another
GitOrigin-RevId: e3d9374ecc427d62cee0d821473e9119ae240fc5
2024-10-01 14:50:18 +00:00
Mikhail Pyltsin
f474d8047b
IJ-CR-145218 [java-inspections] IDEA-201932 Provide inspection to highlight redundant creation operations in java date time api
...
- combine into one inspection
- fix messages
GitOrigin-RevId: d4e064948f8c730c4d68c58e6c9b1277c6b66b4d
2024-09-27 17:12:29 +00:00
Bart van Helvert
690f1167ff
[java] Don't suggest generating broken overload constructors
...
In implicit and anonymous classes, constructors can't be declared. #IDEA-359731 Fixed
GitOrigin-RevId: 76e978d04052dffd955bfac6c1016fa707201b29
2024-09-27 16:07:34 +00:00
Mikhail Pyltsin
bff9894b8b
[java-highlighting] IDEA-359527 Class 'MyRecord' must implement abstract method 'value()' in 'MyInterface' in implicit class
...
- incorrect accessibility in implicit records with light members
GitOrigin-RevId: f55453f1c212d785e7b5fde78c4e0fbc4870ce86
2024-09-25 09:24:37 +00:00
Tagir Valeev
be4f6cd282
[java-inspections] Redundant keySet()/values(): support entrySet(); avoid warning inside Map implementations (IDEA-346005)
...
GitOrigin-RevId: ebf925ab3ff7c1357248a65201fe654aada0f4e8
2024-09-19 19:06:26 +00:00
Tagir Valeev
ac0c57748b
[java-inspections] IDEA-346005 Add new inspection: Unnecessary keySet() call
...
GitOrigin-RevId: d1f1db0ae939017a8550b91cd8742dc222a8db99
2024-09-17 07:28:39 +00:00
Yuriy Artamonov
47f1c44a90
[java] IJPL-158521 Actions: fix ellipsis in messages for Java actions
...
GitOrigin-RevId: bfce0d6efa8747660c4b9af3d8defbfa47e4509a
2024-09-15 14:50:09 +00:00
Bas Leijdekkers
5c06f74975
Java: don't report non-private field as assigned not accessed when it is implicitly read and written (IDEA-357404)
...
GitOrigin-RevId: 943ef6961c19510e5d4291367293424a87499487
2024-09-13 16:40:26 +00:00
Tagir Valeev
8ed70be46d
[java-inspections] IDEA-359031 Preview API use warning: ignore imports
...
GitOrigin-RevId: d9ba762be3f03f60372a70471f4c04efc26a9a66
2024-09-11 12:08:36 +00:00
Tagir Valeev
9092a09789
[java-intentions] BindFieldsFromParameters: disable for existing field if static or type doesn't match
...
GitOrigin-RevId: ad1d93533626f5e76a3f53c5ab25b06a5aa07f1e
2024-09-10 23:44:56 +00:00
Tagir Valeev
0f2865b919
[java-intentions] DefineParamsDefaultValueAction: better check of possible signature conflicts
...
GitOrigin-RevId: 5eb26ee62852e2e5e6188e740b807c775ded0277
2024-09-10 23:44:55 +00:00
Tagir Valeev
cf460af83e
[java-inspections] IDEA-358770 Stream/Optional desugaring: support Predicate.not
...
GitOrigin-RevId: af9cdb5e674406bbbe94a746e85a662a590a4d3d
2024-09-05 12:54:57 +00:00
Bas Leijdekkers
f198a23cdf
Java: don't evaluate enum constants as constants expressions
...
GitOrigin-RevId: c5d703ce78b569a3bdab9e8e9dcc2e95bdadd07f
2024-08-29 19:03:09 +00:00
Bas Leijdekkers
ed81723f17
Java: don't evaluate constant for incomplete expressions
...
GitOrigin-RevId: 15542db6b8631edbc96bd7ea9cc2b1a975fcbcbb
2024-08-29 19:03:09 +00:00
Tagir Valeev
59325634ab
[java-inspections] IDEA-356832 Inspections ignore redundant Class::cast method call
...
GitOrigin-RevId: 390a19d69020bc91f1395e6c4d23f14992ca396b
2024-08-28 17:54:26 +00:00
Georgii Ustinov
940f66f53d
[Java. Inspections] Add tests for not showing popup for add exception to method signature
...
IDEA-358300
GitOrigin-RevId: a7b8c716d772ae5ca631037ebb923bb796946af9
2024-08-27 10:05:40 +00:00
Bas Leijdekkers
18cb209fa7
Java: add cast to single branch of conditional expression when possible (IDEA-358278)
...
GitOrigin-RevId: 8f3137172d8a1526da2228e3c9ed911f9805c16c
2024-08-26 18:38:16 +00:00
Bas Leijdekkers
83bba063e7
Java: improve message for cast fix
...
GitOrigin-RevId: 40cd180ca8fdae46a3ea0216ec7b08e82ca22364
2024-08-26 18:38:16 +00:00
Mathias Boulay
d56883b763
fix(JavaDoc): formatter, inspections
...
GitOrigin-RevId: 77686401cbf38ea31e93311a608bac7472ccc73c
2024-08-26 10:42:10 +00:00
Mikhail Pyltsin
e01d24d5c8
[java-highlighting] IDEA-357866 Spurious "Different case kinds used in the switch" error on incomplete code
...
- fixes
- not double error messages
GitOrigin-RevId: 8f789243ee4e09d3eb8de6a2db7dcbe25ee517db
2024-08-22 16:03:56 +00:00
Mikhail Pyltsin
cd14483af8
[java-highlighting] IDEA-357866 Spurious "Different case kinds used in the switch" error on incomplete code
...
- improve error message
GitOrigin-RevId: 2a8da472e07dd10bdb0ae75e679b6056ab884b72
2024-08-22 16:03:56 +00:00
Bas Leijdekkers
1a5e213e96
Java: "Suppress for <x>" fix should not make code uncompilable (IDEA-358115)
...
GitOrigin-RevId: 754d0bac805a0e9d56489c63e5486d6e7e15a4db
2024-08-22 15:27:14 +00:00
Mikhail Pyltsin
e39d914c56
[java-highlighting] IDEA-357868 Better error message for primitive types in instanceof
...
GitOrigin-RevId: bb638cf01ec27474d89859c27c5410add6be5931
2024-08-22 09:22:53 +00:00
Bas Leijdekkers
bd7f1f4270
Java: proper order of 'true' and 'false' in quick-fix name (IDEA-357973)
...
also fixes internationalization and the incorrect comma in the name
for "Create missing switch branches" quick-fix
GitOrigin-RevId: 16285e054447d8d15318df8889499bbbf91243a7
2024-08-21 09:12:08 +00:00
Mikhail Pyltsin
cb37003541
[java-inspections] IDEA-357323 Propose case null during adding all cases
...
GitOrigin-RevId: 6d7ffccc28d64ed0f52db0235c41796d1d81284e
2024-08-09 11:00:42 +00:00
Bas Leijdekkers
4426c2fc85
Java: create field from parameter with method type parameter type correctly (IDEA-357162)
...
GitOrigin-RevId: 3a9947fa58b394f0e0b5377fbe75702f3d4b8f6a
2024-08-06 10:48:28 +00:00
Bas Leijdekkers
24aaef624d
Java: fix false positive on reference to enum constant (IDEA-357156)
...
GitOrigin-RevId: 7c833e46823ab41c9bdf275308ccee226d7e1a5f
2024-08-06 10:48:28 +00:00
Mikhail Pyltsin
ccf2a6bae5
[java-inspections] IDEA-356982 PsiImplicitClass is created for certain invalid code and renders the whole file gray
...
- skip implicit classes in unused analysis
GitOrigin-RevId: 6eb880108723b3623b0cc449d76f9f87942fc8b7
2024-08-01 16:00:34 +00:00
Bas Leijdekkers
a35a9f91ba
Java: improve error highlighting for unknown annotation method
...
GitOrigin-RevId: 6fdb6e2f397280cf4795cbd09ddcc1461a5897ff
2024-07-30 22:37:25 +00:00
Bas Leijdekkers
1bdb332af2
Java: better error recovery on annotation parsing (IDEA-209573)
...
GitOrigin-RevId: a600121ecbd9fa6338237f0d3802486c7f8a5656
2024-07-30 22:37:25 +00:00
Tagir Valeev
1fe9c2e631
[java-intentions] Do not suggest to add a cast to new expression (except) upcast
...
Part of IDEA-356767
GitOrigin-RevId: e9f9e6c1a46ade85c14f20811444299e8aff0c17
2024-07-26 10:51:23 +00:00
Bas Leijdekkers
7f47f19875
Java: support for JEP 382: Flexible constructor bodies (IDEA-355054)
...
GitOrigin-RevId: f6146f9e06b0f618f1512b7b864532e126d7beda
2024-07-19 20:23:55 +00:00
Bas Leijdekkers
5b1dbe4383
Java: fix and improve error message (IDEA-356573)
...
GitOrigin-RevId: 0b3ff17ed8d439ff99ce1e2294a6fac2dcb83770
2024-07-19 20:23:55 +00:00
Bas Leijdekkers
291bb89726
Java:Highlight "Recursive constructor invocation" error on the constructor call (IDEA-356563)
...
GitOrigin-RevId: ec04cb0aa5b234ea9814d78400c83fa70e6bd29b
2024-07-19 20:23:55 +00:00
Mikhail Pyltsin
b0c458cfac
[java-highlighting] IJ-CR-140387 IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
...
- support constants, fix test
GitOrigin-RevId: 9f00f2d2a896af54e15e1ea72d35a473fddf18b8
2024-07-19 19:51:57 +00:00
Mikhail Pyltsin
01b39de56a
[java-highlighting] IJ-CR-140387 IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
...
- support constants
GitOrigin-RevId: ff51020da5086de2e59439647588e8b5c4ba4c85
2024-07-19 11:56:23 +00:00
Mikhail Pyltsin
0b30038602
[java-highlighting] IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
...
GitOrigin-RevId: fbd879f172639f3db1b0d9c12f98fcb3868fa1a9
2024-07-18 20:11:33 +00:00