Commit Graph

5826 Commits

Author SHA1 Message Date
Toshiaki Kameyama ed04b4debd Add quick-fix for empty brackets after primary constructor
So #KT-18534 Fixed
2017-06-28 15:28:21 +03:00
Denis Zharkov bc564af2fc Regenerate mockJDK using openJDK 7 2017-06-24 17:26:01 +03:00
Nikolay Krasko 87889904ee Allow only one invoke to be a target for smart step into (KT-18632)
It's difficult to distinguish such calls reliably in debug session

 #KT-18632 Fixed
2017-06-23 21:33:26 +03:00
Mikhail Glukhikh c99db11ace Visibility can be private: do not perform too expensive search
Also, additional test for usage via accessor was added
So #KT-18617 Fixed
2017-06-23 18:15:20 +03:00
Nikolay Krasko 502ac80b89 Do not skip invoke call on parameters during smart step into (KT-18577)
#KT-18577 Fixed
2017-06-23 13:47:33 +03:00
Alexey Sedunov 9681f5ca42 Generate equals/hashCode(): Enable for classes without properties
Also:
- forbid for enum classes
- use javaClass.hashCode() instead of 0 if class has no properties

 #KT-18418 Fixed
2017-06-22 19:50:55 +03:00
Alexey Sedunov 895407f5e3 Rename: Do not silently rename all parameters in function hierarchy
#KT-18325 Fixed
2017-06-22 19:50:54 +03:00
Alexey Sedunov 423fb9dfb3 Move/Copy: Warn about usages of JDK when moving to non-JVM module
#KT-18135 Fixed
2017-06-22 19:50:52 +03:00
Alexey Sedunov 1d36c49537 Copy: Copy elements and process usages under the same write action
In some cases doing these operations in separate write actions
may lead to invalidation of copied elements

 #KT-18149 Fixed
2017-06-22 19:50:51 +03:00
Alexey Sedunov 6b18ff1d97 Copy/Move: Fix processing of calls used as callees
#KT-18241 Fixed
2017-06-22 19:50:50 +03:00
Mikhail Zarechenskiy 0579604653 Do not propose to specify constructor invocation in diagnostics
#KT-17188 Fixed
2017-06-22 15:02:10 +03:00
Mikhail Zarechenskiy 0f350f5db8 Don't report error on member that overrides open member from final class
#KT-14598 Fixed
2017-06-22 15:02:09 +03:00
Mikhail Zarechenskiy 9847278699 Report error about invalid if as expression on the if keyword
#KT-14633 Fixed
2017-06-22 14:18:11 +03:00
Mikhail Zarechenskiy 16de991b07 Add test for obsolete issue
#KT-8262 Obsolete
2017-06-22 13:41:30 +03:00
Nikolay Krasko 3ffd63a17c Attempt for fix flaky debugger tests - wait for the resume before exit 2017-06-21 17:49:03 +03:00
Mikhail Zarechenskiy 1e020644e1 Fix getting right bracket element for collection literal 2017-06-21 01:22:08 +03:00
Mikhail Zarechenskiy 837df66c19 Register reference contributor for collection literals
#KT-18551 Fixed
2017-06-21 00:16:28 +03:00
Nikolay Krasko 44d3b8fb1a Ignore sub-queries for other operators with the same receiver (KT-18566)
ExpressionsOfTypeProcessor searches for all occurence of expression
with given type. It start from usages of the class, searches for sub-classes,
declarations that return those classes, usages of these declarations,
and so on.

During this search, find usages for all operators that return the
subject type is executed as sub-queries. Full search for such queries
can't give addition types. And it also shouldn't give additional scopes
for search, because same scopes should be located by operands. In other
words, if sub-query can spot the scope of usage starting from the same
type, the original query should also process same scope.

 #KT-18566 Fixed
