Toshiaki Kameyama
46ab338ea6
"Convert anonymous function to lambda expression" intention: add necessary lambda type parameter
...
#KT-37748 Fixed
2020-06-04 23:38:29 +03:00
Dmitry Gridin
50506658c0
fix some tests for as36
2020-05-08 19:13:28 +07:00
Dmitry Gridin
11a3482970
tests: apply official code style
...
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Mikhail Bogdanov
3f87899014
Switch converter test to new directive scheme
2020-03-19 16:45:10 +01:00
Ilya Chernikov
70c89a28e1
Stop subtyping constraint search if equality constraints for...
...
all not fixed type vars are found
#KT-35626 fixed
2020-03-12 08:02:45 +01:00
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
victor.petukhov
b8aacf0786
Fix test data around flexibility after ae39d748e4
2020-02-10 19:23:57 +03:00
Dmitry Gridin
b5d0956a5e
Move call-site trailing comma to registry
...
#KT-34744
2020-02-04 21:34:53 +07:00
Dmitry Gridin
c34b417d0c
Fix tests after disabling trailing comma
...
#KT-34744
2020-02-04 21:34:53 +07:00
Victor Petukhov
437a26684d
NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed and remember flexibility of type parameters based on flexibility of its upper bounds
...
^KT-32435 Fixed
2020-01-17 19:16:09 +03:00
Dmitry Gridin
d06787886a
Fix tests after implementing trailing comma in formatter
...
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin
d98794479d
kotlinSpacingRules: fix cases with EOL comments and comma
...
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin
4b98430058
Formatter: fix line break after package & file annotation
...
#KT-23957 Fixed
2019-11-29 21:09:04 +07:00
Ilya Kirillov
41f7519244
Fix old j2k test data to actual one
2019-09-24 16:22:24 +03:00
Ilya Kirillov
58db64a478
J2K: Fix old J2K test data's error messages which has changed due to new inference
2019-07-25 14:34:36 +03:00
Toshiaki Kameyama
90b0ea73dc
Add inspection for check/require/checkNotNull/requireNotNull
...
#KT-30640 Fixed
#KT-22412 Fixed
2019-07-08 16:36:18 +03:00
Ilya Kirillov
b411e8e18e
New J2K: Split old j2k and new j2k tests
2019-04-03 11:24:19 +03:00
Ilya Kirillov
b13f7431f2
New J2K: Fix existing test data
2019-04-03 11:24:13 +03:00
Ilya Kirillov
7adba40ea2
New J2K: Fix existing test data
2019-04-03 11:23:54 +03:00
Ilya Kirillov
ea2081c2f0
New J2K: Fix existing test data
2019-04-03 11:23:33 +03:00
Ilya Kirillov
c827247272
New J2K: Separate new j2k from old j2k
2019-04-03 11:23:31 +03:00
Ilya Kirillov
f8b8d07621
New J2K: Fix existing test data
2019-04-03 11:23:29 +03:00
Ilya Kirillov
d4077a1622
New J2K: Add boxed types support to PrimitiveTypesInitializersConversion
2019-04-03 11:22:01 +03:00
Ilya Kirillov
77eb9b1b37
New J2K: Fix if statement printing with empty then body
2019-04-03 11:21:55 +03:00
Ilya Kirillov
f752796408
New J2K: Fix existing test data
2019-04-03 11:21:19 +03:00
Simon Ogorodnik
f147907799
New J2K: Fix incorrect testData (due to nullability bug in old j2k)
2019-04-03 11:19:57 +03:00
Toshiaki Kameyama
1a818970c3
Add inspection to replace Java Map.forEach with Kotlin's forEach
...
#KT-17278 Fixed
2019-03-01 16:15:23 +03:00
Natalia Selezneva
f364717da2
J2K: convert annotations properly
2018-10-31 11:01:12 +03:00
Natalia Selezneva
ed1452c136
Fix j2k testdata for constructors
2018-10-31 11:01:11 +03:00
Mikhail Glukhikh
68da28edb9
Fix some tests bound to changed annotation formatting
2018-08-31 15:03:25 +03:00
Natalia Selezneva
1aecd2058c
Fix testdata after 534cbae4ef
...
^KT-14391
2018-05-08 09:02:35 +03:00
Simon Ogorodnik
57e47d1830
Propose convert to string template as inspection more frequent
2018-02-26 12:11:18 +03:00
Simon Ogorodnik
366f630236
Fix J2K ObjectLiteral.testMyFrame by updating incorrect testData
2018-02-08 19:01:13 +03:00
Mikhail Glukhikh
294dcf36e8
Fix J2K 'testAnnotationInterface3' (annotation diagnostic changed)
2018-01-31 11:24:40 +03:00
Mikhail Glukhikh
460688526d
Fix testAnnotationInterface3 in J2K (error message)
2018-01-30 15:23:41 +03:00
Dmitry Jemerov
43ef113b7a
Correctly apply annotation wrap before modifier keyword
...
#KT-20314 Fixed
2017-12-22 10:35:22 +01:00
Dmitry Jemerov
5652fa762f
Force no line break after dot in chained calls
...
#KT-20362 Fixed
2017-12-22 10:35:22 +01:00
Mikhail Glukhikh
a90e3c2e45
Add "replace map.put with assignment" to J2K
...
Related to KT-21502
2017-12-05 18:18:25 +03:00
Simon Ogorodnik
0560ba7929
KT-19943: Remove redundant type conversions in J2kPostProcessing
...
Don't remove them in converter itself
2017-11-13 15:54:33 +03:00
a2kaido
083c3d8a5d
KT-19943: Remove redundant special type unboxing calls in J2K
...
#KT-19943 Fixed
2017-11-13 15:54:33 +03:00
Toshiaki Kameyama
2be27d5380
KT-19390: Fix char + String in Java is converted to code with multiple type errors in Kotlin ( #1235 )
...
#KT-19390 Fixed
2017-11-13 14:13:34 +03:00
Denis Grachev
0722c5c13a
KT-19565: J2K: Determine mutability using iterator
...
#KT-19565 fixed
2017-09-18 14:07:57 +03:00
Toshiaki Kameyama
cd6201c5df
Java class with static-only methods can contain 'protected' members ( #1257 )
...
#KT-19651 Fixed
2017-09-14 15:47:10 +03:00
Toshiaki Kameyama
0246b82833
@deprecated with multi-line message in Javadoc converted to @Deprecated("long ugly string") #KT-19644 Fixed ( #1253 )
2017-08-31 14:15:15 +02:00
Toshiaki Kameyama
a6c2135851
Counter loop in Java is transformed to less effective loop in Kotlin #KT-19337 Fixed
2017-08-29 17:37:58 +02:00
Dimach
f0035a7be0
KT-17379: Fix J2K removal of parentheses in multiline expressions
...
When there is multiline polyadic expression with some operators
J2K should keep surrounding parentheses, otherwise
operators will be dangling due resolved to prefix variant
#KT-17379 fixed
2017-08-23 20:47:01 +03:00
Dimach
0920b2574c
KT-10375, KT-19523: Fix J2K hex literal number conversion issues.
...
#KT-10375, #KT-19523 fixed
2017-08-23 20:19:57 +03:00
Toshiaki Kameyama
46a1c8ca12
Repeated annotation @Deprecated after J2K for method with annotation and javadoc #KT-19351 Fixed ( #1251 )
2017-08-23 18:05:04 +03:00
Amane Nikaido
0fd5c6f1ca
KT-19634: Fix <boxed_value> == <primitive_value> converted to reference equality
...
#KT-19634 fixed
2017-08-18 15:20:26 +03:00
Toshiaki Kameyama
905b8cc4e9
long == <int_literal> in Java converted to red code in Kotlin #KT-19393 Fixed
2017-08-17 16:01:48 +03:00