Commit Graph

446 Commits

Author SHA1 Message Date
Alexey Sedunov 5319e9e761 Change Signature: Support configurable Change Signature for Java code
#KT-5923 Fixed
2015-07-03 18:38:06 +03:00
Alexey Sedunov 9e82411e78 Change Signature: Do not process calls with unmatched arguments/parameters 2015-07-03 18:38:05 +03:00
Valentin Kipyatkov eadeb6e63f DirectiveBasedActionUtils: don't allow to specify ACTION directives that won't be checked anyway 2015-06-30 13:41:41 +03:00
Valentin Kipyatkov db144a6121 Suggestions from expression itself to have higher priority + fixed incorect upper case naming 2015-06-29 19:36:49 +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 463b0cda79 Fixed test data 2015-06-29 19:29:26 +03:00
Valentin Kipyatkov 2bd1362be6 Create function/property from usage: added "member" when appropriate + changed order 2015-06-29 19:29:25 +03:00
Denis Zharkov ad99b079b9 Update intention tests: don't use java.util.Collections.*
Because their behaviour depends on annotations that we are going to drop
2015-06-23 16:44:46 +03:00
Ilya Gorbunov f2788d53c0 Refactor: rename PropertyMetadata parameter from 'desc' to 'property'.
Correct test data after parameter has been renamed.
2015-06-19 23:08:08 +03:00
Denis Zharkov e3c3af6aab Change MISSING_CONSTRUCTOR_KEYWORD severity to error
And adjust testData
2015-06-12 11:23:13 +03:00
Denis Zharkov 980499e331 Drop javaClass in annotations related things from inspections/quickfixes 2015-06-12 09:55:09 +03:00
Denis Zharkov 26864a4407 Get rid of annotation syntax deprecation related things 2015-06-12 09:23:32 +03:00
Denis Zharkov c9f79c2d05 Adjust testData: get rid of obsolete annotations 2015-06-12 09:23:31 +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 aefe0dd192 Changed highlighting range and attributes of useless elvis operator 2015-06-02 14:35:19 +03:00
Denis Zharkov 11290ae9e7 Fix wrong assumptions in quickfix
Diagnostic is always reported on overriden property

 #EA-64407 Fixed
2015-06-02 14:07:49 +03:00
Valentin Kipyatkov 034b74d3e5 Rewritten ChangeVariableMutabilityFix
#KT-7877 Fixed
2015-06-01 18:23:34 +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
Denis Zharkov 53e9234ea9 Add quickfix for replacing positioned arguments in Java annotation 2015-05-27 17:41:27 +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 0d8d030763 "Add constructor parameters" fix - fixed display of too long signatures 2015-05-27 16:15:51 +03:00
Valentin Kipyatkov 04bee4dd7d Fixing issues after code review 2015-05-27 16:15:51 +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
Valentin Kipyatkov f8a4d9bf0b Moved test data into subfolders 2015-05-27 16:15:48 +03:00
Valentin Kipyatkov f58ce760ca DeprecatedSymbolUsageFix: support for optional parameters (not complete) 2015-05-27 16:15:47 +03:00
Valentin Kipyatkov 766ca2b905 Deprecated symbol usages fix for the whole project 2015-05-27 16:15:47 +03:00
Valentin Kipyatkov 5c445ca003 DeprecatedSymbolUsageFix: dealing with dropping arguments with potential side effects + stdlib's "let" has no receiver type bound 2015-05-27 16:15:47 +03:00
Valentin Kipyatkov 08cfca56f8 DeprecatedSymbolUsageFix - dealing with infix and operator calls 2015-05-27 16:15:47 +03:00
Valentin Kipyatkov 2a5ca095ee DeprecatedSymbolUsageFix - correct dealing with implicit receivers + fixed KT-7776 in completion
#KT-7776 Fixed
2015-05-27 16:15:46 +03:00
Valentin Kipyatkov 5da192ddd4 DeprecatedSymbolUsageFix - fixed bug with usage in derived class 2015-05-27 16:15:46 +03:00
Valentin Kipyatkov a773542d47 DeprecatedSymbolUsageFix - handling of complex expressions used twice 2015-05-27 16:15:46 +03:00
Valentin Kipyatkov 348d09866a DeprecatedSymbolUsageFix: more correct generation of "let" for safe call 2015-05-27 16:15:45 +03:00
Valentin Kipyatkov df850d7035 DeprecatedSymbolUsageFix: initial implementation 2015-05-27 16:15:45 +03:00
Valentin Kipyatkov 0a886320ca JetWholeProjectForEachElementOfTypeFix - not too much duplicating string arguments 2015-05-27 16:15:45 +03:00