Yan Zhulanow
3fa506fd45
"Inapplicable operator modifier" and "Inapplicable infix modifier" are now errors
2016-01-26 17:21:44 +03:00
Ilya Gorbunov
4f1d2252f0
Make test for replacement, which requires adding import to the package with operator, independent from stdlib.
2016-01-22 05:54:38 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Mikhail Glukhikh
dc60c62781
Enum.values is now deprecated but Enum.values() is no more deprecated
2015-11-23 17:29:36 +03:00
Valentin Kipyatkov
e66f1c2d70
KT-9981 Code cleanup replace usages of !in incorrectly
...
#KT-9981 Fixed
2015-11-13 14:32:33 +03:00
Valentin Kipyatkov
de11d571ef
KT-9928 Replacement not offered for a usage of symbol deprecated with DeprecationLevel.ERROR
...
#KT-9928 Fixed
2015-11-11 16:49:52 +03:00
Svetlana Isakova
7150be7c67
Minor: fixed error message
2015-10-22 19:09:46 +03:00
Valentin Kipyatkov
28c950ffbe
Better replacement for annotations with parameters in ReplaceWIth pattern but still lot of safety pre-checks to be added
2015-10-19 19:22:26 +03:00
Valentin Kipyatkov
4290601807
VERY rough implementation of annotations with parameters in ReplaceWIth pattern
2015-10-19 19:22:26 +03:00
Valentin Kipyatkov
a8d9c761c8
Correct detection of non-qualified references in ReplaceWith analyzer
2015-10-19 18:40:15 +03:00
Denis Zharkov
d8ede6d03e
Transform Enum.values to property
2015-10-17 17:46:16 +03:00
Denis Zharkov
f0e3fd617d
Adjust testData to CharSequence.length transformation
2015-10-14 20:39:35 +03:00
Valentin Kipyatkov
2ae13ed76b
KT-9380 Handle malformed ReplaceWith annotations gracefully
...
#KT-9380 Fixed
2015-10-05 15:33:45 +03:00
Dmitry Jemerov
4ca434da54
remove support for 'trait' keyword
2015-09-22 15:00:24 +02:00
Valentin Kipyatkov
8ba7f2c238
KT-9128 ReplaceWith incorrectly converts javaClass<X>() to X::class.java for type with arguments
...
#KT-9128 Fixed
2015-09-18 15:44:17 +03:00
Valentin Kipyatkov
fb72786392
No ReplaceWith for locals
2015-09-18 15:44:16 +03:00
Denis Zharkov
4850fd10f0
Regenerate test data containing rendered descriptors
...
Introduced '@' after each annotation
2015-09-18 10:14:39 +03:00
Michael Nedzelsky
92ca057b4a
fix tests in org.jetbrains.kotlin.idea.quickfix
2015-09-08 02:05:41 +03:00
Denis Zharkov
31244edec9
Deprecate deprecated in favor of Deprecated
2015-09-04 18:19:31 +03:00
Valentin Kipyatkov
4085c1cf41
One more test
2015-09-03 15:56:00 +03:00
Valentin Kipyatkov
64e520b689
Moved test data
2015-09-03 15:56:00 +03:00
Valentin Kipyatkov
c5891d255d
Added test
2015-09-03 15:55:59 +03:00
Valentin Kipyatkov
6575fb8535
Annotations supported
...
#KT-8912 Fixed
2015-09-03 15:55:59 +03:00
Valentin Kipyatkov
366204da85
Constructor usages are replaced too
2015-09-03 15:55:59 +03:00
Valentin Kipyatkov
de13e23a0a
Initial support for class usages replacement with ReplaceWith
2015-09-03 15:55:59 +03:00
Valentin Kipyatkov
8dbe87a918
Moved classes
2015-09-03 15:55:58 +03:00
Valentin Kipyatkov
37ed77467f
Fixed ReplaceWith quickfix not working when synthetic extensions are used in the pattern
2015-09-03 15:55:57 +03:00
Valentin Kipyatkov
10f7d6d7dd
Inspection (and quickfix) for extension propeties conflicting with synthetic ones
2015-09-03 15:55:54 +03:00
Valentin Kipyatkov
937f243046
DeprecatedSymbolUsageInWholeProjectFix removes imports too
2015-08-31 15:48:25 +03:00
Valentin Kipyatkov
498e746689
KT-8169 Strange exception when replacing function call to its only argument
...
#KT-8169 Fixed
2015-06-29 19:29:26 +03:00
Valentin Kipyatkov
366a2be8a7
KT-7989 ReplaceWith replacement adds redundant type arguments for platform types
...
Highlighting of redundant type arguments made more strict about platform types
#KT-7989 Fixed
2015-06-11 23:30:22 +03:00
Pavel V. Talanov
07d35d305e
Create import list psi element even if no directives are present
...
Fix a problem where deleting last import directive via "optimize imports" could lead to incorrect psi structure resulting in CCE, see EA-64291
New imports are inserted at the head (after package directive if present) of the file (before any comments) if no imports were present
Add test for inserting import to file where a first statement is a comment
Drop code dealing with non-existing import list in ImportInsertHelperImpl
AbstractQuickFixTest: check for unexpected actions before changes to the file are made as it relies on the first line having specific format
2015-06-08 20:51:04 +03:00
Valentin Kipyatkov
6751a1d440
DeprecatedSymbolUsageFix: keeping explicit type arguments in original form
2015-06-04 16:20:30 +03:00
Valentin Kipyatkov
a26c62ab0f
KT-7895 Auto replace for deprecated (ReplaceWith) loses generic type
...
#KT-7895 Fixed
2015-06-04 16:20:29 +03:00
Valentin Kipyatkov
e60c3f5ee7
DeprecatedSymbolUsageFix: fixed for string template
2015-06-02 14:36:06 +03:00
Valentin Kipyatkov
134621ce77
DeprecatedSymbolUsageFix: fixed for incorrect annotation arguments
2015-06-02 14:36:05 +03:00
Valentin Kipyatkov
859128744e
Fixed DeprecatedSymbolUsageInWholeProjectFix
2015-05-29 15:06:14 +03:00
Valentin Kipyatkov
09028390fd
Corrected test data
2015-05-28 21:35:05 +03:00
Valentin Kipyatkov
08cf8065ea
DeprecatedSymbolUsageFix to keep line breaks when possible
2015-05-28 16:14:15 +03:00
Valentin Kipyatkov
d415b0c74d
Fixed critical bug in DeprecatedSymbolUsageFix
2015-05-28 13:45:07 +03:00
Valentin Kipyatkov
697516cfdd
DeprecatedSymbolUsageFix: fixed for java declaration + one more test
2015-05-27 16:15:55 +03:00
Valentin Kipyatkov
d5d1158e44
Comment saver is more clever about comma's
2015-05-27 16:15:55 +03:00
Valentin Kipyatkov
d3403dee1a
DeprecatedSymbolUsageFix preserves comments
2015-05-27 16:15:54 +03:00
Valentin Kipyatkov
5df840d9e3
Getting default value from overriding method
2015-05-27 16:15:50 +03:00
Valentin Kipyatkov
e767cdef83
DeprecatedSymbolUsageFix: fixed nested calls with implicit receivers in the pattern
2015-05-27 16:15:49 +03:00
Valentin Kipyatkov
a9e00a3264
DeprecatedSymbolUsageFix: can drop more arguments when function literal argument exist
2015-05-27 16:15:49 +03:00
Valentin Kipyatkov
2e2701aa61
DeprecatedSymbolUsageFix: keeping named arguments
2015-05-27 16:15:49 +03:00
Valentin Kipyatkov
161630a449
DeprecatedSymbolUsageFix: keeping functional literal arguments out of parenthesis
2015-05-27 16:15:48 +03:00
Valentin Kipyatkov
be9a3d10f6
DeprecatedSymbolUsageFix: fixed bug with symbols from root package not imported
2015-05-27 16:15:48 +03:00
Valentin Kipyatkov
97d3620262
DeprecatedSymbolUsageFix: dealing with vararg's
2015-05-27 16:15:48 +03:00