Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/wrapAdapterCall/afterSet.java
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

14 lines
213 B
Java

// "Wrap 1st parameter using 'Collections.singleton()'" "true"
import java.util.*;
class Test {
void method(Set<Long> set, double val) {
}
void m(long l) {
method(Collections.singleton(l), l);
}
}