Commit Graph

382 Commits

Author SHA1 Message Date
Maxim Medvedev
9b56725bd0 fixes & tests 2010-05-30 17:28:36 +04:00
Maxim Medvedev
06dc46d6cd Merge branch 'master' into changeSignature 2010-05-29 17:23:45 +04:00
anna
9e165bcd23 do not treat usages of constructor as non-code (although !reference.isResolvedTo(element) as reference resolves to the constructor's class) 2010-05-27 20:00:10 +04:00
Maxim Medvedev
5db1013634 Merge commit 'origin/master' into changeSignature 2010-05-26 14:31:15 +04:00
anna
dd2b032223 expected types should take into account output values
( IDEA-44946,  IDEA-44982,  IDEA-44983,  IDEA-45034)
2010-05-26 13:28:41 +04:00
anna
c1db7b9edc introduce variable: suppose that params are equivalent if they have the same name and types were already checked (IDEA-41074) 2010-05-26 13:28:39 +04:00
anna
5c6d20dc4e extract method: do not declare variables after call with local class defined in extracted method (IDEA-46775) 2010-05-26 13:28:38 +04:00
anna
6806c16bfd method duplicates: qualify match in order to prevent name conflict ( IDEA-24764 ) 2010-05-26 13:28:38 +04:00
anna
abfb0af852 safe delete: enable on local variables; treat side effects as conflicts ( IDEA-17366 ) 2010-05-26 13:28:35 +04:00
Maxim Medvedev
b11b8c7b86 merge master 2010-05-21 17:39:25 +04:00
anna
b594f2d5a7 introduce field: selected type should be used instead of local variable type 2010-05-21 11:40:03 +04:00
anna
6af63745e1 method duplicates: pass array 2 vararg method call ( IDEA-53635) 2010-05-21 10:03:11 +04:00
Denis Zhdanov
dde1392157 IDEA-42167 Reformat code works wrong
Test data is revised in accordance with corrected algorithm
2010-05-20 15:12:31 +04:00
Denis Zhdanov
2434cb367f Merge branch 'master' of git@git.labs.intellij.net:idea/community 2010-05-17 10:25:12 +04:00
anna
0007ada693 extract method: reduce varargs to component type when weaker return type is prepared ( IDEA-54953 ) 2010-05-14 20:04:59 +04:00
anna
619503c1dc find method duplicates: detect duplication even id primitive parameters are modified ( IDEA-54921) 2010-05-14 20:04:57 +04:00
Denis Zhdanov
21c7768447 IDEA-54902 Layout after Change signature is broken
Comment is added
2010-05-14 19:32:25 +04:00
Denis Zhdanov
eb0ac30988 IDEA-54902 Layout after Change signature is broken
Comment is added
2010-05-14 19:32:15 +04:00
Denis Zhdanov
fc53c7faff IDEA-54902 Layout after Change signature is broken
Corresponding test data
2010-05-14 19:09:24 +04:00
anna
4482e47195 introduce parameter object: check real types "are they generic or not" when object's class signature is composed ( IDEA-46182 ) 2010-05-11 20:58:49 +04:00
Denis Zhdanov
a77ca9f4ec IDEA-54765 Code Style -> Order of Members should have extra items for statics
Test data is corrected in order to follow new static vs instance methods ordering policy
2010-05-11 18:28:56 +04:00
Denis Zhdanov
628a434b50 IDEA-54765 Code Style -> Order of Members should have extra items for statics
Test data is corrected in order to follow new static vs instance methods ordering policy
2010-05-11 18:28:39 +04:00
Denis Zhdanov
d030d8ffe1 Merge branch 'master' of git@git.labs.intellij.net:idea/community 2010-05-11 15:58:31 +04:00
Denis Zhdanov
6c65d9802e IDEA-54765 Code Style -> Order of Members should have extra items for statics
Test data is corrected in order to follow new static vs instance methods ordering policy
2010-05-11 15:57:42 +04:00
Denis Zhdanov
0d546c389a IDEA-54765 Code Style -> Order of Members should have extra items for statics
Test data is corrected in order to follow new static vs instance methods ordering policy
2010-05-11 15:57:34 +04:00
Denis Zhdanov
1cd4624083 IDEA-54765 Code Style -> Order of Members should have extra items for statics
Test data is corrected in order to follow new static vs instance methods ordering policy
2010-05-11 15:57:23 +04:00
Denis Zhdanov
3555c35a3a IDEA-54765 Code Style -> Order of Members should have extra items for statics
Refactoring-based class members manipulation is corrected
2010-05-11 15:57:10 +04:00
Denis Zhdanov
7764913b9a IDEA-54765 Code Style -> Order of Members should have extra items for statics
Test data is corrected in order to follow new static vs instance methods ordering policy
2010-05-11 15:57:00 +04:00
anna
8be6b22b0a extract method object: conditional exit; nullable check should be processed separately ( IDEA-52452 ) 2010-05-11 14:42:12 +04:00
Maxim Medvedev
5d692db484 Merge branch 'master' into changeSignature 2010-05-11 14:36:06 +04:00
Denis Zhdanov
c9feccea15 IDEA-54765 Code Style -> Order of Members should have extra items for statics
Test data is corrected in order to follow new static vs instance methods ordering policy
2010-05-11 12:39:38 +04:00
anna
2293b5a5a7 extract method: inline output variable if it is returned right after creation ( IDEA-54490 ) 2010-05-06 21:01:23 +04:00
anna
9b301801a6 do not fold parameters if folded expression depends on local variables ( IDEA-54488 ) 2010-05-06 21:01:22 +04:00
Maxim Medvedev
a32ed428c1 Merge branch 'master' into changeSignature
Conflicts:
	java/java-impl/src/com/intellij/refactoring/changeSignature/ChangeSignatureProcessor.java
2010-04-28 16:00:32 +04:00
anna
ab9827497d extract class: do not generate calls for getters/setters which do not exist ( IDEA-53442) 2010-04-28 13:15:25 +04:00
anna
aa24f87a58 inline method: this qualifier in class hierarchy 2010-04-28 13:15:24 +04:00
anna
44235fb387 replace constructor with builder: do not miss default values ( IDEA-54303 ) 2010-04-26 17:56:49 +04:00
Maxim Medvedev
184632cb63 Merge commit 'origin/master' into changeSignature
Conflicts:
	java/java-impl/src/com/intellij/refactoring/changeSignature/ChangeSignatureTargetUtil.java
	plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/changeSignature/GrChangeSignatureHandler.java
2010-04-22 16:47:15 +04:00
anna
bb3cacc36c allow to change constructor signature when caret is on constructor call 2010-04-22 12:22:43 +04:00
anna
581e899f47 exclude method type parameters from extracted class signature (IDEA-53446) 2010-04-22 12:22:40 +04:00
anna
c85d94ea4f do not upper case 2010-04-20 13:53:21 +04:00
anna
b9760871f9 inheritance 2 delegation: type parameters substitution (IDEA-53529) 2010-04-15 22:35:35 +04:00
anna
04fdd69cc1 pull up/push down: type parameters substitution should modify member copy (IDEA-53496) 2010-04-14 18:32:38 +04:00
anna
d95d359eeb pull up: erasure type parameters or try to substitute (IDEA-53490) 2010-04-14 18:32:36 +04:00
Pavel Fatin
a03abdc55a CopyClassTest.testLibraryClass - expect text with trailing spaces (retained by PsiElement.replace) 2010-04-14 18:20:29 +04:00
anna
9cb223e375 push down: erase type arguments for raw subtypes (IDEA-53405) 2010-03-30 21:00:36 +04:00
anna
227d51d58a inline constant field: preserve qualifiers 2010-03-23 12:17:02 +03:00
anna
eea6a96e7d introduce constant/field: static/final should be set before actual add - anchor detection (IDEA-52969) 2010-03-22 18:55:48 +03:00
anna
dc8db62ae4 import is redundant if imported class is located in the same directory (IDEA-52733) 2010-03-17 14:29:21 +03:00
anna
17ce947291 multiple classes copy (IDEA-52694) 2010-03-17 14:29:20 +03:00