Commit Graph

39 Commits

Author SHA1 Message Date
Mikhail Pyltsin
4bc43b46f4 [java-highlighting] IDEA-323955 Record patterns support available only for Java 20 preview. Fix compiler errors and tests
GitOrigin-RevId: 5f856519e56e61818e95cf63766fb6a54c6283ad
2023-07-05 12:09:22 +00:00
Mikhail Pyltsin
016ba5fb84 [java-intentions] IDEA-313226. Suggest the correct type for switch. Generics and tests
GitOrigin-RevId: 4814c85fd7721fb7866210825a0d2286c61e2043
2023-02-21 08:54:40 +00:00
Mikhail Pyltsin
938ed3204b [java-intentions] IDEA-313226. Suggest the correct type for switch
GitOrigin-RevId: bd99d2b31049b94542a1745f48a33d0ee787e83d
2023-02-17 18:39:18 +00:00
Andrey Cherkasov
4bbd7cf012 Predict boolean type for 'when' expression of switch pattern
IDEA-274106

GitOrigin-RevId: 3f41806bc5eceea7efa2c10bc149f231b4d42262
2022-11-07 03:40:28 +00:00
Tagir Valeev
6266f14d9b [java-inspections] CreateLocalFromUsageFix: tests for preview
GitOrigin-RevId: 18145df666bfb6601725d6cdd13a14bb341fe32a
2022-07-27 10:00:37 +00:00
Anna Kozlova
3a646d1f0c java create local from usage: do not duplicate comments inside variable initializer (IDEA-256107)
GitOrigin-RevId: 3f9298e0d38ca0840a57922a7b9eb23c27277668
2020-11-26 12:11:11 +00:00
Anna Kozlova
bd1a21a02a bump highest language level to 14, prepare to remove 13_preview
GitOrigin-RevId: ec42a9047ba63b0cbaddd8357d11ae2ed56ed6b6
2020-04-01 12:31:42 +00:00
Anna Kozlova
356697425a create local from usage: preserve comments
found by property testing

GitOrigin-RevId: 2b4aabe7f5cc3e87d8cbbb9959f778aa241fa377
2020-03-19 09:32:07 +00:00
Anna Kozlova
24d1d27b1e switch expressions 2.0: expected type by yield
GitOrigin-RevId: f4e396ddc90d66790db044525611c536c3f620fa
2019-07-02 06:52:16 +03:00
Rustam Vishnyakov
123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdan
c1813cfb52 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Anna Kozlova
91f7445298 constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
2019-06-13 03:15:49 +03:00
Egor Zhdan
39d2d77155 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Anna Kozlova
4b9293e63f fix reference to inner class of generic outer in static context (IDEA-215061)
GitOrigin-RevId: b969c41b3282bf89c4b44da598c7ec408ea8fec5
2019-05-29 23:07:12 +03:00
Anna.Kozlova
a98a18ce8a calc expected type on the left of assignment based on standalone expression type from the right side (IDEA-199273) 2019-02-07 15:59:00 +01:00
Tagir Valeev
bcc8d9d5ba CreateLocalFromUsageFix, ExpectedTypesProvider fixes (incl. EA-134473 - assert: CreateLocalFromUsageFix.getAnchor) 2019-01-24 18:49:29 +07:00
Anna.Kozlova
55820ccd15 predict functional type in assignment context (IDEA-199264) 2019-01-07 19:09:17 +01:00
Tagir Valeev
03e4f37774 ExpectedTypesProvider and CreateLocalFromUsageFix updated for Java 12 (IDEA-204006) 2018-12-21 16:32:43 +07:00
Anna.Kozlova
d612b2c65b create from usage: ensure that refs for methods/locals are not mixed (IDEA-195066) 2018-07-05 18:13:11 +02:00
Anna Kozlova
8a3e53d414 testdata for IDEA-84211 2018-06-26 09:18:41 +03:00
Anna Kozlova
6adc33ee16 make create local from fix available on full range (IDEA-141875) 2018-06-18 17:05:41 +03:00
Anna Kozlova
31fd8cfe08 create from usage: don't ignore types if no expected methods detected
IDEA-193066 check expected type as well by another expression
2018-06-01 20:04:05 +03:00
Anna.Kozlova
bee978ba1e disable create local from usage in this/super calls (IDEA-184182) 2017-12-22 16:23:22 +01:00
Anna Kozlova
ed9b3db88f create local from usage: check containing code block (IDEA-178443) 2017-09-05 12:00:19 +03:00
Tagir Valeev
f4c6d909ab IDEA-171205 Create local variable from usage: honor most suitable overload by parameter count 2017-04-10 11:29:42 +07:00
Anna.Kozlova
d688a9a7a4 guess expected type like for completion if on the left side of assignment to functional expression which provides in this case no expected type (IDEA-169382) 2017-03-15 20:07:06 +01:00
Anna.Kozlova
b1645e3ae5 reuse utility method; ensure unknown functional type reduced to Object before create new psi
EA-75452 - IOE: PsiJavaParserFacadeImpl.createTypeElementFromText
2016-04-22 17:02:00 +02:00
Dmitry Avdeev
466b4e442b Create from usage: sentence capitalization 2014-12-06 12:06:31 +03:00
Bas Leijdekkers
f972926905 fix expected thrown types for lambda expressions 2014-12-03 15:30:48 +01:00
Anna Kozlova
0da1a208cc ensure expression valid, initializer expression should be already replaced (IDEA-125231) 2014-05-19 14:08:56 +04:00
Anna Kozlova
f89a7938fc IDEA-122974 expected type suggester should ignore 'null' types 2014-03-28 17:42:11 +01:00
Anna Kozlova
bf9f135419 create from usage: reuse 'completion inference' when create from argument list 2013-12-07 14:21:43 +01:00
anna
6e9f9c690f EA-47443 - assert: CreateLocalFromUsageFix.getAnchor 2013-07-01 17:37:52 +02:00
Anna Kozlova
c289233dac expected types: do not "erase" too much (IDEA-109700) 2013-06-27 16:24:18 +04:00
anna
ae9e9ab0c5 register quick fixes on "expression expected" (IDEA-101705) 2013-02-28 19:31:00 +01:00
anna
10cecacf14 EA-41161 - CCE: JavaTreeGenerator.generateTreeFor: create from usage with method ref on the right
(cherry-picked from 04f7b76)
2012-11-23 21:13:39 +01:00
anna
e374ec93b1 create local from usage: do not remove tailing comment (IDEA-69372) 2011-06-07 13:10:44 +04:00
anna
dde2360a0c keep spaces (IDEA-67541 ) 2011-04-05 18:13:36 +02:00
Alexey Kudravtsev
2718da9fc7 more java tests moved to community 2010-06-25 12:46:40 +04:00