Commit Graph

10 Commits

Author SHA1 Message Date
Tagir Valeev
35c501455e [java-highlighting] Remove unhelpful fixes when type inference fails
GitOrigin-RevId: a4da4b47eabbcf5438ff9d1de82240d4880b8c50
2023-01-17 15:37:21 +00:00
Tagir Valeev
b2dfb4c8a8 [java-highlighting] Do not report lambda return value error if its return type contains unsubstituted type variable
Fixes IDEA-310129 IDE hint a wrong position of Java method param compile error
Also: AdaptExpressionTypeFixUtil: try to determine wrong parameter even if several parameter types mention type parameter
Also: AdaptExpressionTypeFixUtil: new type mismatch fix to replace call with qualifier

GitOrigin-RevId: fbc63c0eb3415983ccf52ed5ade15b5895b65b21
2023-01-17 15:37:18 +00:00
Tagir Valeev
b41375447f [java-highlighting] Better call type mismatch reporting
GitOrigin-RevId: 1f7240ef2cdad17d78aa0f691b1b5ce3108293b3
2022-08-08 14:00:00 +00:00
Tagir Valeev
a0bc3ee404 [java-highlighting] Better actual type definition; fixes for some type mismatch in collectors
GitOrigin-RevId: 3652f4511a067b86bc9138f492a2a88cded09de0
2022-08-08 13:59:57 +00:00
Tagir Valeev
a500d6b7b3 [java-intentions] IDEA-299075 Better support for types with several type parameters
GitOrigin-RevId: 9f7d4d429ef9aca857e36b24990be23d664c255a
2022-08-04 18:10:45 +00:00
Tagir Valeev
41cbe227c2 [java-intentions] IDEA-299075 Additional fixes
1. Map to supertype if expected is a supertype for actual
2. Do not suggest the replacement when type parameter bounds are violated

GitOrigin-RevId: 7784f18fcdb7fdd9541e5c92a211808475f62054
2022-08-04 13:37:44 +00:00
Tagir Valeev
c99da54bb4 [java-intentions] IDEA-299075 More scenarios for parameter fixes
1. Surround with array initialization
2. Apply .toArray() conversion
3. Limited vararg support
4. Limited qualifier propagation

GitOrigin-RevId: f81f593502df317b555e816af20cdec2d04488fc
2022-08-03 15:00:24 +00:00
Tagir Valeev
47924b8886 [java-intentions] Better messages for wrap and adapt intentions
GitOrigin-RevId: f0a38046a71722f48f3ff1d59ea501259139237e
2022-08-03 12:19:14 +00:00
Tagir Valeev
c7063c97ef [java-intentions] Improve messages for add cast fixes
GitOrigin-RevId: b097e12c61cac86e789945a89316a7fef391c770
2022-08-02 18:58:09 +00:00
Tagir Valeev
8a9959167b [java-intentions] IDEA-299075 Better quick-fixes when generic method call has mismatched type
GitOrigin-RevId: 6fa73efcfb43cd7da05f95ef66c2cd40a3dc1a14
2022-08-01 18:23:39 +00:00