2017-06-20 16:53:05 +03:00
Mikhail Zarechenskiy 2a4cac024b Add test for obsolete issue
#KT-13813 Obsolete
2017-06-19 17:36:10 +03:00
Mikhail Zarechenskiy aeac2ea384 Fix 'add not-null asserted call' quick fix for operation in
#KT-18529 Fixed
2017-06-19 17:36:09 +03:00
Mikhail Zarechenskiy b53a3b324f Fix 'infix call' diagnostic for in operation
#KT-8845 Fixed
2017-06-19 17:36:08 +03:00
fitermay 0dced8d29c Do not suggest "Make overridden member open" for already open ones
So #KT-18148 Fixed
2017-06-16 15:04:10 +03:00
shiraji cbccf932a7 Add inspection removing redundant spread operator for arrayOf call
So #KT-17920 Fixed
2017-06-16 15:04:04 +03:00
Toshiaki Kameyama b9fb7cc3a5 Add quick fix to generate equals / hashcode in data class with arrays
So #KT-15893 Fixed
2017-06-16 15:03:52 +03:00
Dmitry Neverov 5df5a001a1 Support implicit receiver in if-then intentions #KT-16069 Fixed 2017-06-16 15:02:44 +03:00
Kirill Rakhman 13a2612e20 Add inspection for ranges with start > endInclusive #KT-18438 Fixed 2017-06-16 15:02:31 +03:00
shiraji 647558c98a Add inspection for potentially wrongly placed unary operators
So #KT-18236 Fixed
2017-06-16 15:02:24 +03:00
Alexey Sedunov 1544467725 Presentation: Fix NPE on star projection rendering
EA-100480 Fixed
2017-06-15 17:26:39 +03:00
shiraji ab4eb1dd20 Add better quickfix for scope functions #KT-13676 Fixed 2017-06-15 15:01:42 +03:00
Dimach d369fa094a Add Boolean? == const to elvis conversion and vice versa #KT-15368 Fixed
Convert elvis to equality check implemented as inspection due
code style guide
2017-06-15 15:01:39 +03:00
Nikolay Krasko 60c8d5dcc0 Fix search usages for invoke() with vararg parameter (KT-18479)
#KT-18479 Fixed
2017-06-15 14:00:42 +03:00
Nikolay Krasko 018d4653e8 Fix search usages for invoke() extension operator (KT-18269)
#KT-18269 Fixed
2017-06-15 14:00:41 +03:00
Pavel V. Talanov 6eb4addb6e Test 'find symbol' when same jar is shared by libs(some without sources) 2017-06-15 13:35:40 +03:00
Pavel V. Talanov 8cfd6ffae0 Test navigation from source when same jar is in different libraries
One library can have sources attached and the other doesn't

 #KT-15093 In progress
2017-06-15 13:35:39 +03:00
Nikolay Krasko 850568b8e9 Support "Force Step Over" action over suspended calls (KT-18453)
#KT-18453 Fixed
2017-06-15 13:29:28 +03:00
Nikolay Krasko 0e8e8ef546 Step over for suspended calls (KT-18453)
Debugger do the normal step over action and checks if function is
going to suspend. In this case the "run-to-cursor" breakpoint is
installed on function enter to intercept re-enter into function
after suspension.

 #KT-18453 In Progress
2017-06-15 13:29:27 +03:00
Dmitry Jemerov 0e2bdb8e66 Support CONFIGURE_LIBRARY directive in intention tests
Also restore tests for ConvertCamelCaseTestFunctionToSpaced
and apply fix for KT-18375
2017-06-14 16:17:01 +02:00
Dmitry Jemerov 4fa75256b7 Options for wrapping parentheseses in calls (KT-18113) 2017-06-14 14:37:30 +02:00
Dmitry Jemerov 2e9a3e6d12 Option to use continuation indent in expression bodies (KT-9818) 2017-06-14 14:37:22 +02:00
Dmitry Jemerov f4c75e61ad Option to use continuation indent in parameter lists 2017-06-14 14:33:52 +02:00
Dmitry Jemerov fc2a1fce8b Remove line break between ) and : if there's a line break before ) 2017-06-14 14:33:42 +02:00
Dmitry Jemerov a0b5a3a8a2 Implement parenthesis wrapping options 2017-06-14 14:33:41 +02:00
Dmitry Jemerov f32dc9e84e Put lambda parameters on the same line as opening curly brace 2017-06-14 14:18:58 +02:00
Toshiaki Kameyama af941bfdf5 KT-18158 Expand selection should select the comment after expression getter on the same line (#1122)
* Expand selection should select the comment after expression getter on the same line #KT-18158 Fixed

* Fixed expand selection behavior for the declaration with comment #KT-18158

* Remove redundant code #KT-18158
2017-06-14 12:28:56 +02:00
Dmitry Jemerov b1f84676d1 Update tests according to new formatter behavior 2017-06-14 11:40:41 +02:00
Andrius Semionovas 8c6f93b899 Add tests for KEEP_LINE_BREAKS 2017-06-14 11:28:57 +02:00
Andrius Semionovas 839141e4f6 Stop formatting line breaks between keywords and parentheses 2017-06-14 11:28:57 +02:00
Andrius Semionovas c6acc4c5be KT-16558 Add space before parentheses config 2017-06-14 11:28:57 +02:00
Nikolay Krasko 6d22e06359 Move all test data for single test to one directory 2017-06-13 19:14:48 +03:00
Mikhail Glukhikh 44e727b75c Redundant toString() in string template: highlight selector only
And not the receiver. So #KT-18253 Fixed
2017-06-13 15:17:42 +03:00