Commit Graph

561 Commits

Author SHA1 Message Date
Anna Kozlova a2c90af6b3 trivial method reference inspection (IDEA-123298) 2016-01-11 20:19:54 +01:00
Anna Kozlova 01fc1dc40f lambda -> method ref: make cast type denotable (IDEA-134217) 2016-01-04 19:25:03 +01:00
Anna Kozlova 82773c69e0 redundant explicit types: available inside nested calls for java 8 (IDEA-134160) 2016-01-04 19:25:03 +01:00
Anna Kozlova ec2128de5a disable add type cast fix for non-denotable types (IDEA-149787) 2015-12-29 16:46:58 +01:00
Anna Kozlova e4ef475f9e new inference: don't process expressions after param.length for non-varargs (IDEA-149489) 2015-12-28 14:57:27 +01:00
Anna Kozlova dd38082794 least upper bound: pull unbounded wildcard up so types Number & Comparable<? extends Number & Comparable<?>> are produced instead of Number & Comparable<? extends Comparable<?>>
inferred type in bounds check cleanup: accept that inference result is not within its bounds and give the inference the second chance
2015-12-09 11:25:11 +01:00
Anna Kozlova a15905ae13 conditional expression type: check poly expression first (IDEA-148965) 2015-12-08 09:37:18 +01:00
Dmitry Avdeev ad9d9397fc DefaultAnnotationParamInspection 2015-12-03 11:12:28 +03:00
Anna Kozlova f5c6318814 generate wildcard type to ensure valid assignment (IDEA-148644) 2015-12-02 17:56:08 +01:00
Bas Leijdekkers 9d49239ff4 EA-76495 (IOE: PsiJavaParserFacadeImpl.createStatementFromText) 2015-12-01 19:11:39 +01:00
Anna Kozlova b611e2abee delegate default param values: don't mark static method in the interface with default modifier (IDEA-148489) 2015-11-26 19:23:09 +01:00
Roman Shevchenko eb5890cc8f [java] nullability annotation copying logic restored; test added (IDEA-CR-6810) 2015-11-24 11:42:14 +01:00
Anna Kozlova 64ff5ff961 push condition in call: fix different qualifiers (IDEA-147901) 2015-11-13 16:07:17 +01:00
Dmitry Batkovich 6afbed569a quick fix which adds exception from field initializer to constructor signature (IDEA-142284) 2015-11-13 15:59:53 +03:00
Anna Kozlova 823cd15864 static method import: collect all overloaded methods to filter them after finish of stub processing (IDEA-147745) 2015-11-11 17:35:32 +01:00
Dmitry Batkovich e8805cb2cc "initialize variable" & "initialize in constructor" suggests default constructors (with inheritor's if collection) (IDEA-145431) 2015-11-06 15:56:50 +03:00
Anna Kozlova 94e3eb2c04 compound filter from filters chain (IDEA-146147) 2015-11-04 15:52:15 +01:00
Anna Kozlova ae4b083aec split compound filter into filters chain (IDEA-146147) 2015-11-04 15:52:15 +01:00
Anna Kozlova d7f768366b fix testdata 2015-11-02 15:29:42 +01:00
Anna Kozlova 41916174b6 return Object if denotable type is needed for functional expression (e.g. lambda expression) type
EA-75552 - IOE: PsiElementFactoryImpl.createField
2015-11-02 15:29:42 +01:00
Anna Kozlova 62cc281a3d disable lambda -> methref for qualified new expressions (IDEA-147054) 2015-10-29 19:40:11 +01:00
Anna Kozlova 543e5f3cdf remove this qualifier on anonym -> method ref fix 2015-10-28 19:45:32 +01:00
Dmitry Batkovich 713a1289c7 IDEA-146770 Suggest Math.toIntExact to convert long to int 2015-10-28 19:55:14 +03:00
Anna Kozlova b12b47c2ea ignore most specific check if parameter count were not matched at all
EA-75076 - AIOOBE: InferenceSession.isMoreSpecific
2015-10-28 16:05:07 +01:00
Anna Kozlova 5d98d49ecf ensure denotable types 2015-10-28 16:05:05 +01:00
Anna Kozlova 1420ac66b8 testdata for EA-53634 - assert: PsiWildcardType.createSuper 2015-10-28 16:05:03 +01:00
Anna Kozlova 249d8ca4ba change signature from usage: ensure not substitute parameter type from call site (IDEA-146284) 2015-10-12 20:15:41 +02:00
Anna Kozlova a0ce4457ae intention to replace assignment with void-call (IDEA-143069) 2015-10-01 20:11:59 +02:00
Anna Kozlova 090038722a EA-70589 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText 2015-09-29 17:59:47 +02:00
Anna Kozlova 06eecb0b1d duplicate throws: ensure checks are proceed with correct type after first problem detected (IDEA-145542) 2015-09-25 15:43:12 +03:00
Anna Kozlova dc5e1732f7 report redundant suppressions on line with suppression or on corresponding member if member annotated (IDEA-145472) 2015-09-24 13:09:22 +03:00
Anna Kozlova 386c7f19c1 normalize variable declaration before application
EA-69890 - PIEAE: CompositePsiElement.getContainingFile
2015-09-18 20:47:47 +03:00
nik 6a479aeef7 'change language level' functionality moved to JavaProjectModelModificationService, test on IncreaseLanguageLevelFix added 2015-09-17 10:00:23 +03:00
Anna Kozlova c989070fd9 fix testdata 2015-09-11 11:42:49 +03:00
Bas Leijdekkers d57591cd2c IDEA-142912 (Intention: replace switch with if failed with bit operator (operator precedence)) 2015-08-27 17:45:58 +02:00
Anna Kozlova ad99c2d9b5 anonymous -> lambda: cast if overload would fail (IDEA-144372) 2015-08-27 11:19:30 +03:00
Anna Kozlova 6144008d26 disable lambda -> meth ref if qualifier is not pure (IDEA-139825) 2015-08-26 16:23:35 +03:00
Anna Kozlova c97e700f4f EA-72085 - NPE: ChangeToAppendUtil.buildAppendExpression 2015-08-24 20:00:17 +03:00
Anna Kozlova 7cf142b351 make method return fix: make available for constructor calls; java 8 specific tests; simplify inference 2015-08-20 21:47:30 +02:00
Anna Kozlova 8a071c3f74 fix method return type for vararg calls (EA-71978 - IAE: PsiOldInferenceHelper.inferTypeArguments) 2015-08-20 10:06:09 +02:00
Anna Kozlova 3b3bf18b69 suggest to fix return type based on args of method call in return stmt (IDEA-140894) 2015-08-19 12:34:41 +02:00
Anna Kozlova bbda6d8b02 fix operation assignment (IDEA-143986) 2015-08-17 14:54:35 +02:00
Bas Leijdekkers 59f25f9789 generate default method and improved text & description for "delegated method with default parameter value" intentions 2015-08-08 21:54:24 +02:00
nik 3338d30023 add dependency on external library quick-fix: API simplified, duplicated code removed 2015-07-29 08:31:13 +03:00
Anna Kozlova 75e3086fb2 lambda -> meth ref: reject replacements with invalid qualifiers (IDEA-142695) 2015-07-21 08:51:06 +02:00
Yaroslav Lepenkin 6731485cb8 Reformat with context on postponed formatting: fixed java test data 2015-07-07 17:24:09 +03:00
Yaroslav Lepenkin ecf06ab80c Alignment on "public, static, void, <T>, throws" replaced with none indent.
Previously alignment were created for mostly every element of method/class declaration
|public |void |run() {
}

Therefore, when posprocess reformat is used in reformat context mode on "run" rename will be reformatted whole method declaration starting with public, which sometimes can be not usefull
2015-07-07 17:24:06 +03:00
Anna Kozlova fde12ea8dd unimplement with cyclic inheritance (IDEA-142343) 2015-07-07 14:55:18 +03:00
Roman Shevchenko 2d7590996e IDEA-122133 (type annotations skipped from copying into generated parameter) 2015-06-29 14:42:18 +03:00
Anna Kozlova 5ff68d71b0 stream api: shorten class references when replace with foreach 2015-06-26 15:13:22 +03:00