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
c522bdfb38
ambiguity conflict resolution for class/package (IDEA-151859;IDEA-184289)
2017-12-28 18:09:41 +01: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
Anna.Kozlova
20ea015d3e
inference: ensure to distinguish new fresh variables of the same node
2017-12-22 10:05:44 +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
15020a138d
enum constants resolution cached (IDEA-183841)
2017-12-18 10:23:01 +01:00
peter
9ad8c63df4
java completion: lambda items should be higher than recently selected items (IDEA-183824)
2017-12-15 20:12:49 +01:00
Anna.Kozlova
9e20e117d6
skip inference for incompatible method references
...
EA-103416 - assert: PsiMethodReferenceCompatibilityConstraint.getSubstitutor
2017-12-14 18:45:49 +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
1d6641db80
overload resolution: check method hiding for static only (IDEA-183712)
...
non-static methods should already be covered by same signatures check
2017-12-13 14:10:59 +01:00
peter
beb4f6dba7
move completion suggestions before lambda only when they really match specific expected type (IDEA-183592)
2017-12-12 17:55:37 +01:00
Anna.Kozlova
bacdd1ada8
preserve comments: change new operator type
2017-12-07 15:51:06 +01:00
Anna.Kozlova
1fc76eb779
calc types by applicability constraints if inference fails
...
include all inference variables for resolve and ignore additional constraints checks if the inference is going to failure; this way if (expr()) would get type of the 'standalone' expression instead of expression with boolean as expected 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
Anna.Kozlova
6180b5b337
inference: check substituted intersection type during resolution
2017-12-06 14:54:24 +01:00
Alexey Kudravtsev
e07afa8f5c
Date/Time in javadocs considered useless for readability
2017-12-06 15:11:04 +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
Roman Shevchenko
f0b9a97b8c
[tests] updates module-related testdata
2017-11-27 16:34:02 +01:00
Anna.Kozlova
3c84388f6f
lvti: guard SOE (IDEA-181104)
2017-11-27 13:39:21 +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