don't report unnecessary smart cast on receiver
This commit is contained in:
+2
-1
@@ -35,8 +35,9 @@ public class AutoCastServiceImpl implements AutoCastService {
|
||||
@NotNull
|
||||
@Override
|
||||
public List<ReceiverValue> getVariantsForReceiver(@NotNull ReceiverValue receiverValue) {
|
||||
List<ReceiverValue> variants = Lists.newArrayList(AutoCastUtils.getAutoCastVariants(bindingContext, dataFlowInfo, receiverValue));
|
||||
List<ReceiverValue> variants = Lists.newArrayList();
|
||||
variants.add(receiverValue);
|
||||
variants.addAll(AutoCastUtils.getAutoCastVariants(bindingContext, dataFlowInfo, receiverValue));
|
||||
return variants;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user