Commit Graph

43 Commits

Author SHA1 Message Date
Dmitry Gridin 11a3482970 tests: apply official code style
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Ilya Kirillov 58db64a478 J2K: Fix old J2K test data's error messages which has changed due to new inference 2019-07-25 14:34:36 +03:00
Ilya Kirillov b411e8e18e New J2K: Split old j2k and new j2k tests 2019-04-03 11:24:19 +03:00
Ilya Kirillov b13f7431f2 New J2K: Fix existing test data 2019-04-03 11:24:13 +03:00
Ilya Kirillov ea2081c2f0 New J2K: Fix existing test data 2019-04-03 11:23:33 +03:00
Ilya Kirillov f8b8d07621 New J2K: Fix existing test data 2019-04-03 11:23:29 +03:00
Ilya Kirillov 77eb9b1b37 New J2K: Fix if statement printing with empty then body 2019-04-03 11:21:55 +03:00
Ilya Kirillov f752796408 New J2K: Fix existing test data 2019-04-03 11:21:19 +03:00
Simon Ogorodnik 57e47d1830 Propose convert to string template as inspection more frequent 2018-02-26 12:11:18 +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
Mikhail Zarechenskiy e82c909f75 Use more specific status to report diagnostics
#KT-12737 Fixed
2017-07-12 14:37:26 +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
Valentin Kipyatkov 5a6f068130 Some formatting preserving for special methods too 2016-10-03 23:23:14 +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
Pavel V. Talanov a4c005fefd Update existing test data depending on diagnostic parameter rendering 2016-02-26 14:45:11 +03:00
Ilya Gorbunov 78b7fb15f3 J2K, expected errors: for each argument of removed overloads 2016-02-09 02:58:09 +03:00
Ilya Gorbunov 805410bb19 J2K: Remove special conversion for String.format. 2016-02-03 17:14:02 +03:00
Ilya Gorbunov 31ec7bcbea Deprecate String.concat with error severity.
Fix concat j2k conversion.
Add expected deprecation errors for Java String constructors that must be converted to special Kotlin String methods.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov ddcafdd9b3 J2K: Avoid to convert to deprecated String methods, namely toByteArray. 2016-01-14 18:30:44 +03:00
Natalia Ukhorskaya 3f7b8554dd J2K: parenthesize receiver if needed
#KT-10121 Fixed
2015-12-17 11:11:20 +03:00
Ilya Gorbunov 775755dfac Introduce String.toCharArray() instead of String.getChars()
Make special method conversion for java.lang.String.getChars() in J2K
2015-11-21 00:54:29 +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
Ilya Gorbunov 7ff0e140f0 Update MockJDK to include Pattern.class required in tests for #KT-7732 2015-10-12 00:13:37 +03:00
Ilya Gorbunov 77a46cab92 J2K: Special conversion for java.lang.String methods: tests for lastIndexOf
#KT-7732
2015-10-12 00:12:55 +03:00
Ilya Gorbunov d7da8b7bd3 J2K: Special conversion for java.lang.String methods.
#KT-7732
2015-10-06 18:24:24 +03:00
Dmitry Jemerov 4ca434da54 remove support for 'trait' keyword 2015-09-22 15:00:24 +02: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 c3ddd5d32b J2K: adapted for default visibility modifier 'public' 2015-09-18 15:44:18 +03:00
Denis Zharkov 2b76941733 Deprecate throws annotation in favor of Throws 2015-09-04 17:23:26 +03:00
Stanislav Erokhin 5ded315cbb Improved error reporting for candidates with wrong parameter count 2015-09-01 23:37:42 +03:00
Valentin Kipyatkov 9e27e208ef Made test data correct 2015-06-04 16:20:30 +03:00
Valentin Kipyatkov f14615315d KT-5482 Redundant type arguments are not detected in some cases
#KT-5482 Fixed
2015-06-04 16:20:29 +03:00
Valentin Kipyatkov ce40ed1385 J2K: use arrayOf instead of array and similar 2015-05-28 00:17:04 +03:00
Ilya Gorbunov e31cb19a2c Expected output of test changed after introducing new overload of listOf. 2015-05-24 05:03:56 +03:00
Denis Zharkov 036f31f36b j2k: Generate class literals in throws 2015-04-21 08:08:32 +03:00
Valentin Kipyatkov c57f2b10d6 J2K: use of emptyList, emptySet and emptyMap 2015-03-31 16:10:23 +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 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
Pavel V. Talanov 06916d98c6 default -> companion: replace all mentions of default and default object 2015-03-17 15:47:39 +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