Commit Graph
165 Commits
Author SHA1 Message Date
Anna Kozlova b199a1b76c lambda & raw types 2012-08-31 18:40:56 +04:00
peter 7ad32d0ee1 groovy: don't use argument types when inferring variable type based on the method it's passed to 2012-08-31 16:37:57 +02:00
Anna Kozlova 1d0922ead8 lambda: lambda on vararg place 2012-08-31 15:34:20 +04:00
Anna Kozlova 30dcf05e59 lambda: substitute lambda type with functional interface type 2012-08-31 15:34:19 +04:00
Anna Kozlova 9174fe94b1 stop inference during typing 2012-08-31 15:34:17 +04:00
Anna Kozlova 2c05b4d750 lambda: functional interface can contain multiple default methods 2012-08-31 15:34:16 +04:00
peter 00da23aa1d no recursion prevention when contributing groovy constructors 2012-08-30 13:31:16 +02:00
Evgeny Gerashchenko 821a23c558 Corrected lazy cleanup of cache in BaseExternalAnnotationsManager.
Now if some PsiFile in list becomes invalid, cache for the whole annotation owner's class is recalculated.
2012-08-29 19:44:59 +04:00
Anna Kozlova 95b1dde5d3 do not complete after return based on info from containing method (IDEA-90729) 2012-08-29 11:45:19 +04:00
Anna Kozlova 610b19a4f0 assertion for EA-38630 - AIOOBE: LambdaUtil.visitReferenceExpression 2012-08-29 11:18:24 +04:00
Anna Kozlova ece63f3c92 correct lambda inference inside new expressions 2012-08-28 12:20:48 +04:00
Anna Kozlova 9c4504cfdf lambda: do not even try to infer from return value when value depends on params 2012-08-27 15:20:21 +04:00
Anna Kozlova cf4b4e6831 eliminateWildcards -> GenericsUtil; lambda: eliminate wildcards before formal types declaration (IDEA-90578) 2012-08-24 21:24:08 +04:00
Anna Kozlova 7b7399e020 lambda: hasFormalParameterTypes 2012-08-24 21:24:07 +04:00
Evgeny Gerashchenko eb9ecd52ca Added ExternalAnnotationsManager.editExternalAnnotation() 2012-08-24 19:12:14 +04:00
Evgeny Gerashchenko 8e44a9d83e BaseExternalAnnotationsManager.getFQN() receives PsiFile instead of VirtualFile. Removed "fromVirtualFile" parameter dragged over several methods. 2012-08-24 19:12:14 +04:00
Evgeny Gerashchenko 0275ea1ba0 Added method checking if external annotation is writable to ExternalAnnotationsManager. 2012-08-24 19:12:13 +04:00
Evgeny Gerashchenko c8df423935 Sorting external annotations XML files by writability, so writable annotations will have greater priority. 2012-08-24 19:12:13 +04:00
Alexey Kudravtsev b2a479ee7b invalid PSI detection 2012-08-23 14:13:53 +04:00
Anna Kozlova 9a4e0f00d0 lambda: redundant lambda param types 2012-08-22 14:08:27 +04:00
Evgeny Gerashchenko 14ef0a9ac8 Safer dropping caches in ExternalAnnotationsManager. 2012-08-21 19:34:21 +04:00
Evgeny Gerashchenko d0977737cc Filtering out cache in more thread-safe way to avoid ConcurrentModificationException. 2012-08-21 19:34:21 +04:00
Anna Kozlova a5c50473a3 lambda: skip some cyclic inference cases 2012-08-21 17:06:23 +04:00
Anna Kozlova a0d858fa5b lambda: effectively final parameters: copy in final variable if needed - never make implicitly final 2012-08-21 14:39:41 +04:00
Anna Kozlova d2b956c808 lambda: check formal types for equality 2012-08-20 21:47:21 +04:00
Anna Kozlova 8b0455ce93 lambda: convert anonymous to lambda inspection & fix 2012-08-20 21:02:43 +04:00
Anna Kozlova b6a278b60f lambda return type checks: consider void-compatible/value-compatible block 2012-08-20 16:59:18 +04:00
Evgeny Pasynkov 8353b3ef96 remove dependency java-psi-api from projectModel-api 2012-08-20 13:35:25 +02:00
Anna Kozlova 122cccf567 lambda: correct error reporting according to b.50 2012-08-20 15:26:47 +04:00
Anna Kozlova a060e747ab lambda: return type void-compatibility checks extracted 2012-08-20 15:26:45 +04:00
Anna Kozlova 1fa0a6ade4 lambda: void return type compatibility (initial); functional interfaces without method params error messages 2012-08-17 22:45:25 +04:00
Anna Kozlova 3ac6e57c77 lambda (IDEA-90043) 2012-08-17 17:49:41 +04:00
Roman Shevchenko b5d7a7e951 EA-38210 (fallback to Object for incorrect multi-catches) 2012-08-15 17:05:11 +04:00
Anna Kozlova a38f0a1f3b lambda: cleanup 2012-08-13 18:30:55 +04:00
Anna Kozlova 5ba5425a54 lambda: infer from return type; cyclic inference stop 2012-08-13 11:29:40 +04:00
peter 0ea1c307ab don't fail when fragment's expected type was invalidated (EA-36483) 2012-08-07 19:07:44 +02:00
Serega Vasiliev 570bb9b5d7 drools: parsed java statement, resolve, references... 2012-08-06 17:55:46 +02:00
Anna Kozlova 4dc9f616b1 deannotate: correctly detect files with external annotations 2012-08-06 15:50:27 +02:00
Evgeny Gerashchenko b4265fdf08 Fixed race condition in new cache in BaseExternalAnnotationsManager. 2012-08-06 16:06:02 +04:00
Evgeny Gerashchenko 165f4b5ec1 Optimized reading external annotations: now they when annotations file is accessed, it's parsed data is stored in cache. 2012-08-03 18:05:15 +04:00
Evgeny Gerashchenko d1b1438fb3 Added escaping "<" and ">" in attribute values before passing XML to SAX parser. 2012-08-03 18:05:15 +04:00
Evgeny Gerashchenko 2e35e9b2dd Moved BaseExternalAnnotationsManager to java-psi-api module. 2012-08-03 18:05:15 +04:00
anna 03da4cdaa0 access for private members through type parameter bound is forbidden in jdk7 (IDEA-88895) 2012-08-01 16:54:10 +02:00
peter 018c010942 @NotNull 2012-08-01 12:22:47 +02:00
Dmitry Avdeev 0334898d21 stubs for annotation parameters 2012-08-01 12:25:22 +04:00
Dmitry Avdeev 97837f18a7 cleanup 2012-08-01 12:25:21 +04:00
Evgeny Pasynkov 59320e01dc more EP_NAME's 2012-07-30 12:05:10 +02:00
Evgeny Pasynkov 3944360e63 Move MethodReferencesSearch (and necessary closure) to java-indexing-api.
Remove references to StfFileTypes from SimpleAccessorReferencesSearch and extract them into one more CustomPropertyScopeProvider
2012-07-30 11:24:30 +02:00
anna 58b8ac814b NPE 2012-07-26 18:21:14 +02:00
peter 3b293fb1b8 anything wrong with PsiType's equals/hashCode? 2012-07-25 16:57:59 +02:00