You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2021/08/20 21:27:06 UTC

[commons-math] branch master updated (7ee70ef -> 69bab47)

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

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


    from 7ee70ef  Javadoc typo
     new 5201f2c  Only restore interrupted state if necessary
     new 69bab47  Javadoc typo

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../commons/math4/examples/sofm/tsp/TravellingSalesmanSolver.java   | 6 ++++--
 .../main/java/org/apache/commons/math4/legacy/ode/package-info.java | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

[commons-math] 02/02: Javadoc typo

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 69bab476a5cd7e0e5a90e3f13e34de72accf9586
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Fri Aug 20 22:23:58 2021 +0100

    Javadoc typo
---
 .../src/main/java/org/apache/commons/math4/legacy/ode/package-info.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/package-info.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/package-info.java
index 30efdd0..11acd92 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/package-info.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/package-info.java
@@ -26,7 +26,7 @@
  * <code>y(t<sub>0</sub>)=y<sub>0</sub></code> known. The provided
  * integrators compute an estimate of <code>y(t)</code> from
  * <code>t=t<sub>0</sub></code> to <code>t=t<sub>1</sub></code>.
- * It is also possible to get thederivatives with respect to the initial state
+ * It is also possible to get the derivatives with respect to the initial state
  * <code>dy(t)/dy(t<sub>0</sub>)</code> or the derivatives with
  * respect to some ODE parameters <code>dy(t)/dp</code>.
  * </p>

[commons-math] 01/02: Only restore interrupted state if necessary

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 5201f2c5fab763e063fe536101cad031418738d3
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Fri Aug 20 21:19:23 2021 +0100

    Only restore interrupted state if necessary
---
 .../commons/math4/examples/sofm/tsp/TravellingSalesmanSolver.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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 478310d..d6eb45b 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
@@ -124,8 +124,10 @@ public final class TravellingSalesmanSolver {
                 f.get();
             }
         } catch (InterruptedException | ExecutionException e) {
-            // Restore interrupted state...
-            Thread.currentThread().interrupt();
+            if (e instanceof InterruptedException) {
+                // Restore interrupted state...
+                Thread.currentThread().interrupt();
+            }
             throw new RuntimeException(e);
         }
         // Terminate all threads.