Commit Graph

261 Commits

Author SHA1 Message Date
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
Toshiaki Kameyama be664e26f7 KT-18232: Kotlin code converter misses annotations
#KT-18232 Fixed
2017-08-17 02:30:06 +03:00
Mikhail Glukhikh 1cb6128f2f Minor: J2K test fix 2017-07-21 12:21:04 +03:00
Dimach 65e603c1ed KT-13552: Fix J2K to generate else block while converting switch
#KT-13552 fixed
2017-07-20 23:35:11 +03:00
Mikhail Glukhikh 44790eccaf Use "unnecessary variable" inspection in J2K
Unused variables are no more treated as unnecessary
Related to KT-15958
2017-07-20 17:48:27 +03:00
Dmitry Jemerov fbcc519098 Fix tests affected by annotation wrapping changes 2017-07-20 12:32:48 +02:00
Simon Ogorodnik 36ab31f2f7 Minor: fix test after merge 2017-07-20 02:30:34 +03:00
Dimach a59021a25e KT-18786: J2K should move all properties to top of class
#KT-18786 fixed
2017-07-20 01:15:15 +03:00
Mikhail Zarechenskiy e82c909f75 Use more specific status to report diagnostics
#KT-12737 Fixed
2017-07-12 14:37:26 +03:00
Nikolay Krasko 7f8d6b3008 Don't move line and /**/ comments during reformat (KT-18805)
#KT-18805 Fixed
2017-07-10 15:32:42 +03:00
Dmitry Jemerov 5f9a33564a Implement option for wrapping method annotations 2017-07-07 16:48:31 +02:00
Denis Zharkov bc564af2fc Regenerate mockJDK using openJDK 7 2017-06-24 17:26:01 +03:00
Dmitry Neverov 3f104833ba Handle multi-line spaces and leading asterisks more correctly 2017-06-09 17:14:28 +03:00
Valentin Kipyatkov ca7a0da10f Fixed one more case of redundant type arguments 2017-06-08 23:26:39 +03:00
Valentin Kipyatkov c08d862e9e More correct algorithm for redundant type arguments detection 2017-06-08 23:26:38 +03:00
Simon Ogorodnik a6e153312c Prevent early deleting of not-null assertions
Before val to var conversion applied, smart-cast can cause
dropping not-null assertion, which will be required when val will
become var
2017-06-07 21:21:37 +03:00
Simon Ogorodnik e41c027c9a Add IDEA data-flow analysis to guess nullability
Add "if return..." folding to "return if"
2017-06-07 21:21:36 +03:00
Simon Ogorodnik 682a278cb8 Fix deleting of semicolon when it required to mark statement empty
#KT-18142 fixed
#KT-18141 fixed
2017-06-07 21:08:08 +03:00
Simon Ogorodnik f8914013ef Fix infinity deferred element unfolding in J2K
#KT-13146 fixed
2017-05-29 20:26:45 +03:00
Dmitry Petrov 7979663e6c Update testData for changed diagnostic messages 2017-05-26 13:58:46 +03:00
Simon Ogorodnik 6a8bb8b33d Fix CCE in constructNestedClassReferenceIdentifier J2K
#KT-17712 fixed
2017-05-22 13:55:26 +03:00
Valentin Kipyatkov 1fe6886a33 Fixed error message to quote parameter name 2017-05-20 23:44:20 +03:00
Dmitry Neverov 3002639fd7 Take control flow into account for checking fall-through switch branches
#KT-16133 Fixed
2017-05-10 15:57:21 +03:00
Dmitry Neverov 31478f8efa Detect escaped backslashes
#KT-15761 Fixed
2017-05-10 15:51:18 +03:00
Mikhail Glukhikh 5de55e80ce KT-13997 related: fix of J2K relevant test 2017-05-05 10:55:26 +03:00
Simon Ogorodnik 57c1d8eda4 Fix conversion of assignment as expression in J2K
Blockless if's and so with assignment as expression inside
should turn into blockful
 #KT-16816 fixed
2017-04-04 14:38:25 +03:00
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 82a70283b5 KT-15789 Kotlin plugin incorrectly converts for-loops from Java to Kotlin
#KT-15789 fixed
2017-01-26 13:33:06 +03:00
SuperVlad 5edb872224 Fix for KT-9594 J2K: null cast incorrect conversion.
#KT-9594 fixed
2017-01-13 22:03:24 +03:00
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
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
Simon Ogorodnik 2be4800307 Fix for KT-14604 J2K Yet another floating point with exponent format 2016-11-08 12:04:05 +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
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