Commit Graph

261 Commits

Author SHA1 Message Date
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
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
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
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
anna
8b9c2074f0 javadoc reference errors: do not highlight too much - leave valid parts of the reference untouched ( IDEA-36904 ) 2010-05-04 13:21:10 +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
anna
eef8f4fb25 javadoc signature: short name for nested classes fixed 2010-04-22 20:38:58 +04:00
anna
bb3cacc36c allow to change constructor signature when caret is on constructor call 2010-04-22 12:22:43 +04:00
anna
73081ee24d package-info.java is involved in Ctrl-Q (IDEA-26014); testdata moved 2010-04-22 12:22:41 +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
b0fa2925d3 do not upper case 2010-04-20 13:53:20 +04:00
anna
7ed9ad21da do not upper case 2010-04-20 13:53:19 +04:00
Denis Zhdanov
4e370a6a7c IDEA-54000 Move java formatting tests to community edition
Moved from 'idea-tests' to 'java-tests' because java formatter belongs to community edition
2010-04-19 19:27:51 +04:00
Denis Zhdanov
e8777a2477 IDEA-54000 Move java formatting tests to community edition
Moved from 'idea-tests' to 'java-tests' because java formatter belongs to community edition
2010-04-19 19:27:17 +04:00
Denis Zhdanov
e42c2fdcab IDEA-54000 Move java formatting tests to community edition
Moved from 'idea-tests' to 'java-tests' because java formatter belongs to community edition
2010-04-19 19:26:51 +04:00
anna
c5e5bc7237 redundant type args: check boxed types if javac would be able to compile (IDEA-53984) 2010-04-19 17:11:33 +04:00
anna
6585349abc field can be local: revert optimization (IDEA-53992) 2010-04-19 12:46:12 +04:00