Commit Graph
2798 Commits
Author SHA1 Message Date
peter e8ea2598f3 fun expr search: minor improvements after reviews 2016-08-13 12:12:19 +02:00
Anna.Kozlova 1839e42715 treat captured wildcard type as type parameter type with special upper bound (IDEA-159663) 2016-08-12 11:06:57 +02:00
Anna Kozlova a5af84762d can be diamond: ensure inner class is referenced as simple name, otherwise qualified text with generics outer class would lead to kinda raw type (IDEA-159179) 2016-08-12 09:21:55 +03:00
Roman Shevchenko 34569b8d76 [java] excludes package statement from ClsFileImpl's children (EA-86343) 2016-08-10 17:52:06 +02:00
Alexey Kudravtsev 3baa0d5185 EA-79920 - NPE: HighlightUtils$$.value 2016-08-10 18:32:19 +03:00
Roman Shevchenko 8a4830a75a Cleanup (constant) 2016-08-09 20:01:37 +02:00
Roman Shevchenko 52b4fb7ae6 [platform] migrates ASM visitors to convenience API constant 2016-08-09 20:00:25 +02:00
Pavel Dolgov aa51cac5c5 Java control flow: Detecting redundant assignment when the control flow includes a try-finally statement, fixed handling calls, tests added (IDEA-155836) 2016-08-09 18:20:57 +03:00
Anna.Kozlova 369c9a24b4 diamonds: fix conflicting names between constructor and class type parameters (rename the constructor type parameters) 2016-08-09 15:52:11 +02:00
Pavel Dolgov fad7cb2239 Java control flow: Temporarily revert detecting redundant assignment when the control flow includes a try-finally statement, because it consumes too much memory when handling nested finally blocks (IDEA-155836) 2016-08-09 13:58:17 +03:00
Pavel Dolgov 485b66ed54 Java control flow: Detect redundant assignment when the control flow includes a try-finally statement - minor improvement (IDEA-155836) 2016-08-09 12:38:43 +03:00
Pavel Dolgov 3620069414 Java control flow: Detect redundant assignment when the control flow includes a try-finally statement (IDEA-155836) 2016-08-08 16:06:00 +03:00
Anna Kozlova ccf3beba42 check diamond applicability over static factory underneath (IDEA-159287) 2016-08-08 08:35:27 +02:00
Pavel Dolgov ec9fcf60b6 Java control flow: Added comments in searching for definite assignment in the presense of finally block (IDEA-64488) 2016-08-05 19:49:49 +03:00
peter 093b231dcd go back to using non-stub index for functional expressions, because the inevitable stub-AST switch is quite more expensive than finding element by offset (because a lot less code blocks will be parsed in the latter case) 2016-08-05 13:41:37 +02:00
Alexey Kudravtsev 3b2dfb2619 literal arguments folding: fold one char instead of the whole literal; folding in case of generic method fixed; Settings|Editor|General|Code Folding|Literal arguments|Minimum arguments to fold and Minimum parameter name length settings added 2016-08-04 15:21:39 +03:00
peter 522e0b9c2d don't visit jdk Stream API usages when searching for unrelated functional interface implementations 2016-08-03 12:49:11 +02:00
Pavel Dolgov d92688892f Java control flow: Fixed false positive for definite assignment in finally block - more lightweight implementation (IDEA-64488) 2016-08-03 12:47:42 +03:00
Roman Shevchenko c3386151f6 [java] PsiType.getPresentableText() not annotated by default (IDEA-158983) 2016-08-02 09:01:22 -07:00
Pavel Dolgov cb2dfeb368 Java control flow: Fixed false positive for definite assignment in finally block (IDEA-64488) 2016-08-01 20:19:49 +03:00
peter ded3f46951 lambda search: detect more boolean lambdas, use explicit types in methods and casts, introduce a parameter object in the search 2016-07-29 19:44:32 +02:00
Pavel Dolgov 7b97664b85 Java control flow: Detect unreachable code when a break or continue in the try block is overridden in the finally block of the same try statement (IDEA-35597) 2016-07-29 14:54:49 +03:00
peter 5f90016562 don't load AST to calculate EJB interceptors (IDEA-158741) 2016-07-27 19:08:12 +02:00
peter 0ae9abbcbd [java] introduce a way to inspect annotation values without loading AST 2016-07-27 19:08:12 +02:00
Pavel Dolgov 96a576963a Java control flow: Fixed false positive for unreachable code in multi-catch clause (IDEA-138978) 2016-07-25 19:19:45 +03:00
Pavel Dolgov 8c2803eedc Java control flow: Handle the case where the variable from the left part of a compound assignment is modified in the right part of the same assignment (IDEA-23725) 2016-07-25 13:36:21 +03:00
peter ec0f90dbbf distinguish boolean lambdas for finer search granularity; make FunctionalExpressionKey#hashCode independent of enum hashCode 2016-07-25 11:28:54 +02:00
peter b8222255ef index variable types to make functional expression search process only relevant variable initializers 2016-07-23 23:05:56 +02:00
peter 2a93e063bd rewrite functional expression search to use stub index 2016-07-22 17:41:21 +02:00
Pavel Dolgov 2be74e8c45 Java control flow: Added conditional branch that bypasses assert statement because assertions can be disabled (IDEA-71526) 2016-07-22 14:58:35 +03:00
Roman Shevchenko 1d2b570e16 [java] drops unneeded annotation shuffling (IDEA-156150) 2016-07-22 10:46:39 +02:00
Roman Shevchenko 124285ee2a [java] missing annotations on method return types 2016-07-21 16:41:11 +02:00
Anna.Kozlova d8def3334c exceptions declared by try with resources should collect all close methods from the resource class and choose exceptions in the intersection (IDEA-158762) 2016-07-21 13:47:22 +02:00
peter 0a4f995460 find lambdas passed into vararg methods 2016-07-21 12:16:41 +02:00
Semyon Proshev cabe8bb04c NotNull annotation for IStubElementType.createStub and its inheritors 2016-07-20 21:16:55 +03:00
Anna.Kozlova 2d36e419eb empty stubs for functional expressions (^peter) 2016-07-20 09:29:54 +02:00
Anna.Kozlova 1e5372292b java stub for literal expression to ensure parenthesis 2016-07-20 09:29:54 +02:00
peter e7b814c549 stub hierarchy: serialize qualified names already hashed to win some space and time 2016-07-20 09:03:56 +02:00
peter 28d9656870 prepare anonymous base context calculation to the coming of lambda stubs 2016-07-20 09:03:55 +02:00
Roman Shevchenko efc14fe563 Cleanup (better name for module ref. element) 2016-07-19 12:32:33 +02:00
Roman Shevchenko 5a456afef9 [java] more robustness for .class stub builder (IDEA-CR-12160) 2016-07-18 18:41:22 +02:00
Anna.Kozlova 3ee60dba1d method ref: ensure top substitutor is not overridden with raw replacement from second method ref search (IDEA-158636) 2016-07-18 14:57:04 +02:00
Roman Shevchenko de4fc28369 Merge remote-tracking branch 'origin/master' 2016-07-18 14:26:55 +02:00
Roman Shevchenko f736ecb86e [java] module formatting 2016-07-18 14:26:31 +02:00
Alexey Kudravtsev 3ca51e434b more checkCanceled 2016-07-18 12:57:21 +03:00
Roman Shevchenko da3964f1da [java] module icons 2016-07-14 21:04:02 +02:00
Roman Shevchenko 2f0b872142 Cleanup (element name corrected) 2016-07-14 20:04:05 +02:00
Roman Shevchenko e91fc68156 [java] "go to duplicate" quick fix for module highlighting 2016-07-14 12:19:48 +02:00
Roman Shevchenko 72f88a4c02 [java] navigation, presentation, and "go to symbol" provider for modules 2016-07-14 11:27:43 +02:00
Roman Shevchenko df9bd03086 [java] stub-based module lookup 2016-07-13 19:01:17 +02:00