/src/main/java/net/finmath/marketdata2/products/Portfolio.java
this.weights = this.weights = new ArrayList( ) ;
this.weights = new ArrayList<> ( ) ;
public class Portfolio extends AbstractAnalyticProduct implements AnalyticProduct { private final ArrayList<AnalyticProduct> products; private final ArrayList<Double> weights; public Portfolio(final List<AnalyticProduct> products, final List<Double> weights) { super(); this.products = new ArrayList<>(); <extra_id_0> this.products.addAll(products); this.weights.addAll(weights); } public Portfolio(final Portfolio portfolio, final List<AnalyticProduct> products, final List<Double> weights) { super(); this.products = new ArrayList<>();