Commit Graph
4936 Commits
Author SHA1 Message Date
Anna.Kozlova d780e31bdf inference: ensure foreign variables do not participate in inference process, e.g. variables from method reference overload resolution (IDEA-154622) 2016-04-13 21:11:02 +02:00
Anna.Kozlova 1a9c4c2f19 extract method: when context was changed ensure that static method is not qualified with this 2016-04-13 21:11:02 +02:00
Anna.Kozlova 9086115347 method ref: type parameter instantiation (IDEA-154645) 2016-04-13 12:30:54 +02:00
Anna.Kozlova fc14dddfd8 check for abstract method implemented optimized: don't go through hierarchy if superClass is not abstract and there is no interfaces, would also fix asm implementations with 'broken' erasures inside 2016-04-11 21:51:18 +02:00
Anna.Kozlova 1466b0155e bad code green: reject return type constraint if unchecked conversion was applied during applicability check and return type is type parameter 2016-04-11 21:51:18 +02:00
Anna.Kozlova 59daba3004 disable return void suggestion (IDEA-154467) 2016-04-11 12:48:53 +02:00
Roman Shevchenko 6eefa1badb [java] numeric overflow inspection on left shift (IDEA-154370) 2016-04-08 20:33:33 +02:00
Roman Shevchenko 16c08edfc2 Cleanup (test data formatting) 2016-04-08 19:46:37 +02:00
Roman Shevchenko 9d4ff8c389 [tests] numeric overflow inspection test migrated 2016-04-08 19:41:24 +02:00
Anna.Kozlova 9cdb5a70af trivial method ref: check if qualifier is of assignable type (IDEA-154422) 2016-04-08 18:44:25 +02:00
Anna.Kozlova 9150e6fd4a clear error message (IDEA-154419) 2016-04-08 18:44:25 +02:00
Anna.Kozlova a8ad27f8a9 no need to check unrelated concrete for same named constructors in the hierarchy (IDEA-154377) 2016-04-08 18:44:25 +02:00
Anna.Kozlova 572b7d8e7e disable create enum constant when not applicable (IDEA-154293) 2016-04-08 18:44:25 +02:00
Roman Shevchenko 3c6b40759b [java] adds PsiModifierList.hasModifierProperty() augmentation point (IDEA-153706) 2016-04-08 10:36:41 +02:00
Anna.Kozlova 0ed05632ff ensure non-initialized fields used inside lambdas are rejected if lambda is inside class initializer only (IDEA-154305) 2016-04-07 15:13:00 +02:00
Anna.Kozlova 66a8aa11b8 collect unhandled exceptions from enum constructor (IDEA-154283) 2016-04-07 15:13:00 +02:00
Anna.Kozlova 3966e55bbf testdata for IDEA-154278 2016-04-06 21:17:37 +02:00
Anna.Kozlova 0ca2e9cdd6 don't pass erasure flag through inference process 2016-04-06 17:15:12 +02:00
Anna.Kozlova 56a3a1ffa4 move operator assignment check for object to javac quirks inspection with fix (IDEA-154209) 2016-04-06 17:15:12 +02:00
Anna.Kozlova 1bc380f6fd overload resolution: skip static correctness check during overload resolution (IDEA-154187) 2016-04-06 12:51:57 +02:00
Anna.Kozlova c35fa1891b if client iterates through candidates of call resolve results and start inference for one of them, then cached top level session should be rejected if it corresponds to another candidate 2016-04-06 12:51:57 +02:00
Anna.Kozlova cd9c406260 don't cache substitutors during processing of all candidates (blinking red code) 2016-04-05 21:03:27 +02:00
Anna.Kozlova 2e3c2261ad lambda: treat fields qualified with this as unqualified (IDEA-154174) 2016-04-05 18:27:32 +02:00
Anna.Kozlova 512341e08a inference: ensure primitive -> boxed conversion won't end with pre-generics jdk (IDEA-154108) 2016-04-05 18:27:32 +02:00
peter f2ef7b87c1 revert inference for all type arguments for now (IDEA-153970 Code completion suggestions for SmartType are broken when used with generics) 2016-04-05 14:29:08 +02:00
Anna.Kozlova 5f73492b7f fix parenthesis expr during precise rethrow detection 2016-04-04 21:24:28 +02:00
peter 99bb53c9f6 no irrelevant java completion inside comments (IDEA-153683) 2016-04-04 16:42:04 +02:00
peter c99918eb89 IDEA-154099 Smart completion is broken inside super call 2016-04-04 16:42:04 +02:00
Anna.Kozlova cb15a6523e suppressions: skip doc owners without modifier lists, e.g. anonymous classes (IDEA-154026) 2016-04-01 16:53:23 +02:00
Anna.Kozlova 2f0bfeb404 testdata for IDEA-153999 2016-04-01 16:53:23 +02:00
Anna.Kozlova c1c40665ce erasure type of new expression if diamonds were used and during applicability check unchecked conversion was applied (IDEA-154009) 2016-04-01 16:53:23 +02:00
Anna.Kozlova e4c71494a4 reassign during introduce variable: skip variables which must be effectively final 2016-04-01 11:38:39 +02:00
Anna.Kozlova ed7ed9c829 undo after template: don't insert second space (IDEA-153669) 2016-04-01 11:38:39 +02:00
Anna.Kozlova 943ed6a002 extract field: ensure type is valid after diamond conversion (IDEA-153602) 2016-04-01 11:38:39 +02:00
Anna.Kozlova f8e479a020 redundant cast: don't mark casts inside array index access expressions acceptable (IDEA-153661) 2016-04-01 11:38:39 +02:00
Anna.Kozlova 1e754b5579 extract method: strip this/super from field qualifiers when method was made static (IDEA-153692) 2016-04-01 11:38:39 +02:00
Anna.Kozlova e6426783b4 new inference: forget nested states when expressions were processed second time (IDEA-153897) 2016-03-30 21:02:16 +02:00
Anna.Kozlova cc72bd0319 inference: restore probably partial raw inference as this way expected raw types are preserved and Objects won't be inferred in place where raw types were expected 2016-03-30 12:15:25 +02:00
Bas Leijdekkers 5210f8dbe5 IDEA-153614 (Flip ',' (comma) generates invalid code) 2016-03-30 11:43:52 +02:00
Anna.Kozlova bb5a0f66e9 inline: don't flatten multi dimensional array in varargs calls (IDEA-153700) 2016-03-29 21:17:55 +02:00
Anna.Kozlova d5613fae7f testdata for IDEA-153632 2016-03-29 21:17:55 +02:00
Anna.Kozlova f139c4cef4 new inference: check provided lower bounds on type parameters, in case of fresh variables they declare the type hierarchy and otherwise constrains won't agree (IDEA-153642) 2016-03-29 16:51:50 +02:00
Dmitry Batkovich 6f49be7fcc wrap with optional IDEA-122553 2016-03-25 13:50:03 +03:00
Anna Kozlova 532a22e4ed testdata fixed 2016-03-24 21:28:00 +01:00
Bas Leijdekkers 0386b99e96 IDEA-153187 (Bogus "Unguarded field access" inspection for inner class) 2016-03-24 19:02:12 +01:00
Anna.Kozlova 7712f6e443 proceed static factories instead of constructors to calculate expected types when diamonds are used (IDEA-153520) 2016-03-24 18:14:17 +01:00
Anna.Kozlova ca2921eb6e inline local: don't check assignability before decoding (IDEA-152883) 2016-03-24 15:58:41 +01:00
Anna.Kozlova 0e808d9aff highlight invalid method call: search for most probable argument-cause (IDEA-151202) 2016-03-24 15:58:41 +01:00
Bas Leijdekkers af3365744c IDEA-38591 (Can't use "Create Local Var from instanceof" intention on multiple 'instanceof' with &&) 2016-03-24 15:36:14 +01:00
peter 419770e30d IDEA-153437 Do not suggest to loop over the loop variable (and don't duplicate "new") 2016-03-24 11:54:46 +01:00