Anna Kozlova
|
2dd4d855fb
|
compilation error fix: transform getClass()->.class (IDEA-117106)
|
2018-01-03 21:10:47 +01:00 |
|
Tagir Valeev
|
c78e018f81
|
DFA: ignore boolean fields initializer if it's true or false literal
Often it's used as a knob to switch program behavior, so it's reasonable to analyze both alternatives
|
2017-12-29 18:35:29 +07:00 |
|
Anna.Kozlova
|
a1239e3f1f
|
preserve comments: replace switch with if (IDEA-113518)
|
2017-12-28 18:09:41 +01:00 |
|
Tagir Valeev
|
f1bc1f9819
|
OptionalIsPresentInspection: warn if map(x -> nullable).orElse(null)
In this case semantics preserved if map expression returns null.
|
2017-12-27 15:40:02 +07:00 |
|
Tagir Valeev
|
2e7492686e
|
StringConcatenationInLoopsInspection: null-safe fixes
Fixes IDEA-183139 "String to StringBuilder" quick fix may cause NPE
|
2017-12-26 17:18:40 +07:00 |
|
Tagir Valeev
|
ede06bbf4b
|
RedundantCollectionOperation: more tests (IDEA-CR-28150)
|
2017-12-25 17:50:25 +07:00 |
|
Tagir Valeev
|
4c568edfc9
|
RedundantCollectionOperation: remove by index and contains before add/remove
IDEA-182694 Inefficient uses of Collection/List.remove
|
2017-12-25 17:39:36 +07:00 |
|
Anna.Kozlova
|
bee978ba1e
|
disable create local from usage in this/super calls (IDEA-184182)
|
2017-12-22 16:23:22 +01:00 |
|
Tagir Valeev
|
89ac7f414a
|
IDEA-184154 Use Comparator combinator fix produces red code
|
2017-12-22 13:38:38 +07:00 |
|
Anna.Kozlova
|
b0c74e1ec8
|
redundant type args: copy expected type for top level calls(IDEA-184050)
|
2017-12-20 16:11:31 +01:00 |
|
Anna Kozlova
|
f6049bb1b1
|
access static via instance for calls on interface refs (IDEA-183919)
|
2017-12-18 15:30:14 +01:00 |
|
Anna.Kozlova
|
65d06951f4
|
remove redundant initializer: cope with field initializer side effects
EA-113714 - CCE: RemoveInitializerFix.lambda$sideEffectAwareRemove$
|
2017-12-14 18:45:49 +01:00 |
|
Anna.Kozlova
|
571b62d662
|
enable add import for inner classes (IDEA-183488)
|
2017-12-14 11:41:51 +01:00 |
|
Anna.Kozlova
|
0bc1e140a3
|
preserve comments: replace cast with var
|
2017-12-14 11:41:51 +01:00 |
|
Anna.Kozlova
|
4d4eefc1ab
|
disable lambda -> method ref for qualified new expressions (IDEA-183613)
there is no place where qualifier can be added for constructor reference
|
2017-12-13 14:10:59 +01:00 |
|
Anna.Kozlova
|
bacdd1ada8
|
preserve comments: change new operator type
|
2017-12-07 15:51:06 +01:00 |
|
Pavel Dolgov
|
307a7c774c
|
Java: Preserve comment from removed redundant variable (IDEA-182669)
|
2017-12-06 20:36:00 +03:00 |
|
Pavel Dolgov
|
971db5a4d6
|
Java: Simplify side effects check (IDEA-182669)
|
2017-12-06 19:08:44 +03:00 |
|
Tagir Valeev
|
ac8ad2c822
|
IDEA-183326 Comment disappears in stream to loop
|
2017-12-06 17:47:22 +07:00 |
|
Tagir Valeev
|
f03d494538
|
StringConcatenationInLoopsInspection: add null-check for unknown variables
IDEA-183139 "String to StringBuilder" quick fix may cause NPE
|
2017-12-06 11:57:10 +07:00 |
|
Pavel Dolgov
|
6bc79aa7ed
|
Java: Use InlineUtil for removing redundant variable (IDEA-182669)
|
2017-12-05 16:15:51 +03:00 |
|
Tagir Valeev
|
9567645279
|
LambdaUtil#isSafeLambdaReplacement; used in ComparatorCombinators
Fixes IDEA-183048 stream replacing issue
|
2017-12-05 17:55:13 +07:00 |
|
Tagir Valeev
|
1f6fd39289
|
ComparatorCombinatorsInspection: fix chain extraction for incomplete code
|
2017-12-05 17:09:20 +07:00 |
|
Roman Ivanov
|
ac83fab673
|
SortContentAction: sort in bare array initializers :IDEA-183183
|
2017-12-05 16:19:43 +07:00 |
|
Tagir Valeev
|
ff3d49c50d
|
UnrollLoopAction: comment handling fixed
|
2017-12-04 17:45:10 +07:00 |
|
Tagir Valeev
|
6746c6e1d1
|
StreamApiMigration: fixed exception when void expression is used as method argument
|
2017-12-04 17:40:01 +07:00 |
|
Anna.Kozlova
|
97535d8271
|
preserve comments: split declarations
|
2017-12-01 18:19:49 +01:00 |
|
peter
|
bf9a49d1be
|
disable "create enum constant" when executing it would result in psi/text inconsistency
|
2017-11-30 17:34:24 +01:00 |
|
Anna.Kozlova
|
a683df3efd
|
avoid search by offset in copy, use marker instead
|
2017-11-30 14:49:59 +01:00 |
|
Anna.Kozlova
|
7bccf6ebb2
|
preserve comments: merge sequential ifs
|
2017-11-29 12:12:54 +01:00 |
|
Anna.Kozlova
|
64364640a9
|
normalize declaration: don't include tree next after space
|
2017-11-29 12:12:54 +01:00 |
|
Pavel Dolgov
|
4ed027a1fe
|
Java: Inline redundant returned variable after moving 'return' (IDEA-182669)
|
2017-11-29 12:59:41 +03:00 |
|
Pavel Dolgov
|
bb9fb0fbe6
|
Java: Simplify handling the comments by using CommentTracker (IDEA-182669)
|
2017-11-29 12:49:40 +03:00 |
|
Tagir Valeev
|
b435203ca2
|
IDEA-182759 CommentTracker already used exception
|
2017-11-28 12:57:49 +07:00 |
|
Anna.Kozlova
|
6811b80a39
|
split into declarations: preserve comments in normalizeDeclaration
|
2017-11-27 18:05:19 +01:00 |
|
Anna.Kozlova
|
ab80e0dcdd
|
preserve comments: extract if with end of line comments
|
2017-11-27 16:44:16 +01:00 |
|
Tagir Valeev
|
672a49df94
|
Fixed handling of comments in forEach migration
|
2017-11-27 16:54:55 +07:00 |
|
Tagir Valeev
|
5b36191d2c
|
IDEA-182623 Replace with collect swallows comments
|
2017-11-27 15:22:26 +07:00 |
|
Tagir Valeev
|
5b8f3b2bfe
|
StreamApiMigrationInspection: preserve comments on cleanUp limit/bufferedReader
|
2017-11-27 15:22:25 +07:00 |
|
Anna.Kozlova
|
679013c7ae
|
preserve comments: anonym -> for comments inside parent new expression
|
2017-11-24 18:41:43 +01:00 |
|
Anna.Kozlova
|
8b287c2f4b
|
preserve comments: extract if condition
|
2017-11-24 18:41:42 +01:00 |
|
peter
|
4d005013e6
|
CodeEditUtil.addChildren: avoid returning invalid AST
|
2017-11-24 16:55:59 +01:00 |
|
Anna.Kozlova
|
c4804ea189
|
comments based test data for remove arg fix
assume that argument with all comments inside should be deleted
|
2017-11-24 11:34:19 +01:00 |
|
Tagir Valeev
|
cb4f3f1a89
|
IDEA-182526 Move assignment to field declaration swallows comments
|
2017-11-24 11:17:26 +07:00 |
|
Tagir Valeev
|
e71ffcdb58
|
IDEA-182004 Collection.containsAll() can be simplified in certain cases
RedundantCollectionOperation: strings externalized, description fixed
|
2017-11-24 10:40:51 +07:00 |
|
Tagir Valeev
|
0393b4fe2f
|
IDEA-182206 Simplification for Arrays.asList().sublist().toArray()
|
2017-11-23 11:52:59 +07:00 |
|
Tagir Valeev
|
80e63e20fc
|
DFA: support partial streams and ::isInstance method reference
Fixes:
IDEA-182519 Support non-terminated Stream API chains in data flow
IDEA-182520 Support Xyz.class::isInstance in stream/optional chains
|
2017-11-22 14:23:00 +07:00 |
|
Anna.Kozlova
|
443fa52729
|
restore comments on convert to local (IDEA-178942)
|
2017-11-21 16:51:10 +01:00 |
|
Anna.Kozlova
|
d6b550aa66
|
convert to local for switch block: add decl before switch (IDEA-181440)
|
2017-11-21 16:51:09 +01:00 |
|
Pavel Dolgov
|
4c3dfe6001
|
Java: Don't delete class cast when deleting unused variable (IDEA-181346)
|
2017-11-10 14:36:04 +03:00 |
|