Commit Graph
2291 Commits
Author SHA1 Message Date
Roman Shevchenko 24da7ad563 [java] accepts quoted strings and HTML refs after @see tag (IDEA-156403) 2016-05-26 17:34:38 +03:00
Anna Kozlova 137ee60763 create method from method reference: make abstract if inside interface and not static (IDEA-156596) 2016-05-25 19:37:58 +03:00
Anna Kozlova 7f8b5f8952 redundant cast: process branches of conditional expressions with respect to expected type for functional expressions (IDEA-156480) 2016-05-25 18:40:17 +03:00
Anna Kozlova 3e2423f245 change signature from usage: ignore types of poly expressions if they are not assignable (IDEA-156521) 2016-05-25 18:40:17 +03:00
Dennis Ushakov 997f39dc89 surrogate pairs are representable in UTF8
#WEB-21028 fixed
2016-05-24 18:34:38 +03:00
peter dc64af7f22 IDEA-156379 Suggested "collect(Collectors.toList())" ignores static Collectors import 2016-05-24 15:21:50 +02:00
Alexey Kudravtsev 13c9f95b50 register Java fields referenced from injected fragments as read/written 2016-05-24 15:23:25 +03:00
Roman Shevchenko 10ed658de9 [platform] illegal character highlighting: updated message and test data (IDEA-CR-10947) 2016-05-24 12:32:39 +02:00
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
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
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
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
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
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
Anna.Kozlova e07b25baba testdata for IDEA-153701 2016-04-21 14:33:04 +02:00
Anna.Kozlova a12bdff8a1 explicit -> diamond: ignore invalid types (IDEA-155017) 2016-04-20 19:13:20 +02:00
Anna.Kozlova 401ec5dbfa redundant cast: restoring call by top level, let's search by arg list offset in order to avoid finding method calls from qualifiers 2016-04-20 17:49:29 +02:00
Anna.Kozlova 22c8d0f9ce anonymous -> lambda: fix anonymous classes in enum constants 2016-04-20 17:49:29 +02:00
Anna.Kozlova 5f72c7380c array access: don't open captured wildcards 2016-04-20 17:49:29 +02:00
Anna.Kozlova ee4f41b14c don't open captures on type computation (IDEA-154968) 2016-04-20 17:49:29 +02:00
Anna.Kozlova 2dead05e6b treeWalkUp: stop at member level to avoid skipping anonymous classes 2016-04-19 20:02:32 +02:00
Anna.Kozlova c09caae28e treat conditional expressions with new expressions with diamonds inside as poly
EA-76546 - assert: InferenceSessionContainer.treeWalkUp
2016-04-19 19:05:54 +02:00