Simon Ogorodnik
b7a5ff456f
Reformatted testData
2017-01-10 16:20:58 +03:00
Simon Ogorodnik
347c6e100b
Fix for KT-14736 J2K Incorrect conversion of back ticks in javadoc {@code} tag
...
#KT-14736 fixed
2017-01-10 16:20:58 +03:00
Simon Ogorodnik
41aaaa6a0d
Fix for KT-6790 J2K: Static import of Map.Entry is lost during conversion
...
#KT-6790 fixed
2017-01-10 16:20:58 +03:00
Simon Ogorodnik
73ea0e8460
Fix for KT-15027 J2K: Annotations are set on functions, but not on property accessors
...
#KT-15027 fixed
2017-01-10 16:20:58 +03:00
Mikhail Zarechenskiy
6cccad9647
Update year in license and regenerate tests
2017-01-10 12:01:17 +03:00
Nikolay Krasko
2bb48fc802
Allow empty single-line bodies in property accessors
2016-12-14 13:40:44 +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
Dmitry Jemerov
66f58c08b2
To avoid obtaining stub-based types with no underlying AST node, create class types from reference elements manually
2016-12-13 12:44:02 +01:00
Mikhail Glukhikh
729a3a34b8
Cleanup: remove empty primary constructor applied
2016-12-02 13:38:47 +03:00
Zalim Bashorov
1dedb38481
Regenerate tests
2016-11-09 21:41:12 +03:00
Simon Ogorodnik
2be4800307
Fix for KT-14604 J2K Yet another floating point with exponent format
2016-11-08 12:04:05 +03:00
Mikhail Glukhikh
8edd33ee92
If then to elvis: applied in IDEA, front-end & J2K modules
2016-10-28 15:00:21 +03:00
Simon Ogorodnik
7c8fdc42b4
Fix for KT-12892 J2K: Wrong placing of comments when constructor converted to primary constructor & init
2016-10-27 20:02:24 +03:00
Simon Ogorodnik
b51f5c5bd9
Fix for KT-14248 J2K: Invalid constructor formatting after conversion
...
Caused by `\n\n long mLong = 0;` leading line breaks
2016-10-27 20:02:23 +03:00
Simon Ogorodnik
f1c371143c
Fix for KT-5312 J2K: Correct bit operations priority after conversion
...
Now `PolyadicExpression` breaks down to BinaryExpression`s
2016-10-27 20:02:23 +03:00
Simon Ogorodnik
1069257e95
Fix for KT-5410 J2K: someObject + "someString" should be converted to someObject.toString() + "someString"
...
Otherwise `+` operator will not resolve
2016-10-27 20:02:21 +03:00
Simon Ogorodnik
0cebcc9f3c
Fix for KT-12677. J2K: Invalid SAM constructor redundancy detection
...
Now all J2kPostProcessing's executing in fixed order, dependent on it index in J2kPostProcessingRegistrar._processings
2016-10-27 20:02:20 +03:00
Alexander Udalov
0f4b10d37d
Add JavaToKotlinClassMap#isJavaPlatformClass
...
Use it instead of mapPlatformClass where we only need to check emptiness
because mapPlatformClass requires built-ins and it's not always easy to come up
with the correct instance of built-ins.
In KotlinEvaluationBuilder, use the nullable function
findClassAcrossModuleDependencies instead of mapPlatformClass which uses the
throwing resolveClassByFqName. This is necessary because DefaultBuiltIns, which
are used there, are not always able to find classes mapped by a _Java_ to
Kotlin class map. (The correct solution would be not to use DefaultBuiltIns at
all, instead obtaining the correct instance of built-ins, which are almost
certainly going to be JvmBuiltIns, from the project configuration.)
2016-10-25 15:42:32 +03:00
Simon Ogorodnik
e14a043b0a
Fix for KT-10885
...
Assignment as expression conversion: e.g int i = j = 0
2016-10-13 18:52:44 +03:00
Simon Ogorodnik
d731f97c7d
Fix KT-13021, KT-13020, Test for already fixed KT-6941
...
Fixes on javadoc to kdoc comments convert
2016-10-13 18:52:31 +03:00
Simon Ogorodnik
155cfcb1f8
Fix for KT-6424
...
Remove "SuppressWarnings" and "//noinspection" on java to kotlin conversion
2016-10-13 18:51:48 +03:00
takahirom
93c2e7dfc0
KT-13550 Fix Boolean.TYPE does not compile ( #969 )
...
* Fix Boolean.TYPE does not compile
2016-10-13 15:02:06 +02:00
Simon Ogorodnik
e7635652bc
Fix for KT-14205
...
If detected unfinished expression it passed through, added warning on action "Convert Java to Kotlin", if Java files contains syntax errors.
2016-10-12 19:01:58 +03:00
Simon Ogorodnik
2a95a4a970
Test for KT-7332, already fixed
2016-10-12 18:16:15 +03:00
Simon Ogorodnik
4710f709ce
Fix for KT-10545
...
//TODO unfix: see KT-14305
2016-10-12 18:10:55 +03:00
Simon Ogorodnik
2c99aac5a9
Post-review fixes, added support for octal escaping definition for char
2016-10-12 17:54:43 +03:00
Simon Ogorodnik
a64c45c9fe
Fix KT-8091: J2K string with octal escaped chars
2016-10-12 17:54:43 +03:00
Alexander Udalov
2f616bdd33
Drop ModuleParameters, inline defaultImports everywhere
2016-10-12 17:07:09 +03:00
Simon Ogorodnik
25b9542c06
Fix for KT-11375, KT-9710, KT-8161
2016-10-12 12:08:48 +03:00
Simon Ogorodnik
df0dddedc2
Fixes for test(@JvmStatic -> const), fix for prototype assign
2016-10-12 11:56:54 +03:00
Simon Ogorodnik
e84f56348c
Fix KT-13750, J2K const val serialVersionUID
2016-10-12 11:56:54 +03:00
Simon Ogorodnik
12efb20869
Regenerated tests
2016-10-12 11:08:49 +03:00
Simon Ogorodnik
1a7c507cc5
Fix for KT-13818
...
Javadoc @code conversion
2016-10-12 11:08:49 +03:00
Valentin Kipyatkov
dca094e971
Refactoring + preserving formatting in some more places where it was missing
2016-10-03 23:23:14 +03:00
Valentin Kipyatkov
5a6f068130
Some formatting preserving for special methods too
2016-10-03 23:23:14 +03:00
Valentin Kipyatkov
f4d9909f6f
Code refactoring
2016-10-03 23:23:13 +03:00
Valentin Kipyatkov
badbcd4989
KT-13628 New line is not preserved when converting java to Kotlin
...
#KT-13628 Fixed
2016-10-03 23:23:13 +03:00
Simon Ogorodnik
47bfb8133d
KT-13146 J2K recursion while converting self-referenced anonymous functions ( #956 )
2016-09-26 13:47:31 +03:00
Simon Ogorodnik
ab2b6743df
KT-11990 J2K native to external conversion ( #957 )
2016-09-22 18:09:26 +03:00
Nikolay Krasko
835474e5a1
Register TypeAnnotationModifier EP in environment for web demo converter
2016-09-20 15:27:07 +03:00
Simon Ogorodnik
115d63a2f3
#KT-13750 fix ( #951 )
2016-09-13 18:12:22 +03:00
Valentin Kipyatkov
38edb58e60
Preserve formatting of parenthesis in calls too
2016-08-23 22:46:44 +03:00
Valentin Kipyatkov
87294207f9
Introduced Identifier.withNoPrototype()
2016-08-23 22:46:43 +03:00
Valentin Kipyatkov
0554e1702c
KT-11804 J2K: incorrect closing parenthesis position for method split to several lines
...
#KT-11804 Fixed
2016-08-23 22:46:43 +03:00
Valentin Kipyatkov
20c17fc435
Use of Block.of()
2016-08-23 22:46:43 +03:00
Pavel V. Talanov
5a1a1fc03a
Drop KtLightClass#getFqName() and some usages of classFqName in KtLightClassForDecompiledDeclaration
2016-07-28 18:00:53 +03:00
Pavel V. Talanov
cdbd7fbab0
Refactor: split classes in 'asJava' package into several subpackages to reflect their structure
2016-07-28 18:00:47 +03:00
Mikhail Glukhikh
692623cb55
Cleanup: smart casts of safe call receiver applied (do NOT cherry-pick to 1.0.X)
2016-07-27 16:24:18 +03:00
Alexander Udalov
83000c50ff
Remove quotes around visibility in invisible member diagnostic
2016-07-22 18:13:41 +03:00
Alexander Udalov
b6b2303aa7
Improve error message for inaccessible invisible_fake members
...
#KT-8989 Fixed
2016-07-22 18:13:40 +03:00