Commit Graph

7 Commits

Author SHA1 Message Date
Roman Golyshev 46ae6136cb Rewrite RedundantSamConstructorInspection to support more cases
- Now inspection does not rely on synthetic descriptors at all, instead
it uses `SamConversionOracle` and `SamConversionResolver` to detect
if the argument type support SAM conversion
- This transparently considers all language features like
`SAM conversions for kotlin functions`, `Functional interfaces` etc.
- In case of multiple SAM arguments, part of them can be converted only
when `SAM conversion per argument` is enabled
- Fix inspection and nj2k tests that were failing because of better
working inspection
- Rewrite automatically fixes multiple bugs that were present
- ^KT-36367 ^KT-36368 ^KT-36296 ^KT-36395 Fixed
2020-02-19 17:16:17 +03:00
Nikolay Krasko 2841931ffa Do not force new line in body for empty functions and function expressions (KT-10828)
#KT-10828 Fixed
2016-12-14 13:35:31 +03:00
Nikolay Krasko 527907635d Enable JDK 8 level in some tests for correct convert for method references 2016-05-05 17:27:47 +03:00
Natalia Ukhorskaya 9d66852ae2 J2K: convert method references according to special methods 2016-01-25 15:02:48 +03:00
Valentin Kipyatkov 6f12db9cde J2K: no explicit type required for public declarations 2015-09-18 15:44:18 +03:00
Valentin Kipyatkov c3ddd5d32b J2K: adapted for default visibility modifier 'public' 2015-09-18 15:44:18 +03:00
Natalia Ukhorskaya 351e1863fc J2K: Support for method references
#KT-8721 Fixed
2015-08-24 12:37:41 +03:00