Commit Graph

1467 Commits

Author SHA1 Message Date
Anna Kozlova 4a6095476f EA-57951 - AIOOBE: AnonymousCanBeLambdaInspection.getInferredType
anonymous -> lambda on varargs place
2014-07-23 20:57:31 +02:00
Anna Kozlova 502a3e9a65 new inference: check also variable instantiation for primitive wrappers (IDEA-127752) 2014-07-23 19:19:13 +02:00
Anna Kozlova 24be503eb2 new inference: missed condition in conditional expression (IDEA-127752) 2014-07-23 19:19:12 +02:00
Alexey Kudravtsev 1b9ba31da8 cast from Short to char is prohibited 2014-07-23 13:35:58 +04:00
Anna Kozlova e9a17dfad8 field can be local: when field is used in method for read it can't be converted to local if used in another methods (IDEA-127159) 2014-07-22 20:37:38 +02:00
Anna Kozlova bacc3c2ad6 lambda -> method refs: collapse when acceptable method without supers found 2014-07-21 20:47:52 +02:00
Anna Kozlova 4b7122b83d shorten FQNs when insert casts (IDEA-127573) 2014-07-21 19:19:15 +02:00
Anna Kozlova 91f505e2f7 create static method from usage in interface (IDEA-127563) 2014-07-21 19:19:14 +02:00
Anna Kozlova a46f4cef52 anonym -> lambda: disable in case when inferred type differs from type of anonymous class and parameter of param type is used inside (IDEA-127603);
BTW param.toString would be also rejected
2014-07-21 17:56:21 +02:00
Anna Kozlova 89dc528242 new inference: no substitution during most specific inference by means of new spec (IDEA-127584) 2014-07-21 17:56:20 +02:00
Roman Shevchenko 322e539fc5 IDEA-127077 (highlighting test) 2014-07-21 16:08:23 +02:00
Anna Kozlova 9b4912c5a0 lambda: do not start inference from void type (IDEA-127596) 2014-07-21 12:12:28 +02:00
Anna Kozlova 067ef9e309 method refs: check first parameter if it could be a receiver for varargs methods (IDEA-127506) 2014-07-18 18:19:20 +02:00
Alexey Kudravtsev 0a6a37496e Reverted: cast from Short to char is prohibited (1c5a03589e) 2014-07-18 17:21:10 +04:00
Alexey Kudravtsev 1c5a03589e cast from Short to char is prohibited 2014-07-18 14:58:43 +04:00
Anna Kozlova 7d19e0e85e method refs: missed super class substitution (IDEA-126969) 2014-07-18 10:34:55 +02:00
Anna Kozlova 590ed4cc23 disable create instance field inside interface (IDEA-127211) 2014-07-14 20:58:24 +02:00
Anna Kozlova 04d81c718c type distinct prover for object/type parameter wildcard fixed IDEA-124363 2014-07-02 21:25:09 +02:00
Anna Kozlova 496fb918b8 testdata for IDEA-126809 2014-07-02 16:35:25 +02:00
Anna Kozlova 53cf6f6905 wording: warn about self references instead of "forward" ones 2014-07-02 12:26:17 +02:00
Anna Kozlova 1f8864bfa9 anonym -> lambda: forbid when result in illegal self reference (IDEA-126763) 2014-07-02 12:26:16 +02:00
Anna Kozlova b524d609c1 lambda -> method ref: forbid inside anonymous; qualify this (IDEA-126750) 2014-07-02 11:00:55 +02:00
Anna Kozlova 60c18e802f simplified testdata 2014-07-02 11:00:54 +02:00
Anna Kozlova d1cf801bc7 testdata for IDEA-126109 2014-07-01 15:50:08 +02:00
Anna Kozlova fca471c397 conditional expression: ensure return type is primitive short in case of short/byte branches (IDEA-126697) 2014-06-30 14:03:38 +02:00
Anna Kozlova 489563106d provably distinct: continue to compare for nested levels (IDEA-126633) 2014-06-27 18:31:55 +02:00
Anna Kozlova 3fd69c306f testdata for IDEA-124961 according to 1.8.0_20-ea 2014-06-27 18:31:52 +02:00
Anna Kozlova 5650b7331e method refs: missed applicable member/containing class substitutor for exact refs (IDEA-126613) 2014-06-26 17:35:20 +02:00
Anna Kozlova 643881aed8 include enum.values() in signature hierarchy (IDEA-125077) 2014-06-25 12:13:08 +02:00
Anna Kozlova 0d1e94b893 testdata for IDEA-125254 2014-06-24 16:01:53 +02:00
Anna Kozlova 596d24d505 method refs: reject constructor refs with 'receiver' syntax (IDEA-126484) 2014-06-23 20:10:01 +02:00
Anna Kozlova 69e6a15e27 temp revert capture open 2014-06-23 20:10:00 +02:00
Anna Kozlova 2171c25296 revert new inference: mark erased for type params/raw types compatibility (IDEA-126379) 2014-06-19 18:21:44 +02:00
Max Medvedev 319bbf28a0 IDEA-125909 Groovy: trait methods accessed via 'super' are not resolved.
Use LinkedHashSet for PsiIntersectionType for order forcing.
2014-06-18 14:02:40 +04:00
Dmitry Batkovich 7c0813c27a Add qualifier to unqualified method call quick fix added (similar to "Static Method Import...") IDEA-94719 2014-06-17 19:26:05 +04:00
Anna Kozlova 668e1f52e2 redundant assignment in arg list fixed (IDEA-126190) 2014-06-16 11:25:23 +04:00
Dmitry Batkovich aac112074d IDEA-105132 Swap adjoined if-statements intention. Invokes on "else" keyword 2014-06-11 15:13:02 +04:00
Anna Kozlova f6a393d527 lambda: fix parameter types comparing order (IDEA-126056) 2014-06-10 12:34:32 +04:00
Anna Kozlova ccdc69a1bf method references: avoid double substitution (IDEA-126062) 2014-06-10 12:34:30 +04:00
Anna Kozlova 27f10a6c30 check to prevent contradicted intersection type (IDEA-67600) 2014-06-09 17:03:12 +04:00
Anna Kozlova 2f0830187b check for type param numbers in java 1.6 should not rise error if super methods have type params (IDEA-57338) 2014-06-09 15:32:55 +04:00
Anna Kozlova 598f9219a6 testdata for IDEA-61415 2014-06-09 15:32:53 +04:00
Anna Kozlova 6deb5bb508 testdata for IDEA-65473 2014-06-09 15:32:52 +04:00
Anna Kozlova de7387fd40 provide remove assignment fix for silly assignment inspection (IDEA-125993) 2014-06-06 13:57:02 +04:00
Anna Kozlova 35005bc88e IDEA-125947 not initialized final field should not be raised on any refs from inner classes 2014-06-05 16:05:47 +04:00
Roman Shevchenko 6396cd8927 IDEA-125900 (resolve of synthetic enum methods in class files fixed) 2014-06-05 13:18:03 +04:00
Anna Kozlova 9d5429e77f remove variable: do not leave tailing loops/ifs (IDEA-124489) 2014-06-05 11:45:20 +04:00
Anna Kozlova d13982bd06 most specific: do not start java 8 algorithm for provided type args (IDEA-125855) 2014-06-03 18:41:27 +04:00
Anna Kozlova 784512b713 enum constants access inside enum constant initializers fixed (IDEA-125816) 2014-06-03 11:31:18 +04:00
Anna Kozlova b1b3b1db37 accept intersection types in foreach stmts (IDEA-125800) 2014-06-03 11:31:16 +04:00