Commit Graph
2348 Commits
Author SHA1 Message Date
Anna.Kozlova 3ee60dba1d method ref: ensure top substitutor is not overridden with raw replacement from second method ref search (IDEA-158636) 2016-07-18 14:57:04 +02:00
Anna.Kozlova f27c5080f6 ensure method signature is highlighted when changes are made inside method body but the actual highlighting is performed on class level (IDEA-141532; IDEA-158137) 2016-07-13 11:43:16 +02:00
Anna.Kozlova 8e7077bb5b testdata for IDEA-139512 2016-07-13 11:43:16 +02:00
Anna.Kozlova 2be8a720a8 static import when inheritance present (IDEA-158357) 2016-07-12 11:08:35 +02:00
Anna.Kozlova 8eab2c79a4 suppressions: if @Generated found, mark as suppressed even if no @SuppressWarning is present (IDEA-158300) 2016-07-11 18:05:00 +02:00
Anna.Kozlova 750afb8497 return type fix: change type arguments of dependant type parameters only (IDEA-158361) 2016-07-11 18:05:00 +02:00
Anna Kozlova 4e813690f7 anonymous -> lambda: allow field shadowing when suggesting new local names (IDEA-157288) 2016-07-08 10:46:34 +02:00
Pavel Dolgov 65a5b0e437 Java intention: Quick fix for error "foreach not applicable to type java.util.Iterator" - handle comments and take care of empty block when copying the loop body (IDEA-124751) 2016-07-04 14:37:31 +03:00
Anna Kozlova 33273be517 substitute with bounds promotion: don't open captured wildcard for supers (IDEA-155370) 2016-07-04 10:21:00 +03:00
Pavel Dolgov 9104e6ede4 Java intention: Quick fix for error "foreach not applicable to type java.util.Iterator" - a test added (IDEA-124751) 2016-07-01 16:28:17 +03:00
Pavel Dolgov d50a5c7a07 Java intention: Quick fix for error "foreach not applicable to type java.util.Iterator" (IDEA-124751) 2016-07-01 16:12:36 +03:00
Anna Kozlova a714c0d820 unchecked cast warning: missed captured wildcards (IDEA-158080); reifiable captured wildcard type 2016-07-01 12:44:39 +03:00
Anna Kozlova 7896eddc3b this and super are not available inside anonymous class args 2016-07-01 12:44:39 +03:00
Anna Kozlova 7d48d00ae9 anonymous -> lambda: restore comments (non-javadoc) outside method body (IDEA-157286) 2016-06-30 21:02:38 +03:00
Roman Shevchenko d41f234c43 Merge remote-tracking branch 'origin/master' 2016-06-30 15:18:24 +03:00
Roman Shevchenko bf4759fccb [java] module declaration highlighting (file-level) 2016-06-29 21:02:23 +03:00
Anna Kozlova 1193a54876 warn about unused parameter if method is used locally as method reference as it could be transformed to equivalent lambda (IDEA-157988) 2016-06-29 20:32:32 +03:00
Anna Kozlova 153255f9d2 anonymous -> lambda: enable casts again (IDEA-157960) 2016-06-29 16:18:27 +03:00
Anna Kozlova 3cfd5be8c0 bombed test for resolution with cycle 2016-06-29 16:18:27 +03:00
Pavel Dolgov c3bd56a80c Java inspection: convert the intention for "Make Type Generic" into an INFORMATION-level inspection (IDEA-157727) 2016-06-28 15:13:49 +03:00
Pavel Dolgov 10c335b44e Java inspection: In "Join Declaration and Assignment" intention action warn about side effects of the initializer being removed (IDEA-157727) 2016-06-27 15:37:13 +03:00
Anna Kozlova 7e74904509 testdata 2016-06-27 12:33:28 +03:00
Pavel Dolgov 92838f48bc Java inspection: Get rid of RemoveRedundantElseAction, as it's totally inferior to DataFlowInspection (IDEA-157727) 2016-06-24 14:00:51 +03:00
Pavel Dolgov 5e380e7526 Java inspection: convert the intention for "Remove redundant lambda parameter types" into an INFORMATION-level inspection (IDEA-156028, IDEA-157727) 2016-06-24 14:00:51 +03:00
Anna Kozlova 923b6cf252 delegate params: compound 2 intentions in one, set preselection (IDEA-112043) 2016-06-24 12:04:48 +03:00
Anna Kozlova 4f45f25c38 redundant exception: ignore recursive calls (IDEA-157773) 2016-06-22 17:58:08 +03:00
Anna Kozlova 7968b2bbbb apply capture conversion for captured wildcard bound according to the direct supertype of parameterized type specification (IDEA-157586) 2016-06-22 15:24:15 +03:00
Anna Kozlova 3805d51554 subtyping constraint: apply capture conversion for captured wildcard bound according to the direct supertype of parameterized type specification 2016-06-22 15:24:15 +03:00
Anna Kozlova a330f9c2f7 inference: treeWalkUp if overload is done under current argumentList caused by lambda parameter type inference (IDEA-157676) 2016-06-22 15:24:15 +03:00
Anna Kozlova 1c52cb7fd6 spec: no capture conversion applicable for array type; capture conversion must be applied for array access expression type; javac: no capture conversion is applicable for array access expressions with write access (IDEA-157295) 2016-06-22 15:24:15 +03:00
Anna Kozlova 732c04076c old inference (IDEA-157398) 2016-06-22 15:24:15 +03:00
Anna Kozlova 2f550f3ba0 revert (IDEA-157631) 2016-06-20 14:02:29 +03:00
Anna Kozlova 81f3f9b17e make class static on unresolved 'static' method reference (IDEA-157364) 2016-06-20 10:29:14 +03:00
Anna Kozlova f7fbc4b4bc anonymous -> lambda: accept anonymous classes with inferred another type and ref to a parameter as the cast would be inserted (IDEA-157457) 2016-06-15 13:44:38 +03:00
Anna Kozlova 79edaf45af erasure of method call expression type if method is not generics but unchecked conversion was needed to check the applicability (IDEA-157223) 2016-06-14 11:34:32 +03:00
Bas Leijdekkers fe0824b7e2 more useful parse of broken try-with-resources resource expression (IDEA-157118) 2016-06-10 19:39:18 +03:00
Alexander Zolotov 1df198f2ef Highlighting issue links: ignore invalid replacement patterns (EA-83133) 2016-06-09 14:32:08 +03:00
Anna Kozlova db53a27296 prefer package to class in import list (IDEA-113756) 2016-06-07 20:06:58 +03:00
Anna Kozlova 9132043620 add single static import: allow second single static import if it doesn't produce ambiguity or hiding of on-demand import (IDEA-155031) 2016-06-07 10:57:34 +03:00
Anna Kozlova c83341f731 shadowing of static imports (IDEA-142600) 2016-06-07 10:57:34 +03:00
Anna Kozlova cb071c57a6 reject imports from default package (IDEA-138822; IDEA-154024) 2016-06-06 20:12:56 +03:00
Anna Kozlova 5f7200897e ambiguous constants references: shadowing (IDEA-146058) 2016-06-06 20:12:56 +03:00
Anna Kozlova de94a3250f redundant cast inside conditional when opposite has another type 2016-06-06 17:52:24 +03:00
Anna Kozlova 1fcb534fcb highlight diamonds as type parameter list (IDEA-156859) 2016-06-06 17:52:24 +03:00
Anna Kozlova e90277c07e inheritance with checkDeep=false & anonymous fixed (IDEA-151341) 2016-06-06 12:01:33 +03:00
Anna Kozlova 3e7b1dca62 conditional: treat nulls separately and accept them as numeric/boolean branches (IDEA-157025) 2016-06-03 15:28:58 +03:00
Anna Kozlova 9c95fa5524 don't try to infer from top if overloaded flag is on (IDEA-156937) 2016-06-02 17:01:51 +03:00
Anna Kozlova a82e3bb5e6 ignore parenthesis when building control flow (IDEA-156926) 2016-06-01 21:19:15 +03:00
Anna Kozlova d9c65ce4ee ensure functional interface is found if assigned to field in another file (IDEA-156592) 2016-05-31 20:21:14 +03:00
Anna Kozlova a68cb4dfd3 disable conversion from anonymous if method has javadoc 2016-05-31 18:38:26 +03:00