Commit Graph
2482 Commits
Author SHA1 Message Date
Roman Shevchenko 6ea3b7a197 [java] usages migrated to PsiType.annotate() 2016-04-22 20:48:59 +02:00
Roman Shevchenko d77c31eaba [java] introduces PsiType.annotate(); minor optimization 2016-04-22 18:53:35 +02:00
Roman Shevchenko 1fceb3faff Merge remote-tracking branch 'origin/master' 2016-04-22 17:13:19 +02:00
Roman Shevchenko 07042165fa [java] introduces PsiType.annotate() 2016-04-22 17:12:06 +02:00
Roman Shevchenko 7960569325 Cleanup (formatting; warnings) 2016-04-22 17:11:57 +02:00
Anna.Kozlova b1645e3ae5 reuse utility method; ensure unknown functional type reduced to Object before create new psi
EA-75452 - IOE: PsiJavaParserFacadeImpl.createTypeElementFromText
2016-04-22 17:02:00 +02:00
peter a0e39ef9ea save some memory in PsiClass member cache 2016-04-22 08:15:45 +02:00
Roman Shevchenko b12652ebb6 Merge remote-tracking branch 'origin/master' 2016-04-21 21:22:55 +02:00
Roman Shevchenko 2a89fd42b6 [java, java-decompiler] type annotations in class files
Step 1: add top-level field/method/parameter annotations to stubs; include them in decompiled text.
2016-04-21 21:22:36 +02:00
Anna.Kozlova 5d6351b1ec diamonds: don't accept inferred types when error appeared during inference (IDEA-154619) 2016-04-21 18:39:23 +02:00
Alexey Kudravtsev 4b5bd7d765 cleanup 2016-04-21 15:11:34 +03:00
Bas Leijdekkers b6c51b4c79 remove unneeded check 2016-04-21 10:24:55 +02:00
Anna.Kozlova a12bdff8a1 explicit -> diamond: ignore invalid types (IDEA-155017) 2016-04-20 19:13:20 +02:00
Anna.Kozlova 401ec5dbfa redundant cast: restoring call by top level, let's search by arg list offset in order to avoid finding method calls from qualifiers 2016-04-20 17:49:29 +02:00
Anna.Kozlova 5f72c7380c array access: don't open captured wildcards 2016-04-20 17:49:29 +02:00
Anna.Kozlova ee4f41b14c don't open captures on type computation (IDEA-154968) 2016-04-20 17:49:29 +02:00
Anna.Kozlova 24538da80c navigate and find enum methods by enum constant (IDEA-154781) 2016-04-19 19:05:54 +02:00
Anna.Kozlova abf32b50d5 don't calculate type of method expression which is located on the left side of assignment - assignment is invalid anyway
(EA-77049 - assert: PsiMethodCallExpressionImpl$TypeEvaluator.fun)
2016-04-19 19:05:54 +02:00
Alexey Kudravtsev a97519c504 notnull 2016-04-19 13:48:01 +03:00
Roman Shevchenko f0a0a1b315 Cleanup (formatting; warnings) 2016-04-18 20:04:25 +02:00
Bas Leijdekkers d8c22286b0 EA-65131 (assert: PsiReferenceExpressionImpl.getCanonicalText) 2016-04-16 11:28:40 +02:00
Anna.Kozlova 43fc40c4a5 anonym -> lambda, redundant cast, redundant type args: process top level overloads (IDEA-152766);
rearrange utils
2016-04-15 18:43:24 +02:00
Anna.Kozlova 09f46115cf redundant cast: special processing for functional expressions as enum args (IDEA-154354) 2016-04-15 18:43:24 +02:00
Roman Shevchenko 5446817867 Cleanup (formatting) 2016-04-14 19:54:28 +02:00
Anna.Kozlova f64bd14441 method refs: site substitution should not replace session setup (IDEA-154722) 2016-04-14 12:28:44 +02:00
Anna.Kozlova d780e31bdf inference: ensure foreign variables do not participate in inference process, e.g. variables from method reference overload resolution (IDEA-154622) 2016-04-13 21:11:02 +02:00
Anna.Kozlova 9086115347 method ref: type parameter instantiation (IDEA-154645) 2016-04-13 12:30:54 +02:00
Anna.Kozlova 26786f1074 logging for EA-81421 - assert: PsiDiamondTypeUtil.areTypeArgumentsRedundant 2016-04-12 16:34:07 +02:00
Anna.Kozlova 1466b0155e bad code green: reject return type constraint if unchecked conversion was applied during applicability check and return type is type parameter 2016-04-11 21:51:18 +02:00
Anna.Kozlova da6de99b11 type calculation: comment to the javac issue 2016-04-11 21:51:18 +02:00
Anna.Kozlova 4928ce672f new inference: reorder return constraints according to the spec 2016-04-11 21:51:18 +02:00
Roman Shevchenko 6eefa1badb [java] numeric overflow inspection on left shift (IDEA-154370) 2016-04-08 20:33:33 +02:00
Roman Shevchenko 0dc69cd4fe Cleanup (formatting; warnings) 2016-04-08 20:31:25 +02:00
Roman Shevchenko 3c6b40759b [java] adds PsiModifierList.hasModifierProperty() augmentation point (IDEA-153706) 2016-04-08 10:36:41 +02:00
Anna.Kozlova 66a8aa11b8 collect unhandled exceptions from enum constructor (IDEA-154283) 2016-04-07 15:13:00 +02:00
Maxim.Mossienko a4392c9fc9 ensure Value parameter of an index has proper equals and hashcode 2016-04-06 17:59:58 +02:00
Alexey Kudravtsev e98ae76fa3 cancelable collection processor: more cancelability where CollectProcessor is used 2016-04-06 18:36:46 +03:00
Anna.Kozlova 0ca2e9cdd6 don't pass erasure flag through inference process 2016-04-06 17:15:12 +02:00
Anna.Kozlova 1bc380f6fd overload resolution: skip static correctness check during overload resolution (IDEA-154187) 2016-04-06 12:51:57 +02:00
Anna.Kozlova c35fa1891b if client iterates through candidates of call resolve results and start inference for one of them, then cached top level session should be rejected if it corresponds to another candidate 2016-04-06 12:51:57 +02:00
Anna.Kozlova 2e3c2261ad lambda: treat fields qualified with this as unqualified (IDEA-154174) 2016-04-05 18:27:32 +02:00
Anna.Kozlova 512341e08a inference: ensure primitive -> boxed conversion won't end with pre-generics jdk (IDEA-154108) 2016-04-05 18:27:32 +02:00
peter f2ef7b87c1 revert inference for all type arguments for now (IDEA-153970 Code completion suggestions for SmartType are broken when used with generics) 2016-04-05 14:29:08 +02:00
Roman Shevchenko 933798230a [java] optimizes inner class detection (IDEA-153835) 2016-04-05 11:49:04 +02:00
Anna.Kozlova 5f73492b7f fix parenthesis expr during precise rethrow detection 2016-04-04 21:24:28 +02:00
Anna.Kozlova cd53ca0480 remove dead code 2016-04-04 21:24:28 +02:00
peter ecc2934b9c return lambda folding in some cases where anonymous->lambda conversion is anyway impossible 2016-04-04 15:08:37 +02:00
Anna.Kozlova c1c40665ce erasure type of new expression if diamonds were used and during applicability check unchecked conversion was applied (IDEA-154009) 2016-04-01 16:53:23 +02:00
Anna.Kozlova e6426783b4 new inference: forget nested states when expressions were processed second time (IDEA-153897) 2016-03-30 21:02:16 +02:00
Alexey Kudravtsev 3c8e077114 BiUtil.isSet() usages extracted 2016-03-30 17:37:09 +03:00