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

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


The following commit(s) were added to refs/heads/master by this push:
     new 647e1e3  Nit ("sonarcloud" suggestion).
647e1e3 is described below

commit 647e1e36cd7676ff8fd881c46a25574b406bede8
Author: Gilles Sadowski <gillese...@gmail.com>
AuthorDate: Sun Jul 18 16:36:05 2021 +0200

    Nit ("sonarcloud" suggestion).
---
 .../apache/commons/math4/examples/sofm/chineserings/ChineseRings.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRings.java
 
b/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRings.java
index 68c23ec..92bf4f8 100644
--- 
a/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRings.java
+++ 
b/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRings.java
@@ -127,8 +127,7 @@ class ChineseRings {
      * @return the iterable.
      */
     public Iterable<double[]> createIterable() {
-        return () -> {
-            return new Iterator<double[]>() {
+        return () -> new Iterator<double[]>() {
                 /** Data. */
                 private final Vector3D[] points = getPoints();
                 /** Number of samples. */
@@ -155,6 +154,5 @@ class ChineseRings {
                     throw new UnsupportedOperationException();
                 }
             };
-        };
     }
 }

Reply via email to