Commit Graph
2506 Commits
Author SHA1 Message Date
Anna.Kozlova d8def3334c exceptions declared by try with resources should collect all close methods from the resource class and choose exceptions in the intersection (IDEA-158762) 2016-07-21 13:47:22 +02:00
peter 1c451db9ad a test that lambdas in constructor calls are found 2016-07-21 12:16:42 +02:00
peter 0a4f995460 find lambdas passed into vararg methods 2016-07-21 12:16:41 +02:00
Pavel Dolgov b525e80a87 Java inspection: Returned back RemoveRedundantElseAction intention, because it turns out it's useful in some cases (IDEA-157727) 2016-07-20 18:50:32 +03:00
Roman Shevchenko f2626b9024 [java] fixes receiver highlighting in local classes (IDEA-158752) 2016-07-20 16:30:11 +02:00
Alexey Kudravtsev db48c64473 use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests 2016-07-20 15:47:18 +03:00
Pavel Dolgov 3773948686 Java inspection: Added a fix for single-value annotations where the annotation doesn't have a 'value()' method and therefore "Expand Annotation to Normal Form" fix couldn't be applied (IDEA-158456, IDEA-157727) 2016-07-20 13:33:13 +03:00
Roman Shevchenko c4e8bf5219 [java] fixes javadoc inspection false positive for split @see tags (IDEA-158662) 2016-07-18 20:55:24 +02:00
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