Commit Graph

4 Commits

Author SHA1 Message Date
Tagir Valeev
413aca292b WrapWithAdapterMethodCallFix: correctly handle disjunction type
Fixes EA-116570 Cannot create expression for type class com.intellij.psi.PsiDisjunctionType
2018-02-18 07:54:47 +07: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
Tagir Valeev
8e9216b907 Fix IDEA-178248 WrapWithAdapterMethodCallFix exception on unresolved code 2017-08-30 16:38:53 +07:00
Tagir Valeev
661388f0c2 WrapWithAdapterMethodCallFix replaces individual cases
WrapArrayToArraysAsListFix, WrapLongWithMathToIntExactFix, WrapStringWithFileFix are united into WrapWithAdapterMethodCallFix. Also Paths.get(), Collections.singleton(), Collections.singletonList(), Arrays.stream() wrappers added

Fixes IDEA-175129 Suggest to wrap a value with `Collections.singleton*()`
2017-08-25 14:33:41 +07:00