Anna.Kozlova
643e046c85
EA-107704 - assert: InferenceSession.<init>
2017-09-26 14:33:30 +02:00
Tagir Valeev
4e24c72077
IDEA-179557 Merge nested if's removes comment
2017-09-26 16:58:46 +07:00
Tagir Valeev
2a29c82c70
FuseStreamOperationsInspection
...
Fixes IDEA-179303 Suggest replacing Collectors.toList()/toSet() + collection constructor with Collectors.toCollection
2017-09-26 11:01:37 +07:00
Tagir Valeev
b2df7a760a
IDEA-179490 "Can be replaced with single expression in functional style" in Java fails when field name matches class name
2017-09-26 09:44:21 +07:00
Tagir Valeev
fa6bbd0b5d
CollectMigration: prepare to IncorporateStreamOperationsInspection; fix NewListTerminal to support collections only
2017-09-26 09:29:37 +07:00
Anna Kozlova
776b8f9474
LVTI: explicit variable type is redundant (IDEA-179177)
2017-09-25 15:05:22 +02:00
Tagir Valeev
29e2383afd
IDEA-179370 "Constant conditions and exceptions" quickfix "Replace with 'x != null ?:'" does nothing
2017-09-22 16:20:55 +07:00
Tagir Valeev
cade4517aa
IDEA-168343 Suggest to change called method return type when used in return statement
2017-09-22 14:15:40 +07:00
Anna Kozlova
e22a89050d
LVTI: un-capture wildcards for variable declarations
2017-09-19 20:13:16 +03:00
Anna Kozlova
e38b24c694
LVTI: ensure standalone context for vars
2017-09-19 20:13:15 +03:00
Tagir Valeev
dede7b30f7
IDEA-113585 Cast to Type quick fix creates code that doesn't help
2017-09-19 16:10:34 +07:00
Anna Kozlova
2f165da164
LVTI: accept explicit array types, javadoc (follow IDEA-CR-24690)
2017-09-19 09:28:42 +03:00
Tagir Valeev
36999ebfc4
IDEA-179128 Quick-fix for "'if' statement has empty body"
2017-09-19 13:04:21 +07:00
Anna Kozlova
29bc5a12c0
LVTI: warnings for var as class name (IDEA-178868)
2017-09-18 19:05:20 +03:00
Anna Kozlova
2180c05b71
initial highlighting for LVTI (IDEA-178868)
2017-09-18 17:04:30 +03:00
Tagir Valeev
d7f09f6cdd
StreamToLoop: support array slice (Arrays.stream(arr, from, to))
2017-09-18 17:30:53 +07:00
Tagir Valeev
7345e8b0ef
UnrollLoopAction: fixes according to review IDEA-CR-24513
...
1. Check that loop parameter is not written
2. Support List.of, Collections.singleton, Collections.singletonList
3. Support if w/o braces
4. Support break not in last position
2017-09-18 16:37:40 +07:00
Tagir Valeev
717076ee3c
SimplifyForEachContext#from: fix nullability problem
...
EA-107550 - NPE: SimplifyForEachInspection.extractLambdaFromForEach
2017-09-18 15:21:32 +07:00
peter
dd920e884e
completion: place functional expressions after variables of expected type (IDEA-174428, IDEA-178600)
2017-09-15 22:04:11 +02:00
Anna Kozlova
b9e2c4130d
inference: allow capture during intersection type construction (IDEA-173900)
2017-09-13 15:33:56 +03:00
Roman Ivanov
8385149b78
Merge remote-tracking branch 'origin/master'
2017-09-13 11:37:12 +07:00
Roman Ivanov
364c5bb129
add new groupBy cases
2017-09-13 11:29:31 +07:00
Tagir Valeev
308e007dd8
ExcessiveLambdaUsageInspection: support Java 9 requireNonNullElseGet
2017-09-13 10:46:01 +07:00
Tagir Valeev
626278150e
IDEA-178846 False positive "Excessive lambda usage" inspection
2017-09-13 10:27:14 +07:00
Roman Ivanov and Roman Ivanov
0752af3706
fix errors
2017-09-13 10:11:23 +07:00
Tagir Valeev
35eb29010f
IDEA-178788 Suggestion code replace from list iteration to List.removeAll
2017-09-13 09:41:13 +07:00
Anna Kozlova
b0ccbdebcf
exception inference: don't check non-applicable methods (IDEA-178762)
2017-09-12 21:05:35 +03:00
Tagir Valeev
6e87cb9bfd
RefactoringUtil#ensureCodeBlock enhanced and used in Surround with try-catch
...
Fixes IDEA-178781 "Surround with try-catch" QuickFix for "Unhandled exception" in a field initializer
Enables stream-to-loop in field initializer
Fixes stream-to-loop in for initializer
Disables stream-to-loop in for update
2017-09-12 13:34:43 +07:00
Tagir Valeev
94a5fea51d
IDEA-178774 Unroll loop intention action
2017-09-12 09:25:51 +07:00
Anna Kozlova
e129868d33
unused: search for main in inner classes (IDEA-178721)
2017-09-11 19:02:58 +03:00
Anna Kozlova
5fa4775cf1
unresolved qualifiers in ref expressions chain (follow IDEA-CR-24382)
2017-09-11 13:35:36 +03:00
Tagir Valeev
a2dfaa56dc
SimplifyForEachInspection: compilation fix added for non-final var
...
Adds another alternative to IDEA-177104
2017-09-07 15:47:38 +07:00
Daniil Ovchinnikov
e08521fb91
[jvm-lang] update Java-to-Java Create Method from usage tests
2017-09-06 21:24:13 +03:00
Anna Kozlova
8032558bec
highlighting: don't check static methods for unrelated inheritance (IDEA-178539)
...
in class case, static methods must have signatures with different erasures, for interfaces, static methods
2017-09-06 19:42:01 +03:00
Anna Kozlova
955a6160cd
resolve references by qualified class name when qualifiers can't be resolved
...
javac ignores problems caused by files located in wrong directories, IDEA reports them: try to search class by FQName when failed to resolve normally (IDEA-178376; IDEA-176179)
2017-09-06 19:42:00 +03:00
Daniil Ovchinnikov
87fa214435
[java] add tests for "Create abstract method"
2017-09-06 19:02:21 +03:00
Daniil Ovchinnikov
dce477391d
[jvm-lang] disable Create Field from Java method calls
2017-09-06 15:33:11 +03:00
Anna Kozlova
18d71a7378
make type parameter implements interface: don't insert any methods in code
2017-09-06 10:53:09 +03:00
Daniil Ovchinnikov
e5cb361156
GuessTypeParameters: explicitly set type element to the expected type
2017-09-05 21:13:29 +03:00
Anna Kozlova
79b43cdbcd
error if inner class of generic outer extends throwable (IDEA-178490)
2017-09-05 15:54:41 +03:00
Anna Kozlova
ed9b3db88f
create local from usage: check containing code block (IDEA-178443)
2017-09-05 12:00:19 +03:00
Anna Kozlova
b23c6b026b
can complete normally: break inside switch (IDEA-178304)
...
break inside switch when switch is selected should not lead to abnormal completion
2017-09-04 12:28:22 +03:00
Roman Ivanov
9938f0d0e7
fix tests
2017-09-01 17:26:19 +07:00
Roman Ivanov
029b97749b
extract simplify forEach inspection: IDEA-CR-24052
2017-09-01 17:26:19 +07:00
Roman Ivanov
c3b4d6f849
support return in forEach replacement
2017-09-01 12:37:18 +07:00
Roman Ivanov and Roman Ivanov
5acdc9ccdc
add tests
2017-09-01 12:07:23 +07:00
Anna Kozlova
90924b2043
align message according to javac (IDEA-178211)
2017-08-30 19:53:27 +03:00
Tagir Valeev
8e9216b907
Fix IDEA-178248 WrapWithAdapterMethodCallFix exception on unresolved code
2017-08-30 16:38:53 +07:00
Tagir Valeev
ca9fffa746
IDEA-178242 Extract Set from comparison chain: find duplicates within class
2017-08-30 14:29:54 +07:00
Tagir Valeev
d3e36561f4
IDEA-174813 Intention to replace multiple enum comparisons with EnumSet.contains()
...
ExtractSetFromComparisonChainAction enhanced to support enums and support == comparisons
2017-08-29 17:40:32 +07:00