/* * Copyright (c) 2020, 2021, ustchcs and/or its affiliates. All rights reserved. * More info see www.ustchcs.com */ package com.ustchcs.rule.bugfinder.testcase; import java.util.Objects; import java.util.concurrent.Flow.Publisher; import java.util.function.Function; public class Bugfinder_6_2_EXP { public static void combineLatest(Iterable> sources, Function combiner, int bufferSize) { Objects.requireNonNull(sources, "sources is null"); Objects.requireNonNull(combiner, "combiner is null"); System.out.println(new FlowableCombineLatest<>(sources, combiner, bufferSize, false)); } } final class FlowableCombineLatest { final Publisher[] array; final Iterable> iterable; final Function combiner; final int bufferSize; final boolean delayErrors; public FlowableCombineLatest(Publisher[] array, Function combiner, int bufferSize, boolean delayErrors) { this.array = array; this.iterable = null; this.combiner = combiner; this.bufferSize = bufferSize; this.delayErrors = delayErrors; } public FlowableCombineLatest(Iterable> iterable, Function combiner, int bufferSize, boolean delayErrors) { this.array = null; this.iterable = iterable; this.combiner = combiner; this.bufferSize = bufferSize; this.delayErrors = delayErrors; } }