Ilyas Selimov
3d5bbea95f
IDEA-283367 - [Patterns for switch] - fixed completeness for parameterized sealed hierarchies
...
GitOrigin-RevId: 4f5c59fe1e38b08f86974682b8adf7d70f0274b5
2022-01-24 12:28:36 +00:00
Anna Kozlova
2aa9ed116e
[java] switch expressions: allow null label with any non-primitive type (IDEA-282339)
...
GitOrigin-RevId: d6438daeba88dc37ec34509e331394a87cf1cd8d
2021-11-14 18:48:39 +00:00
Andrey.Cherkasov
6c6d02ba02
[java-highlighting] Fix label and selector incompatibility highlighting
...
GitOrigin-RevId: e1591dc480f87665fcbac4c927a65398e0e59dfb
2021-10-19 08:43:27 +00:00
Ilyas Selimov
a3f5f853c7
IDEA-278596 - provided more optimized version of completeness algo according to CR discussions
...
(memoization of visited nodes + using permit list where it's possible)
GitOrigin-RevId: 6010dfa7563b1e0fe825a806146268e6d107a82d
2021-09-24 06:25:37 +00:00
Ilyas Selimov
549bb827f0
IDEA-278082 - supported duplicates highlighting for total patterns
...
GitOrigin-RevId: c262a38924c0ce72464d92825af45302b9f24625
2021-09-16 09:04:17 +00:00
Ilyas Selimov
19dbe0e025
IDEA-277520 - prevent the duplicates generated during traversing sealed classes hierarchy
...
GitOrigin-RevId: 939ce39624535cd204759376a07c840504b61766
2021-09-06 09:27:17 +00:00
Nikita Eshkeev
ee954bc169
[java switch resolve] IDEA-277110 Compilation error not highlighted when using Pattern Matching for switch
...
Fallthrough to default is not acceptable according to JEP 406. This patch eliminates the default cases from a special case rules and leaves only `case null` as the only special case rule.
GitOrigin-RevId: 06c865f92fed01a41c5c87e1aa0a852acb3e7ee0
2021-08-31 20:52:55 +00:00
Ilyas Selimov
3c2e84dc48
IDEA-275735 - patterns for switch: added missing constant reference expression evaluation during checking the duplicates
...
GitOrigin-RevId: ba26ee0eab28dc907482f007bbeff2c943dfe6c0
2021-08-12 11:22:45 +00:00
Andrey.Cherkasov
c8e763e188
Provide fix "Remove switch label/branch" for the "'switch' has both a total pattern and a default label" error
...
IDEA-272573
GitOrigin-RevId: 37262fbd3543791b41513f6f1bea1970c8d3183c
2021-07-27 00:30:31 +00:00
Andrey.Cherkasov
0505f595e3
[java-highlighting] "'switch' has both a total pattern and a default label" highlight only the 'default' keyword
...
GitOrigin-RevId: 27cc72c328c1e86120c46bfce4ebc35cca05f3d8
2021-07-22 03:43:02 +00:00
Ilyas Selimov
a3e9dc1d06
IDEA-273955 - fixed a domination switch label containing total pattern over constant switch label
...
GitOrigin-RevId: 4b87556290a9edbb39c247d66a62f5b32e78ecbf
2021-07-21 08:06:02 +00:00
Ilyas Selimov
5c893b35ad
IDEA-273934 - fixed error message for case label elements
...
GitOrigin-RevId: df8523e73e8f48a328a30302e67cf18ae7c68a6b
2021-07-20 10:10:55 +00:00
Ilyas Selimov
7510074fad
IDEA-273954 - fixed completeness issues for sealed classes that doesn't contain sealed or abstract modifiers
...
GitOrigin-RevId: f22bd9194c6e8040280cf66ee843dda12e59c757
2021-07-19 06:50:56 +00:00
Ilyas Selimov
4f93c9448a
IDEA-273954 - fixed completeness issues for sealed classes and guarded patterns
...
GitOrigin-RevId: 4181dfba60a8ef11dcb13ebca92e63a2bf059658
2021-07-19 06:50:54 +00:00
Ilyas Selimov
e3bce0dad0
java - patterns for switch: added dominance "pattern over const" implementation
...
GitOrigin-RevId: 878b2c3acfae184618afb1bc80ec09cf8bc1ab6c
2021-07-17 06:15:29 +00:00
Ilyas Selimov
6a5e75050d
java - patterns for switch: fixed fall-through semantics between different switch labels
...
GitOrigin-RevId: e976f949c422aa56cec971ac7f66b58292c9ee7e
2021-07-16 12:36:47 +00:00
Ilyas Selimov
5beb9feb97
java - patterns for switch:
...
1) Fixed message for dominance
2) Supported null selector (will be fixed in javac https://github.com/openjdk/jdk/pull/4679/files )
3) null and type patterns check
GitOrigin-RevId: 2cc0da4fdf219f5dfb56ce7ed046606a756f94b6
2021-07-07 17:33:18 +00:00
Ilyas Selimov
79ae2516b7
IDEA-270438 - unchecked cast check
...
GitOrigin-RevId: 25ff6809f13ebe21f8a192e2084dc96c644b3d23
2021-07-01 14:48:07 +00:00
Ilyas Selimov
dcae1753d1
IDEA-270438 - fixed selector type restrictions
...
GitOrigin-RevId: 826ebda6866b822783d1611b7f44116f5e3d5f8f
2021-06-29 12:34:22 +00:00
Ilyas Selimov
a508d00a25
IDEA-270438 - fixed totality for arrays
...
GitOrigin-RevId: 991b05698d1fe95155986e6669e60d46c713b588
2021-06-28 12:14:26 +00:00
Ilyas Selimov
85ec7337d1
IDEA-270438 - fixed assignability in switch, added check for selector types
...
GitOrigin-RevId: 810891b03c0f6274ddc60225ec9e6079405e639c
2021-06-28 12:14:22 +00:00
Ilyas Selimov
9909791f3f
IDEA-270438 - fixed completeness for enums
...
GitOrigin-RevId: 74b104129dea327095c7dfbbb44e2ad11eeb6d98
2021-06-28 06:43:26 +00:00
Ilyas Selimov
7fa76d8c9c
IDEA-270438 - fixed completeness and tests
...
GitOrigin-RevId: 6e920fc66d916e9bf9f7795eaf426c7ec3532b4d
2021-06-27 13:59:32 +00:00
Ilyas Selimov
5ad49432ce
IDEA-270438 - removed duplicates, refactoring, misc fixes
...
GitOrigin-RevId: 0e6b3bf43f3caa3245c03db339700971534616b2
2021-06-27 13:46:02 +00:00
Nikita Eshkeev
e0970fca77
[java][resolve] IDEA-271676 Pattern matching for switch: fix resolve
...
Fix the resolve algorithm according to [JEP 406](https://openjdk.java.net/jeps/406 ). It includes:
- The correct resolution of variables in pattern matching guards in both if and switch
- Restricting the maximal scope of resolving by the PsiSwitchLabeledRuleStatement
- Various tests for resolving variable in pattern matching for switch
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com >
GitOrigin-RevId: 1efb10f50a458a382a71ffeaef5a0f540b4a8893
2021-06-19 21:31:03 +00:00
Nikita Eshkeev
aff8571fd9
[vcs][properties] IDEA-270602 Optimize precommit code analysis for property files
...
Enable the check if properties are used in a project only for changed or added properties by default
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com >
GitOrigin-RevId: 6d336d0bb803543c3627c23923605d0d6827dc86
2021-06-17 22:59:22 +00:00