Commit Graph

248 Commits

Author SHA1 Message Date
anna
299e587bc4 create from usage: do not suggest to create static methods in interfaces (IDEA-98147) 2012-12-28 15:32:08 +01:00
anna
e8d6602585 disable override method from abstract class intention for static methods (IDEA-98006) 2012-12-28 15:32:07 +01:00
anna
2fe641dad6 insert cast/local variable from instanceof: check if written expression equals operand in instanceof before replacement (IDEA-97941) 2012-12-27 22:22:49 +01:00
anna
fabb9c6f92 change method signature from usage: fix reverse order presentation text (IDEA-97218) 2012-12-11 17:44:21 +01:00
Roman Shevchenko
91c10b815e line separators normalized 2012-12-08 20:01:21 +01:00
anna
5112e8dce9 generate getters/setters: prefer less visibility corresponding to containing class (IDEA-95697) 2012-12-03 17:06:28 +01:00
anna
0586625266 make method return: do not add return statement when control flow found a problem (IDEA-95738)
(cherry picked from commit b4e5b7d23c22f692da029a95d6718359fac577cc)
2012-11-23 21:14:46 +01:00
anna
9ec65aa657 disable change param type fix in case of overriding library method
(cherry picked from commit b00a060b18fc3de1f8e317b61a5fd87efdc8b565)
2012-11-23 21:13:48 +01:00
anna
6d2b2ced11 disable copy impls when interface extends; disable implement methods when methods with access problems exist (IDEA-93017)
(cherry picked from commit 3d50c0c08eaee71d14604ca9dfb0fcb2218c9b5c)
2012-11-23 21:13:43 +01:00
anna
10cecacf14 EA-41161 - CCE: JavaTreeGenerator.generateTreeFor: create from usage with method ref on the right
(cherry-picked from 04f7b76)
2012-11-23 21:13:39 +01:00
anna
73b6d506d2 EA-41114 - AIOOBE: StaticImportMethodFix.getExpectedType 2012-11-21 14:27:47 +01:00
anna
f0175340e7 change variable type should be suggested on calls [roma] 2012-11-19 21:25:00 +01:00
anna
53ef2bccfb EA-39209 - IOE: PsiJavaParserFacadeImpl.createParameterFromText 2012-11-16 21:05:05 +01:00
anna
3987b4bbb2 suggest method static imports: take method return type into account (IDEA-82353) 2012-11-15 21:37:06 +01:00
Alexey Kudravtsev
843eaf46da IDEA-94838 "optimize imports of the fly" - change the inspection name 2012-11-15 17:30:13 +04:00
Anna Kozlova
c661cba6ed convert primitive to boxed when appropriate (IDEA-60267) 2012-11-04 17:20:37 +01:00
anna
ec4df495b5 forbid anonymous -> lambda when conflicting local vars exist (IDEA-93589) 2012-10-31 13:30:58 +01:00
anna
4c1ebfc416 anonym -> method ref: do not collapse in method ref when qualifier calls performs smth (IDEA-93697) 2012-10-26 14:10:43 +02:00
anna
64b2932d5e anonymous -> lambda: allow qualified this/super expr (IDEA-93697) 2012-10-26 13:56:08 +02:00
anna
86872fa9a6 anonym -> method ref: disable for method calls with qualifiers which ref params (IDEA-93473) 2012-10-25 18:05:07 +02:00
anna
ce1e18a9c9 lambda -> method ref: do not suggest to replace anonymous classes (IDEA-93588) 2012-10-25 15:52:44 +02:00
anna
7b4b48764d skip ignoring whitespaces when choosing the anchor (IDEA-93459) 2012-10-24 17:09:39 +02:00
anna
3c796d7901 disable convert anonymous -> lambda when non qualified getClass is called 2012-10-22 17:10:44 +02:00
anna
90c6a12e7f simplify boolean: xor (IDEA-92131) 2012-10-19 18:44:40 +02:00
anna
24a2d19043 add constructor params: collect new names to prevent conflicts (IDEA-92902) 2012-10-15 18:06:30 +02:00
Anna Kozlova
074c756386 method refs: shorten class names in qualifiers supported (IDEA-92724) 2012-10-12 11:30:21 +02:00
anna
fced71498b anonymous can be method reference inspection 2012-10-09 20:28:07 +02:00
anna
0fbf5f2464 lambda can be converted to method reference inspection 2012-10-09 17:54:32 +02:00
anna
ada232f63e ignore static imports for method references (IDEA-92590) 2012-10-08 19:21:59 +02:00
anna
9a237f0b59 test data fixed 2012-09-27 12:25:59 +02:00
anna
d1fbf297bc method ref: isAssignable check; resolve (initial) 2012-09-25 19:47:04 +02:00
anna
d2af36382c method ref: create method from usages accept method ref in argument 2012-09-25 19:47:00 +02:00
Anna Kozlova
3894a2e676 do not warn about effectively final vars used in inner classes in java 8 (IDEA-91372) 2012-09-14 17:22:46 +04:00
Anna Kozlova
da098b2a31 suggest implements->extends for interfaces hierarchy (IDEA-89867) 2012-09-14 14:54:25 +04:00
Anna Kozlova
dda9269851 disable add variable initializer fix for foreach parameter (IDEA-90899) 2012-09-12 17:53:32 +04:00
Anna Kozlova
1bdca6d4e5 create method from usage: do not qualify already qualified ref (IDEA-91041) 2012-09-11 17:34:00 +04:00
Anna Kozlova
b665d21263 anonym -> lambda: decode context correctly 2012-09-10 14:59:17 +04:00
Anna Kozlova
2c659ba2d9 redundant lambda code block: do not suggest for expressions with non-void type 2012-09-10 12:54:45 +04:00
Anna Kozlova
447bc37818 lambda: remove redundant code block inspection accept void compatible lambda & nested blocks (IDEA-91184) 2012-09-07 22:29:45 +04:00
Anna Kozlova
8d4ef8b54e lambda: do not suggest to replace anonymous with lambda when this/super exist in body (IDEA-91055) 2012-09-06 13:31:24 +04:00
Denis.Zhdanov
cbd0fe4e8e IDEA-19061 Integrate the Rearranger-plugin into core-IDEA
Test data is updated
2012-09-06 13:21:42 +04:00
Denis.Zhdanov
e76b02dc4e IDEA-19061 Integrate the Rearranger-plugin into core-IDEA
1. Arrangement API provides 'dependent entries' concept now;
2. Java static and instance initialization blocks are defined to be 'dependent arrangement entries';
3. Corresponding tests are added;
4. Default java arrangement rules are expanded in order to preserve old 'generated class members order';
5. Test data is corrected;
2012-09-06 13:21:41 +04:00
Denis.Zhdanov
4a4aa01505 IDEA-19061 Integrate the Rearranger-plugin into core-IDEA
1. 'Constructor' entry type is defined and supported at java rearranger;
2. Test data fixes;
2012-09-06 13:21:41 +04:00
Anna Kozlova
49a08fce9e anonymous->lambda: forbid for recursive calls (IDEA-90964) 2012-09-03 21:27:12 +04:00
Anna Kozlova
f324594bc3 lambda: create method from usage with lambda arg (IDEA-90957) 2012-09-03 18:27:56 +04:00
Anna Kozlova
d71e11473a lambda: convert anonymous to lambda in invalid context with cast; add cast when functional interface type won't be found otherwise (IDEA-90863) 2012-09-03 18:27:55 +04:00
Anna Kozlova
24252e4741 testdata fixed 2012-08-31 21:46:38 +04:00
Anna Kozlova
87804891cf redundant lambda param type: check with resulted lambda 2012-08-31 18:41:45 +04:00
Anna Kozlova
e48926ccb0 inspection/intention to collapse/expand lambda body (IDEA-90827) 2012-08-31 11:27:38 +04:00
Anna Kozlova
bb0b0c008a convert anonym class to onle-line lambda if possible (IDEA-90820) 2012-08-30 20:14:36 +04:00