Tagir Valeev
d47671a183
Test for IDEA-181794 Suggest completion items with type casts in stream chains
...
The functionality was implemented automatically after a combination of earlier commits: 9fedf66f and 80e63e2
2017-11-22 14:33:42 +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
peter
724e2c37e5
IDEA-182417 Smart cast completion fails on a specific declarations
2017-11-21 12:18:12 +01:00
Tagir Valeev
9fedf66ff5
GuessManagerImpl: support type constrains from DFA, various improvements
...
Partially fixes IDEA-181794 Suggest completion items with type casts in stream chains if there exists 'filter(x -> x instanceof Foo)' call
Fixes IDEA-182455 Code completion: resolve actual value type assigned to local variable
2017-11-21 11:00:54 +07:00
Anna.Kozlova
d58653b20f
forbid access through outer class for anonymous (IDEA-182430)
2017-11-20 17:40:45 +01:00
Tagir Valeev
0dbef4cc6b
GuessManagerImpl: minimal assignment handling
2017-11-20 16:11:26 +07:00
Dmitry Batrak
483d596593
IDEA-181042 QuickDoc does not show generics type placeholders
2017-11-17 12:14:49 +03:00
Anna.Kozlova
db4350173c
inaccessible error on nested annotations for class (IDEA-181792)
2017-11-14 18:27:34 +01:00
peter
9b48840ed4
don't include trailing dot into java reference (IDEA-177789)
2017-11-13 21:07:20 +01:00
Roman Shevchenko
fa23cf6233
Merge remote-tracking branch 'origin/master'
2017-11-13 21:02:12 +01:00
Anna.Kozlova
e67bf2488b
method references: do not prefer varargs from first search (IDEA-182018)
2017-11-13 16:41:50 +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
Tagir Valeev
5bd30e691d
IDEA-181743 IntelliJ suggests bad refactoring for compareTo with Optionals
...
Reference expressions are compared instead of variables now
2017-11-10 17:38:53 +07:00
Daniil Ovchinnikov
243e4d078e
[jvm-lang] java: add more Create Constructor tests
2017-11-09 18:52:51 +03:00
Pavel Dolgov
4dfff46920
Java: Provide completion for nested class names in reflection API (IDEA-181545)
2017-11-09 13:06:59 +03:00
peter
fbbb381483
IDEA-181657 Completion items with type casts derived from control flow are not suggested if there are several nested checks from different paths of hierarchy
2017-11-08 10:01:07 +01:00
Roman Shevchenko
b3b6ff5ac9
[tests] moves move default package tests in a dedicated class
2017-11-08 08:49:52 +01:00
peter
76641748e0
java completion: prefer lambdas over method references (IDEA-181662)
2017-11-07 21:51:31 +01:00
peter
30867ebca3
java: don't complete non-annotation-methods inside incorrect annotation
2017-11-03 17:28:26 +01:00
Roman Shevchenko
24ae1022e4
[java] highlights default package references in module-info.java files (IDEA-181405)
2017-11-02 11:39:42 +01:00
Roman
4e8bbcd4a3
create SortContent intention to sort varargs and array initializers
2017-11-01 16:05:25 +07:00
peter
e849eaa058
IDEA-181266 Modifiers are not suggested after annotation with parentheses
2017-10-30 21:39:49 +01:00
Anna.Kozlova
f368f326dc
follow IDEA-CR-26141
2017-10-27 20:18:47 +02:00
Dmitry Batkovich
4c1ca2353e
add postfix template for Objects.requireNonNull
2017-10-27 16:35:42 +03:00
Dmitry Batkovich
6e2c225c5e
"Initialize variable" leads to an exception on invalid code IDEA-181272
2017-10-27 16:35:42 +03:00
Dmitry Batkovich
60921be2e3
relevant method chain completion: do not suggest casts for introduced variable (EA-108521)
2017-10-26 16:36:55 +03:00
Anna.Kozlova
543d1cf996
don't warn about final enum when it is not (IDEA-181211)
2017-10-26 15:23:08 +02:00
Anna.Kozlova
f4166d3f05
check function type's parameters/return type accessibility (IDEA-181036)
2017-10-25 19:50:25 +02:00
Anna.Kozlova
c415cde83e
definitely initialized should check order (IDEA-181149)
...
missed for field initialization; similar to class initializers
2017-10-25 19:50:25 +02:00
Anna.Kozlova
a2e13fee96
inference: check glb conflicts after flatten in intersection type(IDEA-181017)
2017-10-25 18:01:56 +02:00
Anna.Kozlova
c8f8341d2f
don't treat static method as concrete in hierarchy (IDEA-180930)
2017-10-25 18:01:56 +02:00
Dmitry Batkovich
eac0894f8a
fix test data
2017-10-25 15:46:06 +03:00
Tagir Valeev
0ff0cfe3bc
IDEA-180862 'Wrap using Collections.singletonList' intention doesn't work with subtypes of return type
...
Also anonymous classes supported
2017-10-24 16:46:42 +07:00
Anna.Kozlova
6bb976899e
overload resolution: resolve conflicts with static methods in super interfaces
2017-10-24 10:57:06 +02:00
Bas Leijdekkers
b6a75ac21d
IG: fix containsConflictingDeclarations()
2017-10-22 19:41:59 +02:00
Anna.Kozlova
4a014aafe4
testdata to ensure no unchecked warning when not-compilable (IDEA-CR-25757)
2017-10-19 13:48:52 +02:00
Anna.Kozlova
08752000cd
fix testdata
2017-10-18 10:50:03 +02:00
Anna.Kozlova
2658d37da0
inference: don't remember captured wildcard with non-proper bound (IDEA-180042)
...
later check could fail e.g. if bound was created inside one of nested session
2017-10-17 17:58:55 +02:00
Anna.Kozlova
3b40515140
show method parameters: ensure inference results on wrong overloads not cached (IDEA-177725)
2017-10-17 11:48:38 +02:00
Anna.Kozlova
bffca304b9
glb: ensure each super class processed once (IDEA-176779)
2017-10-17 11:48:38 +02:00
Anna.Kozlova
465458db4d
method references: don't fall to raw substitutor with second search (IDEA-180615)
2017-10-17 11:48:38 +02:00
Yaroslav Lepenkin
c6d8b2f05e
join lines do not merge closing brace and catch keyword, when 'catch on new line' enabled (IDEA-179581)
2017-10-17 10:21:10 +03:00
Tagir Valeev
e4efb836cd
RedundantStringOperationInspection: fixes after review IDEA-CR-25339
...
1. messages cleanup
2. new StringBuilder(""). PrintStream.println("") are warned
2017-10-17 10:58:07 +07:00
Dmitry Batrak
47d248a44b
disable bullets in Javadoc inheritance list
...
list-style attribute used in standard javadoc's stylesheet seems to be
unsupported by JDK's HTML kit
(following IDEA-107790)
- fix tests
2017-10-16 12:33:59 +03:00
Bas Leijdekkers
8c17d9fee4
fix split-filter intention on anyMatch()
2017-10-15 11:40:59 +02:00
Bas Leijdekkers
cad8001898
grammar fix in merge and split filter intentions
2017-10-15 11:40:59 +02:00
peter
609eea57ac
IDEA-178434 "Unwrap 'if' statement" produces incompilable code if variable declared in the if body shadows the outer scope variable
2017-10-13 21:17:37 +02:00
Anna.Kozlova
ef689b16b1
LVTI: warn on references to illegal class var (IDEA-180079)
2017-10-13 20:25:49 +02:00