Commit Graph

281 Commits

Author SHA1 Message Date
Tagir Valeev 6cb1553fdf JavaCompletionUtil: do not add an unnecessary cast if hierarchy signature has several levels
Fixes IDEA-185554 Redundant cast on autocompletion
2018-01-26 15:07:46 +07:00
Tagir Valeev af97567674 IDEA-184733 Better array access tracking in DFA 2018-01-10 12:26:47 +07:00
peter d4ab5f0efb java completion: don't delete everything if class name coincides with package (IDEA-180284) 2018-01-08 20:52:44 +01:00
Tagir Valeev 390cec4927 TypeConstraint#union: smarter merge of supertypes
union("is X, Y; not SubX", "is SubX, Y") now produces "is X, Y"; before it was "is Y".
Fixes IDEA-184153 Smart-cast completion fails
2017-12-22 12:42:40 +07:00
Tagir Valeev 6c4367b679 Revert "JavaCompletionUtil: use findMethodInSuperClassBySignatureInDerived" (e9f00a8) + test
It appears that findMethodInSuperClassBySignatureInDerived does not substitute recursively, at least in some cases.
2017-12-11 11:46:41 +07:00
Tagir Valeev af2f419e5f ExpressionTypeMemoryState:isSuperStateOf to check additional field
Fixes IDEA-183267 Completion based on instanceof is gone
2017-12-06 17:19:53 +07:00
Tagir Valeev f38a359e18 IDEA-182988 Spurious collection cast on completion Set -> HashSet 2017-12-04 11:58:51 +07:00
peter 20cee42f50 migrate NormalCompletionTest to use jdk 9, add test for IDEA-88939 2017-12-02 08:47:00 +01:00
Tagir Valeev 8673ad67aa IDEA-182822 Raw type completion options are suggested when actual expression type is inferred 2017-11-29 17:59:35 +07:00
Tagir Valeev d47671a183 Test for IDEA-181794 Suggest completion items with type casts in stream chains
The functionality was implemented automatically after a combination of earlier commits: 9fedf66f and 80e63e2
2017-11-22 14:33:42 +07:00
peter 724e2c37e5 IDEA-182417 Smart cast completion fails on a specific declarations 2017-11-21 12:18:12 +01:00
Tagir Valeev 9fedf66ff5 GuessManagerImpl: support type constrains from DFA, various improvements
Partially fixes IDEA-181794 Suggest completion items with type casts in stream chains if there exists 'filter(x -> x instanceof Foo)' call
Fixes IDEA-182455 Code completion: resolve actual value type assigned to local variable
2017-11-21 11:00:54 +07:00
Tagir Valeev 0dbef4cc6b GuessManagerImpl: minimal assignment handling 2017-11-20 16:11:26 +07:00
peter fbbb381483 IDEA-181657 Completion items with type casts derived from control flow are not suggested if there are several nested checks from different paths of hierarchy 2017-11-08 10:01:07 +01:00
peter 30867ebca3 java: don't complete non-annotation-methods inside incorrect annotation 2017-11-03 17:28:26 +01:00
peter 969a93d5a8 IDEA-179864 Autocomplete does not handle generics when method has parameters 2017-10-04 16:12:59 +02:00
peter bbc6baa91e IDEA-178535 Duplicate class suggestions in cast 2017-09-16 19:11:43 +02:00
peter 0f8897cacb IDEA-178141 Case sensitive completion: First Letter - doesn't work correctly if class starts with special symbol 2017-09-13 10:31:21 +02:00
peter ee3d96da1a IDEA-177895 Completion items with type casts derived from control flow are not suggested for 'this' 2017-08-31 17:39:08 +02:00
peter d562896618 a test for IDEA-174819 Following annotation is removed on autocomplete 2017-08-16 19:57:19 +02:00
peter 75179fcfef IDEA-177034 A qualified class name should be suggested when there's a shadowing type parameter 2017-08-14 19:13:11 +02:00
peter d78fe7b18f IDEA-177166 Unexpected call completion in package statement 2017-08-14 19:13:11 +02:00
peter 792940cf8e java completion: fix shadowed type parameter duplication 2017-07-26 12:34:10 +02:00
peter bcbee2120e make completion work in java type arguments inside cast 2017-07-21 09:53:58 +02:00
peter 54461cd71d IDEA-175670 Duplicate "enum.valueOf" suggestion 2017-07-13 19:29:54 +02:00
peter fddf282e16 IDEA-175677 Duplicate generic method suggestion when inheriting from a raw type 2017-07-13 19:29:54 +02:00
peter 3cd5240969 IDEA-175672 Duplicate "new char[]" suggestions 2017-07-12 22:03:49 +02:00
peter 4ce6e7c0df IDEA-175681 Duplicate "void" suggestion 2017-07-12 22:03:49 +02:00
peter 2e6cfa9223 don't generate setters for constants during completion (IDEA-CR-21764) 2017-06-09 18:16:19 +02:00
peter 1a4a90e174 IDEA-173726 Generation completion suggests create setter for final field 2017-06-09 15:41:32 +02:00
peter d9accfb4d4 IDEA-173473 Class type argument brackets are still inserted despite that being disabled 2017-05-30 20:10:36 +02:00
peter b15f49ac7a IDEA-173298 Type inference doesn't properly find return type when it is more restricted in interface than abstract class 2017-05-26 14:42:42 +02:00
Alexey Kudravtsev 4a4626c750 removed default file header, because it adds no information but subtracts attention and space 2017-05-12 14:02:24 +03:00
peter 7372d02347 override/implement completion: show short types, not raw (IDEA-CR-19511) 2017-03-27 17:39:24 +02:00
peter 09d6f71387 IDEA-169780 Show parameter types in implement/override popup 2017-03-20 13:32:19 +01:00
peter 246d10ad26 IDEA-169028 Broken auto-import completion inside lambda 2017-03-03 17:12:02 +01:00
peter 2dcd8d24ba java completion: no case enumConstant suggestions where inapplicable (IDEA-168749) 2017-02-27 14:53:56 +01:00
peter 030b38fd76 IDEA-167807 Completion inside wildcard type suggests equals 2017-02-08 17:28:32 +01:00
peter f66c322e16 prefer relevant types when completing cast type (IDEA-167190, IDEA-156868) 2017-01-31 19:23:12 +01:00
peter a5a04bb4af IDEA-167285 Using "complete current statement" with code completion produces broken code 2017-01-30 21:10:52 +01:00
peter 2ac4ed9c48 IDEA-167160 Completion doesn't suggest types for parameters in lambdas in Java 2017-01-27 15:06:16 +01:00
peter ab22b9b3ac IDEA-166582 No completion inside lambda when instance of contains lambda 2017-01-18 19:42:14 +01:00
peter 60e0db2a5c IDEA-163989 IDEA reports Object.getClass() with wrong return type for generic parameters 2016-11-21 16:41:08 +01:00
peter 283613d591 IDEA-162322 Completion missing for field in copy constructor 2016-10-10 20:49:28 +02:00
peter 72f5f15010 IDEA-157276 Code completion should disprefer primitive names in method calls 2016-09-20 17:14:01 +02:00
peter e040a3d284 IDEA-157893 Autocompletion should not use static import in case of conflict 2016-09-20 16:41:43 +02:00
peter 1368f7e7bb IDEA-CR-12743, IDEA-157088 The autocomplete to offer not only the implementation of the interface, but the interface itself (when Object arrays are expected) 2016-08-17 16:24:56 +02:00
peter 6ac6e6712b IDEA-157088 The autocomplete to offer not only the implementation of the interface, but the interface itself 2016-08-03 16:07:38 +02:00
peter 59381e94ae IDEA-158094 Auto-completion popup could display values when autocompleting constants 2016-08-01 15:37:27 +02:00
peter b3ca224f07 IDEA-55146 Autocomplete case inside switch
indent, remove duplicates, restore completion after 'case' (IDEA-CR-12610)
2016-07-28 12:39:54 +02:00