Commit Graph
3030 Commits
Author SHA1 Message Date
Anna Kozlova 8fdf37e038 inference: skip unchecked warning for types based on inference variables (IDEA-151761) 2016-02-16 18:15:03 +01:00
Anna Kozlova a530fe132f inference: don't erase inference variables (IDEA-151750) 2016-02-16 15:57:18 +01:00
Anna Kozlova abd1b44e85 redundant args: copy the file to avoid incompleted psi 2016-02-16 15:57:18 +01:00
peter 4017392691 fix WordCompletionTest 2016-02-16 11:24:10 +01:00
peter 0df183f2af java smart enter: place caret inside braces for switch statement followed by an empty line 2016-02-15 19:09:39 +01:00
Anna Kozlova 7a671c53f8 stream api: fix primitive boxing (IDEA-151494) 2016-02-15 15:49:06 +01:00
Anna Kozlova b424316b32 disable static import suggestions for references resolved with incomplete flag = true (IDEA-151264) 2016-02-15 15:49:06 +01:00
Bas Leijdekkers 6e43997abd add quickfix for non-disjoint multi-catch 2016-02-12 21:30:28 +01:00
peter 258d0be564 IDEA-151552 No completion after instanceof inside lambda 2016-02-11 13:27:29 +01:00
peter 047e6d7ff2 java completion: qualify calls to outer class methods when needed (IDEA-144816, IDEA-151237) 2016-02-11 12:39:17 +01:00
peter 15a7d36b6e IDEA-151470 Autocomplete not suggesting after finally block 2016-02-11 12:18:35 +01:00
peter 97c4d325e2 IDEA-151356 Simplifying known true/false conditions should remove unnecessary parentheses 2016-02-10 12:39:19 +01:00
Anna Kozlova b4d2e26d84 fix assertion with code block lambda 2016-02-09 20:09:10 +01:00
Anna Kozlova 1f640238e0 inference: retrieve type from containing call if the corresponding method is not generics (IDEA-151443) 2016-02-09 20:09:10 +01:00
Anna Kozlova 2c18695de0 generate constructor: do not insert new line if member would be generated in another place (IDEA-151327) 2016-02-09 12:41:01 +01:00
Anna Kozlova e3f5740e07 captured wildcard: convert to primitive (IDEA-151408) 2016-02-09 12:41:01 +01:00
Anna Kozlova 5793ec77ed retrieve collection type from capture in foreach stmt (IDEA-151406) 2016-02-09 12:41:01 +01:00
Anna Kozlova ff21fd0ea5 calculate transitive inference variable's dependencies (IDEA-151170) 2016-02-03 16:10:26 +03:00
Anna Kozlova e7c7fab136 stop at lambda also if it is explicitly typed
EA-78231 - SOE: InferenceSessionContainer.infer
2016-02-03 12:39:27 +03:00
Dmitry Batrak f43d280fc0 fix tests (following commit 83b4e7e) 2016-02-02 15:40:07 +03:00
Dmitry Batrak 0a2e21407b inserting paired brace for lambda body (following IDEA-CR-8127) 2016-02-02 15:40:07 +03:00
Anna Kozlova a6625994fb overload resolution: don't skip errors from another context (IDEA-151119) 2016-02-02 14:38:40 +03:00
Dmitry Batrak 83b4e7e39b IDEA-115612 Insert pair brace before dot in Java 2016-02-02 13:39:26 +03:00
peter 473384bbf6 java 8 completion: suggest Collectors toList/toSet/toCollection in statement context 2016-02-01 18:16:21 +01:00
Anna Kozlova ea9e4ba63c method reference on getClass: fix method reference constraint 2016-02-01 16:53:20 +03:00
Anna Kozlova bd2113b739 lambda -> method ref: avoid Object::getClass as the type depends on qualifier (IDEA-150967) 2016-02-01 16:53:20 +03:00
Anna Kozlova 7bbd70e695 substitute with bounds promotion: don't wrap wildcards 2016-02-01 16:53:20 +03:00
Anna Kozlova e6357ca1dd method refs: fix getClass() return type in case of method references 2016-02-01 16:53:20 +03:00
Anna Kozlova 70e66b80fb method references: remove code duplication in return type checks 2016-01-29 21:23:38 +03:00
Anna Kozlova 62bdd90f58 anonym -> lambda: check inferred type in the same context (IDEA-150947) 2016-01-28 18:50:28 +03:00
peter 5899792ff2 IDEA-96099 Smart completion fails with local inner classes 2016-01-28 16:30:05 +01:00
peter 4035b66f26 IDEA-150909 Ambiguous class static method completion has confusing behaviour 2016-01-28 16:30:03 +01:00
Anna Kozlova 5a1929cacc overload resolution: cls method text should not be called to avoid decompilation and shortening of the class references 2016-01-27 20:02:35 +03:00
Anna Kozlova c06f66ab26 SOE with numeric conditional expressions when expression inside is not standalone
EA-78419 - SOE: InferenceSessionContainer.infer
2016-01-27 13:57:06 +03:00
Anna Kozlova ec89fa2295 type distinction: remove non-symmetrie for type param bounds (IDEA-150724) 2016-01-27 13:57:06 +03:00
Anna Kozlova a035c14d75 overload resolution: don't include constraints on functional expressions into applicability check during overload resolution (IDEA-150745) 2016-01-26 17:30:03 +03:00
Anna Kozlova 7c708a0eac EA-78369 - NPE: PsiDiamondTypeImpl$InferredAnonymTypeVisitor.visitClassType 2016-01-26 17:30:03 +03:00
Anna Kozlova a166bd1059 overload resolution: infer most specific agains formal param types substituted against site substitutor, including param bounds (IDEA-150773) 2016-01-25 18:52:15 +03:00
Anna Kozlova 7b2e554b0a inference: cache erasure flag together with partial inference (IDEA-150802) 2016-01-25 18:52:15 +03:00
Anna Kozlova 883f7f3f39 overload resolution: apply site substitution before potential compatibility check (IDEA-150807) 2016-01-25 18:52:15 +03:00
Alexander Zolotov 9f1c967cff Postfix templates: add tests for new templates and use full qualified names
in templates
2016-01-25 16:33:20 +03:00
peter 72bed0ac68 IDEA-145145 Code Completion does not work properly in Collectors.toMap 2016-01-25 14:25:50 +01:00
Rustam Vishnyakov 7144e23b77 Fix test data (default color for class/interface names is black, not undefined) 2016-01-22 18:48:26 +03:00
Anna Kozlova 097d08f04e remove unused parts of test data 2016-01-22 14:29:01 +03:00
Anna Kozlova f2a0fbd694 retrieve inference errors from containing calls as they themselves won't be highlighted as there are errors in arguments (IDEA-150123) 2016-01-22 14:29:01 +03:00
Anna Kozlova 5d70440851 foreach -> collect: simplify to addAll on collections if no filter/mapper is present (IDEA-150515) 2016-01-22 14:29:01 +03:00
peter 55f0e703e7 update dfa intention test expectations after IDEA-149904 2016-01-21 20:22:23 +01:00
peter 1281cc8959 remove size() from collection.toArray() smart completion (IDEA-142273) 2016-01-20 16:47:54 +01:00
peter b3c40ee773 dfa: highlight just method reference name on possible NPE warnings (IDEA-149904) 2016-01-20 16:47:53 +01:00
Roman Shevchenko d8b29b8401 [java] connect resolution of generics in resource closer method (IDEA-150607) 2016-01-20 12:43:56 +01:00