Commit Graph

271 Commits

Author SHA1 Message Date
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
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