Ilya Kirillov
0dfaae2bb4
New J2K: add some tests from obsolete issues
2019-06-26 18:36:05 +03:00
Ilya Kirillov
98be5d8ed0
New J2K: add copy-paste tests for new j2k
2019-06-26 18:36:05 +03:00
Ilya Kirillov
dc469cbdbf
New J2K: remove incorrect modifiers in post processing
2019-06-26 18:36:05 +03:00
Ilya Kirillov
3beef2b22e
New J2K: do not apply diagnostic based inspections if target element is not in the converting range
2019-06-26 18:36:05 +03:00
Ilya Kirillov
1b681a7dd6
New J2K: correctly handle empty range marker in post processings
2019-06-26 18:36:05 +03:00
Nikolay Krasko
beb1bc09d4
Update to 192.5118.30
2019-06-25 11:48:59 +03:00
Ilya Kirillov
d6dec2a066
New J2K: use PsiModifierListOwner instead of JvmAnnotatedElement for getting annotations from declaration while building AST as PsiLocalVariable is no longer a JvmAnnotatedElement in 192
...
#KT-31821 fixed
2019-06-17 12:18:05 +03:00
Vyacheslav Gerasimov
5a39c637c2
Build: Fix intellij dependency leak from ir tree module
2019-06-13 21:03:55 +03:00
Ilya Kirillov
2dd604cd70
New J2K, minor: remove unused declarations, fix typos
2019-06-11 18:16:06 +03:00
Ilya Kirillov
b80f2c78a0
New J2K, minor: reformat code, optimize imports
2019-06-11 18:16:06 +03:00
Ilya Kirillov
59f66d5882
New J2K: split diagnostic based processing from inspection ones
...
Analysing file file with diagnostics on each step of post-processings is rather expensive operation so the inspection-like post-processings which don't require diagnostic information was separated from ones that need it
Related to #KT-31848
2019-06-11 18:16:06 +03:00
Ilya Kirillov
3854a323fa
New J2K: do not ignore errors in new j2k tests comparison
2019-06-11 10:37:26 +03:00
Ilya Kirillov
ce569ca6e0
New J2K: remove static modifier for the case when member is converted without containing class
2019-06-11 10:37:25 +03:00
Ilya Kirillov
9929dba74d
New J2K: fix ConcurrentModificationException while analysing implicit initializers
2019-06-11 10:35:32 +03:00
Ilya Kirillov
184825d59d
New J2K: remove open modifier for top level functions on post-processing
...
#KT-31678 fixed
2019-06-11 10:35:32 +03:00
Ilya Kirillov
6d3967d922
New J2K: add tests for some obsolete J2K issues
2019-06-11 10:35:31 +03:00
Ilya Kirillov
04fe51b0aa
New J2K: use default test file directives for choosing SDK in tests instead of by filename approach
2019-06-11 10:35:31 +03:00
Ilya Kirillov
8375a12733
New J2K: properly remove redundant modifiers in post-processing as #KT-30804 is fixed
2019-06-11 10:35:31 +03:00
Ilya Kirillov
2aa20d003d
New J2K: convert vararg type parameter Java length call to Kotlin size call
2019-06-11 10:35:30 +03:00
Ilya Kirillov
b211ae1070
New J2K: correctly convert Kotlin function type
2019-06-11 10:35:30 +03:00
Ilya Kirillov
a2b832e5be
New J2K: correctly convert Java String type to Kotlin String
2019-06-11 10:35:30 +03:00
Ilya Kirillov
0fc0f99acb
New J2K: do not commit document after each inspection in post-processing
...
Related to #KT-31848
2019-06-11 10:35:29 +03:00
Ilya Kirillov
110611d690
New J2K: group post-processings to named groups
2019-06-11 10:35:29 +03:00
Ilya Kirillov
cacb4ed9f3
New J2K: correctly handle field symbol in EnumFieldAccessConversion
2019-06-11 10:35:29 +03:00
Ilya Kirillov
ca34c55dde
New J2K: do not call shortenClassReferences on AST building for addTypeArguments
2019-06-11 10:35:28 +03:00
Ilya Kirillov
417717914d
New J2K: use IDEA indexes for resolving
...
Related to #KT-31848
2019-06-11 10:35:28 +03:00
Ilya Kirillov
5f8b5efd66
New J2K: do not find import usages in AST building phase
...
It is a rather heavy operation and it increases conversion time
Related to #KT-31848
2019-06-11 10:34:34 +03:00
Dmitry Gridin
4f8c0653c5
Change API in AbstractApplicabilityBasedInspection
...
Replace all inspectionTarget with inspectionHighlightRangeInElement & change type of element in applyTo from PsiElement to TElement
2019-06-07 12:23:54 +07:00
Dmitry Gridin
f2accb7b9e
Convert IfThenToElvisIntention to inspection & decrease severity to INFO
...
#KT-16067 Fixed
2019-06-07 12:23:54 +07:00
Dmitry Gridin
74c177fd26
Convert FoldInitializerAndIfToElvisIntention to inspection and decrease severity to INFO
...
#KT-19643 Fixed
2019-06-07 12:23:54 +07:00
Ilya Kirillov
201bf328ca
New J2K: print new line before init section because of bad formatting
2019-06-05 23:41:49 +03:00
Ilya Kirillov
ca23eb44a1
New J2K: add type star projections for converted classes raw references
...
#KT-31818 fixed
2019-06-05 23:33:12 +03:00
Ilya Kirillov
845cde2d23
New J2K: do not add star projection type for raw class literal expression
...
#KT-15791 fixed
2019-06-05 23:33:12 +03:00
Ilya Kirillov
f75a7cbfc9
New J2K: fix test data for java8MapForEachWithFullJdk test
2019-06-05 23:33:12 +03:00
Ilya Kirillov
a56155ca73
New J2K: correctly handle vararg annotation parameter of external Java class
...
#KT-31726 fixed
2019-06-05 23:33:12 +03:00
Ilya Kirillov
58611ec417
New J2K: add test data for #KT-16662, #KT-15991, #KT-12050
2019-06-05 23:33:12 +03:00
Ilya Kirillov
c1e24d818b
New J2K: fix NPEs in nullability analysis
...
#KT-31817 fixed
2019-06-05 23:33:11 +03:00
Ilya Kirillov
1a9deed5d8
New J2K: add conversion progress bar
...
Relates to #KT-31812
2019-06-05 23:33:11 +03:00
Ilya Kirillov
f51e28ea68
New J2K: commit file after each post-processing
...
#KT-31809 fixed
2019-06-05 23:33:11 +03:00
Ilya Kirillov
aaab1fe134
New J2K: suggest user to configure Kotlin in a project before nj2k conversion
2019-06-05 23:33:11 +03:00
Toshiaki Kameyama
4c62788c3e
Make "Add operator modifier" an inspection instead of intention
...
#KT-31533 Fixed
2019-06-05 19:27:52 +07:00
Ilya Kirillov
f660faed97
New J2K: Wrap single annotation parameter to arrayOf if array type is required
...
#KT-31726 fixed
2019-06-03 13:02:48 +03:00
Ilya Kirillov
72bedb63fa
New J2K: add more string operations conversions
2019-05-31 00:25:53 +03:00
Ilya Kirillov
f03965995d
New J2K: generate nj2k tests
2019-05-31 00:25:53 +03:00
Ilya Kirillov
c136e81427
New J2K: optimize imports in post-processings
2019-05-31 00:25:52 +03:00
Ilya Kirillov
269ca20950
New J2K: add number types conversions to post-processing
2019-05-31 00:25:52 +03:00
Ilya Kirillov
3944a976df
New J2K: handle static imports from Java correctly & do not ignore imports in tests
2019-05-31 00:25:52 +03:00
Ilya Kirillov
39dfa631bf
New J2K: do not ignore long expressions in LiftReturnOrAssignmentInspection in post-processing
2019-05-31 00:25:52 +03:00
Ilya Kirillov
95a6f59c62
New J2K: preserve declarations order & place init sections to the end
2019-05-31 00:25:52 +03:00
Ilya Kirillov
ab26061b5e
New J2K: fix testData
2019-05-31 00:25:52 +03:00