Commit Graph

1782 Commits

Author SHA1 Message Date
Anna Kozlova ad26842083 non-reifiable type check: testdata for IDEA-139091 2015-04-27 09:32:26 +02:00
Anna Kozlova 21f187bd44 separate capture conversion from substitution 2015-04-27 09:32:20 +02:00
Anna Kozlova 553ad77e46 overload resolution: reject java 8 varargs methods when they are checked by fixed arity and number of parameters doesn't match 2015-04-24 20:33:40 +02:00
Anna Kozlova 511a356788 reifiable types: ensure that generic types with only all type params as unbound wildcards are treated as reifiable (IDEA-139577) 2015-04-24 20:33:37 +02:00
Anna Kozlova b61e8bdb39 access static via instance: ensure type params are attached to the class reference (IDEA-139440) 2015-04-24 13:46:13 +02:00
Anna Kozlova e5097dfc24 lambda -> method ref: ensure that capture is checked according to the param ref; avoid wildcards in method ref qualifiers (IDEA-139529) 2015-04-24 13:46:11 +02:00
Anna Kozlova f0fae34076 intersection types in cast: provide "delete repeated interface" fix 2015-04-20 10:19:24 +02:00
Anna Kozlova f5cec5e24a intersection in cast type: repeat interface, different parameterization checks 2015-04-20 10:19:22 +02:00
Anna Kozlova 2318a3a58c capture conversion: collect all type parameter's bounds during capture conversion; make sure collected upper bound is used after capture type is normalized 2015-04-20 10:19:20 +02:00
Anna Kozlova 232b479b23 testdata for IDEA-139318 2015-04-16 20:30:37 +02:00
Anna Kozlova 09f4d7ea1f detect expected type by parent for nested array initializers (IDEA-139280) 2015-04-16 20:30:31 +02:00
Anna Kozlova fd11949634 new inference: accept inferred equals bounds even when additional constraints lead to failure to get more appropriate error message (IDEA-139275) 2015-04-16 20:30:29 +02:00
peter 6c8750291f IDEA-124359 Add Inspection for detecting nullable values passed into Optional.of()
test that it correctly works with Guava
2015-04-14 23:12:39 +03:00
peter 1b7a05e26f IDEA-138553 Inspection for usages of Optinoal.ofNullable() for values known to be null or non-null 2015-04-14 23:12:38 +03:00
Anna Kozlova 4ee27fecce can complete normally for nested try-with-resources (IDEA-138961) 2015-04-09 17:02:25 +02:00
Anna Kozlova 778952b6e3 dataflow inspection: suggest to replace Optional.of with Optional.ofNullable if value could be null (IDEA-124359) 2015-04-08 21:14:35 +02:00
Anna Kozlova 6047478cae redundant cast: do not raise if result in bad return type in lambda expression (IDEA-138927) 2015-04-08 21:14:33 +02:00
Anna Kozlova 765f6faa19 SOE on infinite types with super wildcards (IDEA-138880; IDEA-77600) 2015-04-08 13:12:21 +02:00
Anna Kozlova b62f3b746c change return type fix: ensure parameter types are untouched (IDEA-138748) 2015-04-08 12:06:01 +02:00
Anna Kozlova 822934d37a new overload resolution: do not accept primitive type as target of second search (IDEA-138839) 2015-04-08 12:05:58 +02:00
Anna Kozlova dfcebe315b new inference: check bounds problems for all variables acceptable in current context (IDEA-138407); reject complicated dependencies (see JDK-8039299) 2015-04-02 21:19:54 +02:00
Anna Kozlova 80e3760c69 redundant cast: ensure lambda return statements are not mixed with those from containing method (IDEA-138724) 2015-04-02 18:06:41 +02:00
Anna Kozlova 3b40026df9 testdata for IDEA-138696 2015-04-02 18:06:40 +02:00
Anna Kozlova c08649b355 new overload resolution: avoid second conflict resolution for the same conflicts, e.g. because resulted array would be available inside guard of ResolveCache (IDEA-138596) 2015-04-02 18:06:39 +02:00
Anna Kozlova b8683c3640 lambda -> meth ref: accept receiver only for calls on lambda params (IDEA-138593) 2015-04-01 20:39:31 +02:00
Anna Kozlova b0db0e5444 strictfp in interfaces for java 1.8 (IDEA-138501) 2015-03-31 13:48:27 +02:00
Anna Kozlova a4eba96102 anonymous -> lambda: name conflict with params resolution (IDEA-138494) 2015-03-31 13:48:26 +02:00
Anna Kozlova 2e736c18fe surround with try-catch: expand expression lambda to perform operation (IDEA-134500) 2015-03-26 12:07:12 +01:00
Anna Kozlova 6ae3daeef1 anonymous -> lambda: do not reject cases when return type can't be correctly inferred without target type constraints (IDEA-137390) 2015-03-24 21:04:06 +01:00
Anna Kozlova 4b3cebcf53 reformat on replace type args with <> (IDEA-138079) 2015-03-24 21:04:04 +01:00
Anna Kozlova 8a56a94ff1 add assert != null fix should be disabled on the class level (EA-66814 - assert: AddAssertStatementFix.applyFix) 2015-03-23 20:33:20 +01:00
Anna Kozlova 5ed4840dad make capture<? super Object> == Object 2015-03-23 20:33:19 +01:00
Anna Kozlova 4d079801bf incompatible types quickfix: reregister for variable initializer (IDEA-138023) 2015-03-23 17:57:15 +01:00
Anna Kozlova 48db714b67 jdk9: support private methods in interfaces (IDEA-137918) 2015-03-23 17:57:12 +01:00
Anna Kozlova 4597494195 import of inner classes through should get raw substitutor from outr class if applicable (IDEA-121166) 2015-03-20 21:09:04 +01:00
Anna Kozlova 1f50640671 lambda isValueCompatible: ensure that normal completion is impossible for infinite loops (IDEA-137848) 2015-03-20 20:08:51 +01:00
Anna Kozlova 858119b775 new overload resolution: remember candidate when argument type is to be calculated (IDEA-137921) 2015-03-20 20:08:50 +01:00
Anna Kozlova 48619015ea testdata for IDEA-137893 2015-03-19 20:46:57 +01:00
Anna Kozlova e09ec985bf light elements should not be simplified especially when they were not changed (EA-47908 - IOE: CheckUtil.checkWritable) 2015-03-19 19:55:19 +01:00
Anna Kozlova dd1b0c2796 method reference: ignore already handled exceptions (IDEA-137694) 2015-03-18 14:09:58 +01:00
Anna Kozlova 4ba0890182 testdata for IDEA-137795 2015-03-18 14:09:56 +01:00
Anna Kozlova 4603022670 testdata for IDEA-137668 2015-03-16 20:14:20 +01:00
Anna Kozlova dfc1f6b698 testdata for IDEA-137694 2015-03-16 20:14:18 +01:00
Anna Kozlova 6ad1810157 unchecked warning explanation (IDEA-126457) 2015-03-16 13:34:32 +01:00
Anna Kozlova 1bf1a2cc13 do not report weaker access assignability higher in the hierarchy (IDEA-137533) 2015-03-13 14:32:10 +01:00
Anna Kozlova 027943681f lambda: check assignment for proper types (IDEA-137564) 2015-03-12 19:14:19 +01:00
Anna Kozlova 50043d2bd9 EA-65747 - assert: LambdaCanBeMethodReferenceInspection.canBeMethodReferenceProblem
(cherry picked from commit 694a7b3b7869e1be50170bf6490c8b3e30328c4b)
2015-03-11 20:36:01 +01:00
Anna Kozlova 87a7731477 disable stream conversion if qualifier is used inside method call args (IDEA-137186)
(cherry picked from commit 24dfdad535f2c33e4d1f4d004a28b0ca45012c1b)
2015-03-11 20:34:30 +01:00
Anna Kozlova 80bc7dad79 preprocess substitutor for receiver type exact references during reduction (IDEA-137417)
(cherry picked from commit 8515ed9707c6a5a61a7d908024247e523b89f08f)
2015-03-11 20:31:42 +01:00
Anna Kozlova 979dca3880 hide duplicated 'Add constructor parameter' fix (IDEA-137231)
(cherry picked from commit 7c5d5ec6c5141cf7fedf6d55712fb2dffc0d3ace)
2015-03-11 20:29:06 +01:00