Commit Graph
769 Commits
Author SHA1 Message Date
Anna Kozlova 8cdbea9abe introduce parameter: don't show conflicts between new param name and parameter to remove (IDEA-140607) 2015-05-26 18:25:50 +02:00
Anna Kozlova 5d55388ef9 pull up: ensure substituted (IDEA-140710) 2015-05-26 13:15:11 +02:00
Anna Kozlova 6f39da3761 safe delete parameter: typo in javadoc ref composition (IDEA-140384) 2015-05-19 11:07:50 +02:00
Anna Kozlova a43a311851 restore disabled rename on valueOf/values/length (IDEA-139827) 2015-04-30 19:55:35 +02:00
Anna Kozlova 6be67cfec0 use interface where possible: rebind type params (IDEA-139615) 2015-04-24 20:33:39 +02:00
Anna Kozlova b044c4fcee extract method: do not pass redundant parameters if extracting from lambda body (IDEA-139292) 2015-04-16 20:30:35 +02:00
Anna Kozlova 3e57002e28 delete imports on safe delete of class (IDEA-139288) 2015-04-16 20:30:33 +02:00
Anna Kozlova 45c5c2163f extract functional parameter: ensure final inside anonymous, no additional qualifier (IDEA-138895) 2015-04-08 12:06:00 +02:00
Anna Kozlova e1e48eb1e8 replace duplicates: process chained constructors (IDEA-138745) 2015-04-08 12:05:59 +02:00
Anna Kozlova 21fd57c89f expected variable type: make type denotable (IDEA-136958) 2015-03-25 20:04:56 +01:00
Anna Kozlova d18781b365 make method static: warn about broken method references if filed or class need to be passed; NPE (EA-66661 - NPE: MakeMethodStaticProcessor.changeExternalUsage) 2015-03-23 20:33:24 +01:00
Anna Kozlova be5e054e6a extract method params suggester: cleanup initial params if they are not used anymore 2015-03-18 17:46:02 +01:00
Anna Kozlova c6b72e19f2 testdata fixed 2015-03-13 21:22:57 +01:00
Anna Kozlova a439f0184a EA-65822 - assert: EncapsulateFieldsProcessor.checkExistingMethods
(cherry picked from commit ba6d1cbd27710de60a1d918ff478fe3094f94012)
2015-03-11 20:36:27 +01:00
Anna Kozlova 5435a357c6 extract method: check duplicates/used vars also in unreachable code
(cherry picked from commit 42249fe8f0cead1a0023aa9edfb23fc52a95c268)
2015-03-11 20:33:25 +01:00
Anna Kozlova 3251ee29da extract method with last declaration statement fixed (EA-64510 - IOE: PsiJavaCodeReferenceElementImpl.cannotBindError) 2015-02-25 20:34:37 +01:00
Anna Kozlova 6482dfe733 do not return lambda parameter type as denotable in RefactoringUtil (IDEA-136617) 2015-02-17 14:58:56 +01:00
Anna Kozlova d46f76eda1 deep delete parameter: ensure parameter used in the same call passed to another params is not suggested 2015-02-09 19:38:19 +01:00
Anna Kozlova 8c6e9543d5 fix getter name for boolean field in testdata 2015-01-30 22:28:02 +03:00
Anna Kozlova 19210dd1b5 encapsulate fields: raise conflict if postfix/prefix expression result value is used further (IDEA-131841) 2015-01-29 17:39:57 +03:00
Anna Kozlova bc5083fd50 safe delete: ensure not to delete call qualifier (IDEA-135727) 2015-01-28 19:06:42 +03:00
Anna Kozlova a94175f4f8 inline parameter: take advantages from inline local (IDEA-135610) 2015-01-28 19:06:42 +03:00
Anna Kozlova 5025e94962 safe delete: allow multiple first level nodes (IDEA-135665) 2015-01-27 20:00:38 +03:00
Anna Kozlova 6edc7c729c extract method object: postpone formatting (IDEA-114278) 2015-01-26 20:19:16 +03:00
Anna Kozlova 5b62d34d11 switch context when get to anonymous class so access to the inherited members should not be raised as a conflict; super expression 2015-01-20 15:42:48 +01:00
Anna Kozlova 64894391ea switch context when get to anonymous class so access to the inherited members should not be raised as a conflict 2015-01-20 11:13:06 +01:00
Anna Kozlova d60840ee4f cleanup 'public' modifier from the interface on "pull default method" (IDEA-135292) 2015-01-19 12:06:50 +01:00
Anna Kozlova 7fbbc52ed6 reassign on introduce variable: ensure renamed; tests 2015-01-15 21:10:47 +01:00
Anna Kozlova 111f487f7e inplace introduce variable: rename variable introduced inside loop without braces (IDEA-135083) 2015-01-15 20:30:53 +01:00
Anna Kozlova 574577fe73 introduce functional parameter: do not fold as functional interface creation would be in the place where local vars are not available 2015-01-15 10:25:52 +01:00
Anna Kozlova 55e83bf6e5 deep parameter delete: allow delete parameter when caller method has complex expression as argument 2015-01-15 10:25:51 +01:00
Anna Kozlova fb9a5e8ff7 extract method parameters suggester: change method copy context so calls inside method body could be resolved (aClass..getTypeParameterList() passed inside MethodElement.copyElement && aClass.processDeclarations implementations together cause that method calls to same class members can't be resolved); teach DuplicatesFinder to work on non-physical elements with correct context 2015-01-12 21:13:33 +01:00
Anna Kozlova 51971c4a7a wrap return value: teach inference (IDEA-135027) 2015-01-08 19:54:18 +01:00
peter 3f69d50905 fix InplaceIntroduceParameterTest 2015-01-05 21:38:39 +01:00
Anna Kozlova 5ecb541855 extract method: skip parenthesis as they are skipped by control flow (IDEA-134904) 2015-01-02 12:05:47 +01:00
Anna Kozlova 5da3bc1687 rename failure fixed: incomplete references on fields are now processed by VariableInIncompleteCodeSearcher 2014-12-24 20:26:33 +01:00
Anna Kozlova 607d4e4f79 make static: allow to delegate (IDEA-24060) 2014-12-23 19:32:30 +01:00
Anna Kozlova 62b540f862 inplace introduce parameter: ensure that parameter is not deleted if not all occurrences are replaced 2014-12-23 14:17:31 +01:00
Anna Kozlova 534f8ad773 automatically rename overloads (IDEA-131926) 2014-12-23 14:17:30 +01:00
Anna Kozlova afc3e23260 extract method: disable make static when extracting from default method; ensure static extracting from constant in interface (IDEA-134636) 2014-12-23 11:42:42 +01:00
Anna Kozlova 559397d21f cascade delete (IDEA-80842) 2014-12-19 17:08:05 +01:00
Alexey Kudravtsev c3e8934499 IDEA-133946 Don't highlight private constructor as unused if it is called by dependency injection engine 2014-12-15 14:18:20 +03:00
Anna Kozlova 8cc6072e73 introduce functional parameter: ignore parameters of containing method as they are available at call site 2014-12-15 12:13:30 +01:00
Anna Kozlova 9b4cacf341 functional interface suggester: check return types and try to infer 2014-12-12 19:28:55 +01:00
Anna Kozlova 124c957b7c introduce functional parameter: ensure resulted method non-static 2014-12-12 19:28:52 +01:00
Anna Kozlova e767382757 functional interface suggester: accept non exact method references 2014-12-11 17:20:11 +01:00
Anna Kozlova 474e0fef6f introduce code block parameter: filter out functional interfaces which are not compatible by thrown types 2014-12-11 11:16:45 +01:00
Anna Kozlova 1053a96872 introduce code block parameter: extract method call with conditional exit 2014-12-11 11:16:44 +01:00
Anna Kozlova 3d1f3bf386 introduce code block parameter: extract from code block 2014-12-10 16:37:46 +01:00
Anna Kozlova 380a115d70 introduce code block parameter: shorten class refs 2014-12-10 16:05:59 +01:00