Nikolay Krasko
d58707972d
Keep empty bodies for declarations with comments (KT-16078)
...
#KT-16078 Fixed
2017-02-17 15:57:11 +03:00
Simon Ogorodnik
b7a5ff456f
Reformatted testData
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
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
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
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
df0dddedc2
Fixes for test(@JvmStatic -> const), fix for prototype assign
2016-10-12 11:56:54 +03:00
Simon Ogorodnik
115d63a2f3
#KT-13750 fix ( #951 )
2016-09-13 18:12:22 +03:00
Valentin Kipyatkov
bac5c4d70b
Fixed test data after commit: https://github.com/JetBrains/kotlin/commit/602de317d68c3a4408829e2f1c7e93f31936399f
2016-05-04 16:26:44 +03:00
Valentin Kipyatkov
92af610322
KT-12045 J2K: creating Object() instance could be converted to Any()
...
#KT-12045 Fixed
2016-04-29 18:13:53 +03:00
Alexander Udalov
e915e1548c
Fix multiple 'unresolved java classifier' errors
...
Use the same component (NotFoundClasses) as in loading of compiled Kotlin
symbols.
Some tests were changed to avoid a diagnostic that is now reported when a
non-found class is encountered in a signature (e.g. staticMethod.1.java where
JDK seems to be not configured)
#KT-10493 Fixed
#KT-10820 Fixed
#KT-11368 Fixed
2016-03-28 14:13:59 +03:00
Natalia Ukhorskaya
4bc4f0bce7
J2K: not initialized field of non-primitive type should have null initializer
...
#KT-11544 Fixed
2016-03-25 20:27:19 +03:00
Pavel V. Talanov
a4c005fefd
Update existing test data depending on diagnostic parameter rendering
2016-02-26 14:45:11 +03:00
Natalia Ukhorskaya
513c4a4562
J2K: transform loops with double, float and char range with while
...
#KT-899 Fixed
2015-12-18 16:14:17 +03:00
Natalia Ukhorskaya
ecdef71580
J2K: cast right operand of equals for primitive types to left operand type
...
#KT-9997 Fixed
2015-12-18 16:14:16 +03:00
Natalia Ukhorskaya
1d787ed222
J2K: Insert initializer type for properties with primitive type if necessary
2015-12-18 16:14:15 +03:00
Valentin Kipyatkov
d78390e489
KT-10004 Java to Kotlin: array.length is converted to array.size() instead of array.size
...
#KT-10004 Fixed
2015-11-24 12:17:51 +03:00
Valentin Kipyatkov
36ea9cfbfc
J2K: fixed conversion of Throwable.getMessage(), Throwable.getCause(), Map.Entry.getKey() and Map.Entry.getValue()
2015-10-21 13:46:57 +03:00
Valentin Kipyatkov
dc909ac166
J2K: coversion of specially mapped built-in methods + replacing "get" with "[]" where possible
2015-10-19 09:43:11 +03:00
Valentin Kipyatkov
320102bbdb
J2K: get/set-methods converted to properties (but lot of TODOs left)
2015-09-25 13:02:45 +03:00
Valentin Kipyatkov
0cc2158ec1
J2K: do not produce redundant "internal" words for members in an internal class
2015-09-18 15:44:19 +03:00
Valentin Kipyatkov
7caccd7578
J2K: all annotations should be with "@"
2015-09-18 15:44:18 +03:00
Valentin Kipyatkov
cc4aa6ed21
J2K: preserving of visibility modifier for override members when access level was higher
2015-09-18 15:44:18 +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
Valentin Kipyatkov
97cf562dea
Made convert to string template inspection less eager
2015-09-07 19:48:05 +03:00
Denis Zharkov
952d45dc8b
Deprecate JVM platform annotations in favor of capitilized themselves
2015-09-04 18:19:31 +03:00
Mikhail Glukhikh
285d5d06c7
More precise value reassignment analysis. #KT-7418 Fixed. #KT-6902 Fixed.
...
Variable can now be "exactly initialized", "may be initialized" and "not initialized".
A set of relevant tests. Some fixed tests.
2015-09-02 12:07:18 +03:00
Stanislav Erokhin
5ded315cbb
Improved error reporting for candidates with wrong parameter count
2015-09-01 23:37:42 +03:00
Dmitry Jemerov
341f09afd3
rename platformStatic to jvmStatic
2015-08-21 16:59:05 +02:00
Valentin Kipyatkov
21639c4785
J2k post-processings based on diagnostics are included into the common scheme
2015-08-13 17:29:01 +03:00
Natalia Ukhorskaya
22ee063269
Add platformStatic annotation to main method from java
...
#KT-8219 Fixed
2015-07-30 10:00:24 +03:00
Denis Zharkov
97af85da9c
Change default upper bound of Java type parameters to Any!
...
#KT-7672 Fixed
2015-07-21 15:16:05 +03:00
Valentin Kipyatkov
bf014fc1c5
KT-5419 J2K: convert string concatenation to string template + implemented corresponding inspection
...
#KT-5419 Fixed
2015-06-15 18:32:45 +03:00
Ilya Gorbunov
fb342de451
Ensure stable order is used when rendering list of resolved calls by sorting them with MemberComparator.
2015-05-21 19:07:19 +03:00
Valentin Kipyatkov
1465418c2b
KT-7151 Convert 'System.out.println()' to just 'println()'
...
#KT-7151 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
39f94d7d45
KT-6044 J2K: Convert numeric float literals to 0.2f instead of 0.2.toFloat() + more fixes related to literals and type transformations
...
#KT-6044 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
f19eb20803
KT-5287 J2K: Convert class with private constructor and static functions to "object" instead of class with "class object"
...
#KT-5287 Fixed
2015-03-31 16:10:23 +03:00
Valentin Kipyatkov
46193f3ef7
KT-5692 Java to Kotlin conversion: convert int range loops in reverse order + a few more improvements
...
#KT-5692 Fixed
2015-03-31 16:10:22 +03:00
Valentin Kipyatkov
108a1f872c
J2K: use of new syntax for class intialization blocks
2015-03-31 16:10:21 +03:00
Denis Zharkov
13f933693f
Setup spacing rules for anonymous initializers
2015-03-18 19:59:25 +03:00
Pavel V. Talanov
06916d98c6
default -> companion: replace all mentions of default and default object
2015-03-17 15:47:39 +03:00
Valentin Kipyatkov
569e4a68ae
Support for secondary constructors in j2k
2015-03-15 22:30:19 +01:00
Alexander Udalov
6287055475
J2K: convert array.length to array.size()
2015-03-07 02:29:13 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Alexander Udalov
3c859caf2b
j2k: flatten test cases and testData directory structure
...
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
2015-01-03 00:52:59 +03:00