Commit Graph

3281 Commits

Author SHA1 Message Date
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
Dmitry Batrak c5859f8f77 revert original fix for IDEA-152628
performing IO in background thread while holding read lock sometimes leads to EDT freeze (when there's a pending write action)
2016-06-28 10:44:56 +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
Anna Kozlova 3ee8b6d1e8 unrelated defaults: correct type if super classes come from different jdks (both 1.8 but of different versions) 2016-06-24 15:33:37 +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 fc4bbbde7c generate by template: do not delete parts of method signature (IDEA-157445) 2016-06-15 13:31:26 +03:00
Anna Kozlova 30ee1d19c6 cls: compose raw substitutor if cls omits expected type arguments (IDEA-157254) 2016-06-14 11:34:32 +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
Dmitry Batrak 8e3e178333 IDEA-156628 QuickDoc does not showing array initializers correctly 2016-06-09 13:10:53 +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 20a955abc4 collect outer class type args for static cls and stop (IDEA-149008) 2016-06-06 12:01:33 +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
Anna Kozlova 99fe682d0b Revert: overload resolution: don't prefer concrete over abstract if the signatures are not override-equivalent (2bedb80d81) 2016-05-31 11:44:10 +03:00
Anna Kozlova 86aa72abe4 preserve comments while converting from lambda to method ref (IDEA-156734) 2016-05-31 11:44:10 +03:00
Anna Kozlova c09e6aa438 isLocalClass should work for nested local classes (IDEA-156777) 2016-05-30 20:01:09 +03:00
Anna Kozlova 7627e03439 fixed testdata 2016-05-30 20:01:09 +03:00
Alexander Zolotov 7d55ac958e Live Templates: do not wrap tests with write command 2016-05-30 15:42:11 +03:00
Anna Kozlova 2bedb80d81 overload resolution: don't prefer concrete over abstract if the signatures are not override-equivalent 2016-05-30 11:28:01 +03:00
Anna Kozlova 49816aeded resolve on nested captures (IDEA-156170) 2016-05-26 18:56:33 +03:00
Anna Kozlova 4585214187 add single static import: don't replace instance member calls (IDEA-153929) 2016-05-26 18:56:33 +03:00
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 28d41e3516 surround with: adjust range if no selection is present so multi-line statement can be wrapped (IDEA-156463) 2016-05-25 18:40:17 +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