Vyacheslav Gerasimov
2ec1a4311a
Implement Kotlin configurator for GSK
...
#KT-14965 Fixed
2017-07-07 03:23:17 +03:00
Simon Ogorodnik
9f340b40c2
Minor: Add test to check inferred types shown correctly in parameter info
...
#KT-11858 Obsolete
2017-07-06 20:40:53 +03:00
Alexander Udalov
e8a8bdc58e
Add test on cyclicly dependent Java 9 modules
2017-07-06 13:01:12 +03:00
Alexey Sedunov
994b6d687c
Find Usages: Use MethodReferencesSearch to find constructor usages
2017-07-04 19:37:55 +03:00
Denis Zharkov
5141a88a53
Add TypeQualifier annotation to IDE test data
...
Othewise nullability is not processed correctly
2017-07-03 17:55:37 +03:00
Dmitry Neverov
4f678fa85c
Do not suggest !! on expression which is always null
...
Related to KT-14643
2017-07-03 15:14:11 +03:00
Dmitry Neverov
66bd9d63dd
Do not suggest adding !! on null constant #KT-14643 Fixed
2017-07-03 15:13:46 +03:00
Simon Ogorodnik
ab919886ae
Fix rendering of local anonymous object types for quick doc
...
#KT-8893 fixed
2017-07-01 15:04:29 +03:00
Alexey Sedunov
9ba868a903
Minor: Fix test data
2017-06-30 13:53:09 +03:00
Alexey Sedunov
88968807b2
Generate equals/hashCode(): Swap class literals in comparison
2017-06-29 17:42:20 +03:00
Alexey Sedunov
e3e4c447fa
Generate equals/hashCode(): Use class literals when possible
...
#KT-18683 Fixed
2017-06-29 17:42:18 +03:00
Alexey Sedunov
50a38df8b1
Remove Parentheses: Forbid on call inside a call without argument list
...
#KT-18699 Fixed
2017-06-29 17:42:17 +03:00
Alexey Sedunov
2e8b374ce8
Move: Use KtNamedDeclaration as referrer when reporting a conflict
...
EA-103817 Fixed
2017-06-29 17:42:15 +03:00
Alexey Sedunov
6060a39494
Change Signature: Use correct index in getOriginalParameter()
...
#KT-18642 Fixed
#KT-18606 Fixed
2017-06-29 17:42:09 +03:00
Nikolay Krasko
df393e18fe
Configure AbstractInspectionTest with project descriptors
...
Previous implements produced flaky tests when non-js tests were
executed after js.
2017-06-29 16:56:15 +03:00
Mikhail Glukhikh
fdca96634e
Add restrictions for "simplifiable call chain" inspection
...
Do not use on maps; do not suggest for lambdas with return inside
Related to KT-18274
2017-06-29 16:25:55 +03:00
Mikhail Glukhikh
36be1fdaef
Introduce "simplifiable call chain on collection" inspection
...
Related to KT-12165
So #KT-18274 Fixed
So #KT-17198 Fixed
2017-06-29 16:25:52 +03:00
Mikhail Glukhikh
bdb9f00c75
Introduce "Useless call on collection type" inspection
...
Related to KT-12165
Supported functions: filterNotNull, filterIsInstance,
mapNotNull, mapNotNullTo, mapIndexedNotNull, mapIndexedNotNullTo
Also, "Useless cal on not-null" improved a bit
2017-06-29 16:25:50 +03:00
Mikhail Glukhikh
f80f41d254
Introduce "redundant explicit type" inspection #KT-18517 Fixed
...
Reported cases: constants, constructors, object references
2017-06-29 16:25:47 +03:00
Mikhail Glukhikh
0f4ae3b727
Introduce "Useless call on not-null type" inspection #KT-18386 Fixed
...
Supported functions: orEmpty(), isNullOrEmpty(), isNullOrBlank()
2017-06-29 16:25:45 +03:00
Alexander Udalov
f8346d21c2
Check type alias expansion for Java 9 module accessibility
...
#KT-18598 In Progress
2017-06-29 15:59:57 +03:00
Alexander Udalov
8768500844
Fix incorrect behavior and refactor JvmModuleAccessibilityChecker
...
Previously we assumed that a symbol is accessible if its containing
package is exported by module-info.java. Which was obviously wrong and
could lead to a situation where a symbol would be incorrectly accessible
if a usage module has a dependency on the symbol's module in IDEA
project terms, but does not require it in its module-info.java
#KT-18598 In Progress
2017-06-29 15:59:57 +03:00
Alexander Udalov
e32880d9a3
Implement Java 9 module visibility checks
...
In this commit, only IDE tests are added, because we look for module
declarations in the IDE across the whole project, whereas in the
compiler we should do this on the module path only and that requires
separate work (KT-18599) which is done in the following commits.
(The change in Cache.kt is needed so that
JvmModuleAccessibilityChecker.ClassifierUsage, which is an inner class,
would be injected properly.)
#KT-18598 In Progress
#KT-18599 In Progress
2017-06-29 15:59:56 +03:00
Dmitry Neverov
3e29f9ed5a
Don't report as redundant 1st semicolon in enum without entries
...
So #KT-12524 Fixed
2017-06-28 15:30:40 +03:00
Toshiaki Kameyama
3a606d13f0
Extends range of change visibility intention #KT-14093 Fixed
2017-06-28 15:28:50 +03:00
Dmitry Neverov
44ce5f73f7
Apply De Morgan's laws to non-negated binary expressions
...
So #KT-18460 Fixed
2017-06-28 15:28:43 +03:00
Toshiaki Kameyama
af53a0ecd5
Add quick-fix "Replace with safe call & elvis" #KT-17815 Fixed
2017-06-28 15:28:35 +03:00
Toshiaki Kameyama
c2707bb81b
Support cascade if / when in lift return / assignment intentions
...
So #KT-13458 Fixed
So #KT-13436 Fixed
2017-06-28 15:28:28 +03:00
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