Commit Graph

283 Commits

Author SHA1 Message Date
anna
be9e2fa9f7 testdata fixed 2013-05-06 20:55:21 +02:00
anna
f8509e1d67 strip wildcards when prepare explicit generics types to qualify the method calls (IDEA-106741) 2013-05-06 19:25:40 +02:00
anna
5e2184d2d4 implement methods in enum from super interface (IDEA-106310) 2013-04-29 20:26:56 +02:00
anna
92f0e1b91f static import: postpone @deprecated methods if possible; show deprecated if all/acceptable is deprecated (IDEA-98350) 2013-04-25 17:09:31 +02:00
anna
e8ef5ea7d7 allow to add static import for containing class when it already contains imported members (IDEA-96156) 2013-04-25 14:14:51 +02:00
anna
3d9008c296 add single static import: process nested references (IDEA-94951) 2013-04-24 16:27:01 +02:00
anna
33f3792dc3 default methods in java 8: suggest to mark interface methods with body with default/static (IDEA-105420) 2013-04-16 11:19:48 +02:00
Roman Shevchenko
218fd54bf2 Type annotation in wildcard and class reference types; more tests 2013-04-05 21:08:12 +02:00
anna
f9c121d810 generate setter prototype from field: take context into account to gic resulted method correct parameter type (IDEA-104592) 2013-04-04 20:37:58 +02:00
Roman Shevchenko
fc602c65bc PsiTypeElement.getType() fixed 2013-04-04 19:38:46 +02:00
anna
b75d4c139f EA-45389 - assert: SimplifyBooleanExpressionFix$ExpressionVisitor.visitPolyadicExpression 2013-04-02 20:08:51 +02:00
anna
b95a271d12 generate getter/setter: allow public getter for public enum (IDEA-103718)
(cherry picked from commit bb95544d55937ef04d739a4c01839280a4eefb67)
2013-03-26 21:43:06 +01:00
anna
8f5515b2d6 create enum from usage: do not insert extends Enum list; disable create class from usage when class should extend final or enum (IDEA-103480)
(cherry picked from commit b2baa7ff649c365d6d57bf873e9fd015ccc32809)
2013-03-21 10:40:52 +01:00
anna
a1753089fe lambda -> method ref: disable for inapplicable target methods (IDEA-103369)
(cherry picked from commit c05e901232c17e1a93a7024e5d7262d6a324c5e3)
2013-03-21 10:40:42 +01:00
anna
664fb24186 create field from usage: insert braces at selection end (IDEA-102716)
(cherry picked from commit 7eba27508d6e74cad0841013c313c05f6d96f17e)
2013-03-15 21:39:50 +01:00
anna
7f1f607d98 generate public getter/setter for abstract classes (IDEA-102872)
(cherry picked from commit 61685b9d890fce99c050e1b98261527b7a0e9363)
2013-03-15 21:38:02 +01:00
Roman Shevchenko
75f112bc0d IDEA-54393 (type element tree generation reworked)
Fixes: marking of generated elements, annotated types
2013-03-14 21:04:02 +01:00
anna
436f2cc351 lambda: primitive array type constructors fixed (IDEA-102836) 2013-03-11 12:29:05 +01:00
anna
b298b6a8bc lambda -> method refs: array refs supported 2013-03-04 16:03:09 +01:00
anna
e6fb83143a change new operator type: anonymous classes processed (IDEA-102236) 2013-03-01 18:11:40 +01:00
anna
ae9e9ab0c5 register quick fixes on "expression expected" (IDEA-101705) 2013-02-28 19:31:00 +01:00
Roman Shevchenko
54a7b4dc70 Deprecated extension method syntax dropped 2013-02-27 20:40:44 +01:00
anna
456a49ce9f method refs: fix testdata according to new javac strategy 2013-02-26 16:30:12 +01:00
anna
5c8e94689b update anchor to skip whitespaces (IDEA-93459) 2013-02-21 11:38:11 +01:00
anna
3de6d80c2e create constant from usage: set static/final before insert field in order to get correct anchor (IDEA-100867) 2013-02-14 21:15:36 +01:00
Anna Kozlova
89109d4348 method refs: process local classes (IDEA-100452) 2013-02-05 13:09:37 +04:00
Anna Kozlova
e8c454f426 lambda -> method ref: insert cast when resulted ref is ambiguous (IDEA-100385) 2013-02-04 14:07:08 +04:00
peter
8a3b6547f6 IDEA-99725 "Constant conditions & exceptions" inspection produces invalid code 2013-02-03 22:42:55 +01:00
Denis.Zhdanov
f2d010031e IDEA-99028 Introduce casted variable intention breaks formatting 2013-01-21 14:25:15 +04:00
anna
1cc7b6ee11 lambda: check unhandled exceptions for method references; disable surround with try/catch accordingly (IDEA-98966) 2013-01-14 16:51:11 +01:00
Roman Shevchenko
7f67356440 IDEA-97282 (disable pointless quickfixes) 2013-01-11 18:12:50 +01:00
anna
a7fb7f9f54 create enum: add implements list if needed (IDEA-93141) 2013-01-04 16:04:38 +01:00
anna
9a683bbc4a formatter: field groups alignment: correctly process range (IDEA-98368; IDEA-98367) 2013-01-03 19:41:16 +01:00
anna
ac671ea0a2 fix testdata to collapse diamonds 2013-01-03 16:50:40 +01:00
anna
4f7a6d0de0 method return type fix: when changing class params take into account super substitutor (IDEA-98145) 2012-12-28 18:33:12 +01:00
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