Commit Graph
981 Commits
Author SHA1 Message Date
peter 2d78283eee canonicalize test data formatting for inline local variable 2016-12-02 08:17:33 +01:00
Bas Leijdekkers cbab61f15b fix annotation matching in duplicates finder 2016-11-21 17:09:15 +01:00
Anna.Kozlova 12542833ff change signature: refresh type element after normalizeDeclaration for old style arrays 2016-11-15 18:11:31 +01:00
Anna.Kozlova e64e0ac67b safe delete: do not show conflicts about method reference if it occurs in the argument to be deleted (IDEA-163964) 2016-11-15 18:11:31 +01:00
Anna.Kozlova 38116b22c1 show conflict if move as enum would change the semantics (IDEA-163248) 2016-11-15 18:11:31 +01:00
Anna.Kozlova 034a7db3e3 extract delegate: ensure class fqns are not lost (IDEA-163265) 2016-11-14 19:05:03 +01:00
Anna.Kozlova fd89b0ed18 introduce variable: distinguish lambda parameters but allow param free expressions (IDEA-163785) 2016-11-10 17:47:28 +01:00
Anna.Kozlova 848c1f215c inplace change signature: no detection, explicit action 2016-11-10 10:52:14 +01:00
Anna.Kozlova bed1e83f3d migration: ensure migrated refs are shortened (IDEA-163298) 2016-11-02 10:06:44 +01:00
Anna.Kozlova 260c6317c8 inline local: go through lambda/inner class hierarchy evenly (IDEA-162909) 2016-10-21 14:52:31 +02:00
Anna.Kozlova 8a276d0bf4 introduce variable: allow introduction of expression from inside for loop if independent from loop vars (IDEA-162911) 2016-10-21 14:52:31 +02:00
Anna.Kozlova 94105ecee4 inline to anonymous: allow to inline from library (IDEA-162893) 2016-10-20 19:04:25 +02:00
Anna.Kozlova bf60885576 inline chained constructor from library class 2016-10-20 19:04:25 +02:00
Anna.Kozlova 2a8fc8cbc6 extract method object: process parameters as output variables (IDEA-162642) 2016-10-17 19:00:10 +02:00
Anna.Kozlova 0cb5558e85 inplace introduce variable: ensure validity of created var
EA-63354 - PIEAE: CompositePsiElement.getContainingFile
2016-10-17 13:10:49 +02:00
Anna.Kozlova 2bd3365dc6 fix testdata 2016-10-14 16:31:35 +02:00
Anna.Kozlova d209b373a6 inline parameter: warn if method with target signature already exist (IDEA-162205) 2016-10-14 16:21:09 +02:00
Anna.Kozlova 7934a19e29 inplace introduce variable: ensure valid occurrences ranges after put inside loop/lambda/etc
EA-62679 - assert: JavaVariableInplaceIntroducer.collectAdditionalElementsToRename
2016-10-14 09:57:28 +02:00
Anna.Kozlova ee3492a8f4 rename: search for conflicts with super classes of container (IDEA-162372) 2016-10-11 19:09:56 +02:00
Anna.Kozlova 40f1cdae5f safe delete: check arg side effects (IDEA-162189) 2016-10-11 19:09:56 +02:00
Anna.Kozlova 9849261dae inline constructor: avoid javadoc references
EA-89601 - UOE: InlineMethodProcessor$.inlineUsage
2016-10-11 12:19:48 +02:00
Anna.Kozlova df5219221c inline: ensure to insert valid specification (IDEA-161992) 2016-10-04 18:45:14 +02:00
Anna.Kozlova cfb011e3e1 check inheritance for classes in local scopes to check that metho overrides another method (IDEA-161863) 2016-09-30 09:33:28 +02:00
Anna.Kozlova 946991683d introduce parameter: ensure varargs are not substituted twice (IDEA-161779) 2016-09-28 09:16:48 +02:00
Anna.Kozlova 9863deb8d9 introduce functional parameter: exclude only selection range from used parameters check as for functional interfaces the whole code block is treated as selection's parent (IDEA-154299) 2016-09-27 09:22:01 +02:00
Anna Kozlova de96e70e27 extract method: fix complete normally custom check (IDEA-161592) 2016-09-23 19:22:20 +03:00
Yaroslav Lepenkin b7a5f1eceb [Extract Method] generate method with newline between braces, since otherwise with enabled "Keep simple methods in one line" formatter will keep extracted method in one line 2016-09-16 14:00:00 +03:00
Anna Kozlova 1cbbf5614b testdata to ensure inline from library doesn't find library usages 2016-09-15 18:35:34 +03:00
Anna Kozlova ca0109df46 extract constant: allow class-constants to be used from enum constant initializer outside argument list (IDEA-161237) 2016-09-15 13:55:48 +03:00
Anna Kozlova 50e1965c91 EA-87016 - assert: PsiParameterListImpl.getParameterIndex 2016-09-01 16:38:42 +03:00
Anna Kozlova b3dcbeb29a move instance method when ref was inside anonymous inheritor (EA-87325 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText) 2016-08-26 21:01:25 +03:00
Pavel Dolgov 1a3605e4cb Java control flow: Don't allow extracting method if there's a potential side effect on the local variables in the case of exception thrown (IDEA-79444, IDEA-159916) 2016-08-24 15:24:43 +03:00
Anna Kozlova ce2674fc62 inline superclass: replace refs to super inside javadoc (IDEA-159913) 2016-08-22 08:21:16 +03:00
Anna Kozlova c975603207 introduce parameter: clear @Override when delegate (IDEA-153158) 2016-08-15 20:17:11 +03:00
Anna Kozlova 16cbb8b787 extract method with folded parameter: resolve names conflict (IDEA-156943) 2016-08-15 20:17:11 +03:00
Anna Kozlova 1efdbd06df introduce variable: ensure first conflicts are resolved and then type assignability is checked (IDEA-159366) 2016-08-12 16:08:28 +03:00
Anna.Kozlova 4866aa1f89 inline method: avoid dbl substitution of return/param types 2016-08-12 11:06:57 +02:00
Anna Kozlova cfc493fae3 push down class from interface: ensure resulted visibility (IDEA-159524) 2016-08-12 09:21:55 +03:00
Anna Kozlova b5e8d2c9dd introduce variable: allow to search in lambda parent scope for occurrences as occurrences in loops or branches are suggested this way and searching from the top scope finds occurrences in lambdas as well (IDEA-159368) 2016-08-12 09:21:55 +03:00
Anna.Kozlova 5fc02f38a4 inline method: don't repeat field initializer (IDEA-158832) 2016-07-21 19:03:45 +02:00
Anna.Kozlova ad86a5171d introduce variable: suggest upper bound of captured wildcard 2016-07-20 20:42:49 +02:00
Anna.Kozlova b649b3a511 pull up from anonymous: check for base class type instead of extends list 2016-07-20 18:23:02 +02:00
Anna.Kozlova 5170b5d3ea introduce constant: don't traverse inside class or lambda to check unhandled throwables; check for calls to instance methods though 2016-07-20 18:23:02 +02:00
Alexey Kudravtsev db48c64473 use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests 2016-07-20 15:47:18 +03:00
Anna.Kozlova 1e5372292b java stub for literal expression to ensure parenthesis 2016-07-20 09:29:54 +02:00
Anna.Kozlova cfe8570309 inline field: preserve context for diamonds (IDEA-158604) 2016-07-18 20:41:24 +02:00
Yaroslav Lepenkin b75a7e3d72 [java-formatter] do not add empty call chunks, fixes IDEA-158331, yellow code removed 2016-07-14 13:08:51 +03:00
Anna.Kozlova 2be8a720a8 static import when inheritance present (IDEA-158357) 2016-07-12 11:08:35 +02:00
Anna Kozlova 185b889f35 inline class to anonymous: generate final modifier according to setting for java 8 (IDEA-157802) 2016-07-08 10:46:34 +02:00
Anna Kozlova fe7045debb change signature: conflict if deleted parameter is used in method body, excluding javadoc (IDEA-157603) 2016-06-30 21:02:38 +03:00