Commit Graph

12 Commits

Author SHA1 Message Date
Bas Leijdekkers
5147fdd123 Java: offer more quickfixes on enum constant with incorrect argument type
GitOrigin-RevId: 080edd03ae7d11746fe303dd7b59720f98c0d115
2023-03-01 18:06:07 +00:00
Tagir Valeev
9c6aeba5b4 [java] More tests for preview; minor fixes
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
2022-07-22 11:54:00 +00:00
Tagir Valeev
c81981ee75 [java-intentions] Rename 'Wrap using' fixes with 'Adapt using'.
Not everything is actually wrapping. E.g., converting 'long' to 'int' via 'Math.toIntExact' is definitely not wrapping. The 'adapt' word looks more abstract and suitable for all the cases.

GitOrigin-RevId: 33e56b6e16a0362598ac8e3fc92ef2808a77dbe0
2022-04-06 15:56:09 +00:00
Bas Leijdekkers
44f751215e java: cast quick-fix cosmetics (IDEA-277682)
GitOrigin-RevId: 2e9ca6999d9003e1d0d7392de6713593722238f2
2021-09-09 23:02:59 +00:00
Anna Kozlova
921d49d3e0 [java] ensure arg wrapper is not available for mutual use when it can't work for some argument
GitOrigin-RevId: 87bbf922fb4ea9a0127aa5d653b2d799f0056c09
2021-06-25 08:46:15 +00:00
Tagir Valeev
8baaccc9b5 Testdata fixed
GitOrigin-RevId: d8395deca656da0bbcfb3eae6fbda59db39a420e
2020-06-26 07:32:52 +03:00
Tagir Valeev
882322a5bf InferenceSession#isOverloadCheck: take parentheses into account 2018-11-17 14:48:24 +07:00
Anna.Kozlova
3ae37a2925 disable cast suggestion for incompatible return type (IDEA-186479) 2018-03-22 10:41:42 +01:00
Anna Kozlova
30464d6b08 disable fixes when target types depend on unresolved type params (IDEA-185967) 2018-02-01 13:40:04 +03:00
Anna.Kozlova
1e9f6352f2 make add cast fix available for vararg methods (IDEA-169541) 2017-03-14 14:17:14 +01:00
Anna Kozlova
e743d2ad59 ensure cast to class type is suggested when argument type is null (IDEA-159884) 2016-08-16 17:39:07 +03:00
anna
5847e27156 suggest casting int to long when Long is expecting 2013-11-28 12:21:43 +01:00