Commit Graph
5528 Commits
Author SHA1 Message Date
Anna.Kozlova 9bcbdb68cb inference: register inference error when nested inference don't start as cached session already had errors 2016-10-21 18:07:07 +02:00
Anna.Kozlova 3797d3ea1c ensure ambiguity error presentation doesn't depend on previous calls to getSubstitutor() 2016-10-21 18:07:07 +02:00
Anna.Kozlova 260c6317c8 inline local: go through lambda/inner class hierarchy evenly (IDEA-162909) 2016-10-21 14:52:31 +02:00
Anna.Kozlova 8a276d0bf4 introduce variable: allow introduction of expression from inside for loop if independent from loop vars (IDEA-162911) 2016-10-21 14:52:31 +02:00
Tagir Valeev 3df2d1925d IDEA-162945 Stream API migration: support cases where variable is modified and reassigned 2016-10-21 15:09:35 +07:00
Tagir Valeev 8c6088647b IDEA-162875 Stream API migration: support conversion to BufferedReader.lines() 2016-10-21 12:10:10 +07:00
Anna.Kozlova 94105ecee4 inline to anonymous: allow to inline from library (IDEA-162893) 2016-10-20 19:04:25 +02:00
Anna.Kozlova bf60885576 inline chained constructor from library class 2016-10-20 19:04:25 +02:00
Anna.Kozlova 12554167e7 inference on incomplete code (EA-90195 - AIOOBE: PsiTypesUtil.getParameterType) 2016-10-20 19:04:25 +02:00
peter 9ffa29ca2d doPostponedFormatting after formatting in completion after new (IDEA-CR-14717) 2016-10-20 18:16:36 +02:00
Dmitry Batkovich e892ed03fa null argument checker: initialize memory state with nullable parameter states IDEA-162816 2016-10-20 18:43:37 +03:00
Anna.Kozlova 8952680a73 completion: infer Throwable for thrown bounds in completion so more candidates would be applicable (IDEA-162710) 2016-10-20 13:14:23 +02:00
Tagir Valeev 74ae9731a8 IDEA-162694 Improve "Merge filter chain" intention 2016-10-20 11:19:25 +07:00
peter 1831c53320 constructor completion: implement anonymous methods after arg live template (IDEA-CR-14717) 2016-10-19 19:27:57 +02:00
peter 5b863d7817 constructor completion: insert the chosen constructor and position the caret accordingly (IDEA-CR-14717) 2016-10-19 19:27:57 +02:00
peter 87a28d8d6e dfa: honor control transfer instructions when performing auxiliary analyses (IDEA-162557) 2016-10-19 19:27:57 +02:00
Anna.Kozlova f26364eca1 new inference: erasure of type parameters with proper bounds (IDEA-162544) 2016-10-19 19:17:33 +02:00
Tagir Valeev 57d38b610f IDEA-162662 inspection: simplify obvious stream collect transformation to direct java.util equivalent 2016-10-19 15:48:35 +07:00
peter 2824ee87e4 java completion: fix "{} ()" when choosing anonymous class constructor with parameters 2016-10-19 09:23:15 +02:00
Anna.Kozlova b815947ac2 provide fix all intention for local inspections paired to global tools (IDEA-162507) 2016-10-18 10:30:52 +02:00
Tagir Valeev ab6907ca07 IDEA-162696 Intention "Merge filter chain" does not add parentheses if necessary 2016-10-18 13:49:07 +07:00
Tagir Valeev ee1bd69c2e IDEA-162574 False positive 'Lambda can be replaced with method reference' 2016-10-18 12:53:15 +07:00
Tagir Valeev d807cd3b24 add missing StreamApiMigration test 2016-10-18 10:54:33 +07:00
Dmitry Batkovich e9ef5ecdb8 Merge remote-tracking branch 'origin/master' 2016-10-17 20:47:11 +03:00
Anna.Kozlova 2a8fc8cbc6 extract method object: process parameters as output variables (IDEA-162642) 2016-10-17 19:00:10 +02:00
Dmitry Batkovich 67424cae15 Merge remote-tracking branch 'origin/master' 2016-10-17 19:14:28 +03:00
Dmitry Batkovich 1bc12672eb Merge branch 'db/javac-ast'
# Conflicts:
#	platform/util/resources/misc/registry.properties
2016-10-17 19:05:41 +03:00
Dmitry Batkovich fd9cde8660 javac ast indices: search for lambda expressions; version #2 (with lambda hierarchy) 2016-10-17 18:27:26 +03:00
Dmitry Batkovich 9858aaf705 null argument checker: filter out unused parameters 2016-10-17 15:22:57 +03:00
Anna.Kozlova 0cb5558e85 inplace introduce variable: ensure validity of created var
EA-63354 - PIEAE: CompositePsiElement.getContainingFile
2016-10-17 13:10:49 +02:00
Tagir Valeev 86eaaf22bf IDEA-160988 Add inspection to merge adjacent Stream API calls 2016-10-17 17:17:46 +07:00
Roman Shevchenko 221dff5bd7 Merge remote-tracking branch 'origin/master' 2016-10-14 19:08:58 +02:00
Roman Shevchenko 156a98a67b [java] automatic modules 2016-10-14 19:08:29 +02:00
Anna.Kozlova 2bd3365dc6 fix testdata 2016-10-14 16:31:35 +02:00
Anna.Kozlova d209b373a6 inline parameter: warn if method with target signature already exist (IDEA-162205) 2016-10-14 16:21:09 +02:00
Anna.Kozlova 614deb2e24 postfix completion: inplace introduce variable: ensure doc committed when handler is started inside writeAction
test: switch on inplace mode in tests
EA-86900 - RE: PostprocessReformattingAspect.beforeDocumentChanged
2016-10-14 09:57:28 +02:00
Anna.Kozlova 7934a19e29 inplace introduce variable: ensure valid occurrences ranges after put inside loop/lambda/etc
EA-62679 - assert: JavaVariableInplaceIntroducer.collectAdditionalElementsToRename
2016-10-14 09:57:28 +02:00
Roman Shevchenko 35be5f5b7b [java] package accessibility check for library classes 2016-10-13 16:57:54 +02:00
Anna.Kozlova 88b28233e8 variable array fix: don't create fix if it can't be applied when there is no variable in the context
EA-54266 - ISE: VariableArrayTypeFix.getText
2016-10-12 18:22:05 +02:00
Dmitry Batkovich cfbaa260fe direct inheritor search with javac indices: do not forget of classes declared in method body (when internal is A$1Name) 2016-10-12 19:19:42 +03:00
Tagir Valeev d9dbae7549 IDEA-162215 "Collection usage could be simplified in Java 8": Generate computeIfAbsent as well as putIfAbsent 2016-10-12 17:04:41 +03:00
Anna.Kozlova 5af6b0be16 defer assignment: choose anchor from same code block
EA-48621 - assert: CompositeElement.addChild
2016-10-12 14:04:38 +02:00
Tagir Valeev 73eef6c8ac IDEA-161257 Follow-up: support scenarios like map.put(key, value = new ArrayList<>()); refactor 2016-10-12 14:25:24 +03:00
Dmitry Batkovich bc7bbf4866 search java direct inheritors using javac indices (initial): do not process lots of non-direct inheritors for library classes (IDEA-CR-14364) 2016-10-12 02:01:14 +03:00
Anna.Kozlova ee3492a8f4 rename: search for conflicts with super classes of container (IDEA-162372) 2016-10-11 19:09:56 +02:00
Anna.Kozlova 40f1cdae5f safe delete: check arg side effects (IDEA-162189) 2016-10-11 19:09:56 +02:00
Roman Shevchenko 335c4ab14a [java] fixes type-annotated parameter index calculation (IDEA-162379) 2016-10-11 19:03:32 +02:00
Tagir Valeev a5a0a3657b fix StringTokenizerDelimiterInspection (it did not escape double-quote, EA-89721) 2016-10-11 14:18:52 +03:00
Anna.Kozlova 9849261dae inline constructor: avoid javadoc references
EA-89601 - UOE: InlineMethodProcessor$.inlineUsage
2016-10-11 12:19:48 +02:00
Anna.Kozlova 41c2429966 new inference: postpone unresolved variables in favor to variables with proper equals bound 2016-10-11 10:27:29 +02:00