Commit Graph
3225 Commits
Author SHA1 Message Date
Anna.Kozlova 99ce4b4f46 redundant lambda code block: check applicability over replaced lambda 2016-05-23 16:29:23 +02:00
Anna.Kozlova 107abaf891 good code red: applicability check for non-generic method requires types calculation 2016-05-20 21:44:12 +02:00
Anna.Kozlova ce58f62d19 lambda.isValueCompatible should not cache inference results for calls inside lambda body as they may depend on incomplete top level inference where LambdaExpressionCompatibilityConstraint is reduced (IDEA-156311) 2016-05-20 18:52:45 +02:00
Anna.Kozlova ad6352ce0b upcoming changes to the spec and javac (JDK-8145614; JDK-8142876) 2016-05-20 18:52:45 +02:00
Roman Shevchenko 3cb98099d8 [java] illegal character highlighting (IDEA-144046) 2016-05-20 17:49:09 +02:00
Anna.Kozlova 25352dce0b avoid checks over not applicable methods (IDEA-156196) 2016-05-19 16:47:28 +02:00
peter d167a4e820 don't suggest break/continue inside lambda/anonymous inside a loop (IDEA-CR-10869) 2016-05-19 10:58:51 +02:00
peter b0bfb5b5d8 java completion: prefer break/continue in likely positions inside loops (IDEA-156192) 2016-05-18 18:07:47 +02:00
peter 6b5f30f0f2 java completion: prefer return inside then/else parts of if (IDEA-156192) 2016-05-18 18:07:47 +02:00
Anna.Kozlova d2136b76b2 disable import of static constant on type element/assignment place (IDEA-156162) 2016-05-17 21:13:20 +02:00
Anna.Kozlova ff555bd832 disable remove redundant else if then branch can throw exception (IDEA-156142) 2016-05-17 17:41:48 +02:00
Anna.Kozlova 2755100873 assign weaker access: find method to implement (IDEA-153610) 2016-05-13 18:55:16 +02:00
Andrey Starovoyt 134c9f30e6 java postfix templates: add braces for while loop IDEA-153730 2016-05-13 19:29:39 +03:00
peter e68d6eac26 IDEA-155716 Statically imported method should be higher in the completion list 2016-05-13 17:15:10 +02:00
peter d91c606bfa IDEA-155984 Completion suggests nothing if you try to complete a variable before a call 2016-05-13 16:15:16 +02:00
peter f54e06de93 IDEA-155572 Basic completion could prefer false when boolean is expected 2016-05-13 16:15:14 +02:00
Anna.Kozlova b5e7d766a1 add static import: remove qualifier in case of inheritance (IDEA-155419) 2016-05-12 21:06:35 +02:00
Anna Kozlova 1782d678a7 include all constructor candidates to calculate change signature fix (IDEA-128891) 2016-05-11 18:08:55 +02:00
Anna Kozlova dbe1598e9f highlight implicit constructor call as method (IDEA-152964) 2016-05-11 16:05:47 +02:00
Anna Kozlova 9d95879dc2 register make class static for illegal enclosing usage error (IDEA-155700) 2016-05-11 12:46:25 +02:00
Anna.Kozlova 3dd26b5936 testdata on partially raw types inferred by javac 2016-05-09 19:42:35 +02:00
Anna.Kozlova 9abe5476b6 new inference: return constraints: fail if outer call exists but can't be resolved (IDEA-154805) 2016-05-09 19:42:35 +02:00
Anna.Kozlova d85c70d870 invocation type inference: don't create fresh variables for all type parameters but only for those where wildcards are used in return type (IDEA-155627; IDEA-151220; IDEA-151387) 2016-05-06 18:00:16 +02:00
Anna.Kozlova 7fb3086dc5 assignability to primitive: check type parameter bounds if applicable (IDEA-155551) 2016-05-04 11:09:25 +02:00
peter 20f69c8111 remove wrong capture treatment: the completion result is incorrect (IDEA-155188) 2016-05-03 14:25:59 +02:00
peter 80ad8e9ebd IDEA-154276 Suggest method references to constructors of implementing classes when Supplier<AnAbstractClass> is expected 2016-05-02 08:58:57 +02:00
peter b7f5f72066 IDEA-154336 Missing space after completed @annotation 2016-05-02 08:58:57 +02:00
peter 905527c804 "too generic method" completion sorting criteria shouldn't be applied in void context (IDEA-154635) 2016-05-02 08:58:55 +02:00
peter b7623be04f IDEA-155309 Complete statement does not work for default in switch 2016-05-02 08:58:54 +02:00
peter 48b941daa8 IDEA-154891 IDEA adds unnecessary space/colon on switch case autocompletion 2016-04-29 22:56:20 +02:00
peter 493794856b smart enter during completion inside synchronized expression should put the caret inside the synchronized block 2016-04-29 22:56:19 +02:00
peter 4e3139ffda smart enter to wrap its single then/else branch into code blocks (IDEA-155280) 2016-04-29 22:56:19 +02:00
peter 5131d6fadb IDEA-155383 Auto-complete for method references should use the type where the method is declared 2016-04-29 22:56:18 +02:00
peter 0e46fda6b8 IDEA-155369 double boolean of method return type 2016-04-29 22:56:17 +02:00
Anna.Kozlova b936f89275 redundant cast: ensure cast is not removed if operand changes it's type 2016-04-29 14:41:28 +02:00
Anna.Kozlova f52458abdf restrict anonym -> lambda: reject if return type would be changed (IDEA-154805) 2016-04-29 14:41:28 +02:00
Anna.Kozlova 567fc9ae88 fix testdata 2016-04-29 14:41:28 +02:00
Anna.Kozlova ce9556a909 override default methods in interfaces with default methods (IDEA-155381) 2016-04-29 14:41:28 +02:00
Dmitry Batrak 849a9d5684 IDEA-155349 JDK exceptions are not resolved in Quick Documentation 2016-04-28 17:12:32 +03:00
Anna.Kozlova f36501444c clear diamond inference errors when overload resolution fails 2016-04-28 11:39:38 +02:00
Anna.Kozlova bebf4975e6 change signature: expand expr lambda to block lambda when exception should be caught; don't expand method ref to lambda when only unchecked exceptions were added (IDEA-152386) 2016-04-28 11:39:38 +02:00
Dmitry Batrak 0f4a395569 IDEA-155239 Quick documentation does not show static lambda field values when "Show quick doc on mouse move" is enabled 2016-04-26 22:14:26 +03:00
peter 85601ec30c support captured types in incomplete overloaded lambda completion (IDEA-155188) 2016-04-26 10:23:35 +02:00
peter 3b725bc33e IDEA-155188 Lambda auto completion for incomplete overloaded method fails 2016-04-25 20:45:38 +02:00
Anna.Kozlova a1ae485b22 diamond: reject diamonds nested inside type arguments as soon as possible (IDEA-155153) 2016-04-25 14:41:56 +02:00
Anna.Kozlova e588d2285a highlighting: don't add warning for nested lambda when problem is inside upper level (IDEA-155192) 2016-04-25 14:41:56 +02:00
Anna.Kozlova b1645e3ae5 reuse utility method; ensure unknown functional type reduced to Object before create new psi
EA-75452 - IOE: PsiJavaParserFacadeImpl.createTypeElementFromText
2016-04-22 17:02:00 +02:00
Anna.Kozlova 1a2b94105e EA-78630 - CCE: TrivialFunctionalExpressionUsageInspection$ReplaceWithLambdaBodyFix.replaceWithLambdaBody 2016-04-22 17:02:00 +02:00
Anna.Kozlova 5d6351b1ec diamonds: don't accept inferred types when error appeared during inference (IDEA-154619) 2016-04-21 18:39:23 +02:00
Anna.Kozlova 399e59e8dd fix testdata 2016-04-21 14:33:04 +02:00