Commit Graph

280 Commits

Author SHA1 Message Date
anna
941142b346 introduce field: extract error expression on class level ( IDEA-41570 ) 2010-06-03 12:39:38 +04:00
anna
feda077bb7 inline variable: captured wildcard != wildcard so isAssignable should be used in order to avoid redundant class casts (IDEA-27243); though isAssignable can't replace equals as for primitive types cast can change expr semantics, e.g. (float)intVar1/intVar2 2010-06-03 12:39:37 +04:00
Maxim Medvedev
5d39963fa8 Merge branch 'master' into changeSignature 2010-06-01 09:45:59 +04:00
peter
7c51c98375 correctly generate anonymos body when completing after new inside another anonymous 2010-05-31 21:44:06 +01:00
anna
dda3a86763 testdatafixed 2010-05-31 20:21:45 +04:00
anna
3f3d8329ed replace method duplicates: qualified/unqualified static access ( IDEA-23412 ) 2010-05-31 19:33:23 +04:00
anna
40d73b7c32 replace method duplicates: qualify with super instead of this when method is located in the base class ( IDEA-21753 ) 2010-05-31 19:33:22 +04:00
anna
6283165ab2 find method duplicates: match super expressions ( IDEA-45118 ) 2010-05-31 19:33:21 +04:00
Kirill Likhodedov
275f48c7ce Merge branch 'master' of git.labs.intellij.net:idea/community 2010-05-31 19:21:04 +04:00
anna
aa48a3ee1d do not rise conflict on type parameter rename ( IDEA-55362 ) 2010-05-31 15:22:16 +04:00
anna
67ef43adcc find method duplicates: correct this according to the replacement place ( IDEA-22960 ) 2010-05-31 13:07:34 +04:00
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
Denis Zhdanov
f23c29cd75 IDEA-55306 Align when multiline for parenthesized expressions works weirdly for anonymous classes as parameters
Dedicated formatting option for multiline method brackets alignment is introduced. 'Align multiline parenthesized expressions' used before that but it caused wierd formatting at some use-cases.
2010-05-27 11:22:07 +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
eb6d106fd7 IDEA-53013 Allignment of multiline parenthesis
Test data is corrected in accordance with revised algorithm
2010-05-18 12:11:03 +04:00
peter
c9db4a5d12 IDEA-54459 Smart type completion for anonymous class after 'new' inserts '{}' inside '()' if the class has two generic parameters 2010-05-17 14:54:27 +01: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
Denis Zhdanov
de8be3bd7d IDEA-19328 "Simple blocks on one line" and "Force braces" aren't applied ideally
Test data is corrected in accordance with formatting algorithm fixes
2010-05-12 16:15:48 +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
e860849c8b replace implements with static imports (IDEA-37581): check for supers 2010-05-11 14:42:12 +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
anna
5e7036a74d replace implements with static imports (IDEA-37581) 2010-05-11 14:42:11 +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