You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2021/05/25 22:29:34 UTC

[commons-math] 03/04: Generic constructor syntax.

This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch modularized_master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit f885cb029fefade800970be1c64f75e6de716b81
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Wed May 26 00:01:00 2021 +0200

    Generic constructor syntax.
---
 .../commons/math4/examples/sofm/tsp/TravellingSalesmanSolver.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-math-examples/examples-sofm/tsp/src/main/java/org/apache/commons/math4/examples/sofm/tsp/TravellingSalesmanSolver.java b/commons-math-examples/examples-sofm/tsp/src/main/java/org/apache/commons/math4/examples/sofm/tsp/TravellingSalesmanSolver.java
index 956dc24..d7311fc 100644
--- a/commons-math-examples/examples-sofm/tsp/src/main/java/org/apache/commons/math4/examples/sofm/tsp/TravellingSalesmanSolver.java
+++ b/commons-math-examples/examples-sofm/tsp/src/main/java/org/apache/commons/math4/examples/sofm/tsp/TravellingSalesmanSolver.java
@@ -179,7 +179,7 @@ public class TravellingSalesmanSolver {
     private static Iterator<double[]> createIterator(final long numSamples,
                                                      final Set<City> uniqueCities,
                                                      final UniformRandomProvider random) {
-        final CollectionSampler<City> sampler = new CollectionSampler(random, uniqueCities);
+        final CollectionSampler<City> sampler = new CollectionSampler<>(random, uniqueCities);
 
         return new Iterator<double[]>() {
             /** Number of samples. */