Ilyas Selimov
fee12f1d34
java - moved some tests as they belong rather to highlighting than to DFA
...
GitOrigin-RevId: af470efb050d162026ef7a492d60f912fca655e2
2021-11-08 10:22:21 +00:00
Nikita Eshkeev
cbb421ecb6
[java][instanceof] IDEA-280626 Patterns in instanceof: red code false-negative
...
Move the test data to LightPatternsHighlightingTest
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com >
GitOrigin-RevId: f62fc31839e92b03161837d92b2518c4b13ab5c8
2021-10-27 10:47:22 +00:00
Anna Kozlova
f55ce0722f
remove Java 15 Preview language level (IDEA-273436)
...
GitOrigin-RevId: efe6feafd81a99bde15e892530c1085fc4fb8772
2021-08-31 06:25:32 +00:00
Tagir Valeev
0a1276cbe2
[java-highlighting] InstanceOfNameConflicts: new test
...
GitOrigin-RevId: c766833dd6ff293c807838ccf94fe9a416361206
2021-01-29 09:00:12 +00:00
Tagir Valeev
e8baf732eb
[java-highlighting] Expression type is a subtype message fixed; added equals message
...
Review ID: IJ-CR-5352
GitOrigin-RevId: 16674439ea3998cceb4faf0326e53ac2de30d7b6
2021-01-28 05:40:26 +00:00
Tagir Valeev
6fe2638869
[java] IDEA-257411 Update pattern matching for instanceof support for Java 16
...
1. Do not report error if non-final variable is reassigned
2. Report error in Java 15 if 'final' modifier is used
3. Allow specifying 'final' modifier on introduce variable
4. Support non-final variables in PatternVariableCanBeUsed inspection
5. Copy modifiers in PatternVariableCanBeUsed quick-fix
GitOrigin-RevId: d7b82261a018c9a48bcdcf237ade0d8c08f5978d
2021-01-26 05:55:43 +00:00
Tagir Valeev
e8ee29f264
[java-highlighting] Support local variable annotations on pattern variables (IDEA-257411, JEP 394)
...
GitOrigin-RevId: 67130333b1cf306896c2cdae672ff2f0d40f3977
2021-01-26 05:14:02 +00:00
Tagir Valeev
eeb8252d36
[java-highlighting] Disallow instanceof pattern on subtype since Java 16 (JEP-394)
...
Part of IDEA-257411 Update pattern matching for instanceof support for Java 16
GitOrigin-RevId: bc1a9af755b18f7f44bcb6b1cef9f0761820a403
2021-01-26 05:14:00 +00:00
Tagir Valeev
e43800cb62
IDEA-230729 Good code red: Illegal generic type for instanceof
...
GitOrigin-RevId: 03fa8e1c2e663e50bd0968423fe07a9a7e05a0d1
2020-01-24 08:03:38 +00:00
Tagir Valeev
99e82547b1
IDEA-229896 Unused variables: adapt for pattern variables
...
GitOrigin-RevId: 78dfe45581f1ed84050635410f834f3195dabfe1
2020-01-23 05:01:48 +00:00
Tagir Valeev
681a58ab7b
IDEA-230701 IDEA doesn't resolve pattern variable defined in labeled scope
...
GitOrigin-RevId: afd36dfb5a20200bcab13a0efdc8ddf4884d959e
2020-01-22 10:38:13 +00:00
Tagir Valeev
43e64e1c56
Patterns resolve: stop at switch label; filter by name before doing control flow analysis when possible (IDEA-229846)
...
Review ID: IDEA-CR-56992
GitOrigin-RevId: 4264da45582f5d38e3b5630184d8ab762f30575b
2019-12-28 12:05:19 +00:00
Tagir Valeev
2380906af8
HighlightControlFlowUtil: disable assignment to pattern variables
...
GitOrigin-RevId: 09c4aa42068ce0258543a17546404fcdec952404
2019-12-27 09:01:34 +00:00
Tagir Valeev
0df312338d
IDEA-229846 Resolve for pattern matching (except switch handling)
...
GitOrigin-RevId: b8addebac00f681641d5cef1089fa6f7d2d668a7
2019-12-27 07:33:29 +00:00