You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2018/07/25 02:58:53 UTC

[12/29] james-project git commit: JAMES-2487 Update org.jgrapht to 1.2.0

JAMES-2487 Update org.jgrapht to 1.2.0


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/65db2c41
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/65db2c41
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/65db2c41

Branch: refs/heads/master
Commit: 65db2c419dad0c66197bb848b04d1e8b23501fe7
Parents: 3ad12fc
Author: Gautier DI FOLCO <gd...@linagora.com>
Authored: Mon Jul 23 13:39:50 2018 +0200
Committer: benwa <bt...@linagora.com>
Committed: Wed Jul 25 09:35:07 2018 +0700

----------------------------------------------------------------------
 server/protocols/jmap/pom.xml                                | 2 +-
 .../java/org/apache/james/jmap/utils/DependencyGraph.java    | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/65db2c41/server/protocols/jmap/pom.xml
----------------------------------------------------------------------
diff --git a/server/protocols/jmap/pom.xml b/server/protocols/jmap/pom.xml
index eeb3252..716accc 100644
--- a/server/protocols/jmap/pom.xml
+++ b/server/protocols/jmap/pom.xml
@@ -275,7 +275,7 @@
         <dependency>
             <groupId>org.jgrapht</groupId>
             <artifactId>jgrapht-core</artifactId>
-            <version>0.9.1</version>
+            <version>1.2.0</version>
         </dependency>
         <dependency>
             <groupId>org.jsoup</groupId>

http://git-wip-us.apache.org/repos/asf/james-project/blob/65db2c41/server/protocols/jmap/src/main/java/org/apache/james/jmap/utils/DependencyGraph.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/utils/DependencyGraph.java b/server/protocols/jmap/src/main/java/org/apache/james/jmap/utils/DependencyGraph.java
index c9b2d2d..bbf0179 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/utils/DependencyGraph.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/utils/DependencyGraph.java
@@ -24,20 +24,20 @@ import java.util.function.Function;
 import java.util.stream.Stream;
 
 import org.apache.james.util.streams.Iterators;
-import org.jgrapht.alg.CycleDetector;
+import org.jgrapht.alg.cycle.CycleDetector;
 import org.jgrapht.graph.DefaultDirectedGraph;
 import org.jgrapht.graph.DefaultEdge;
-import org.jgrapht.graph.builder.DirectedGraphBuilder;
+import org.jgrapht.graph.builder.GraphBuilder;
 import org.jgrapht.traverse.TopologicalOrderIterator;
 
 public class DependencyGraph<T> {
 
-    private final DirectedGraphBuilder<T, DefaultEdge, DefaultDirectedGraph<T, DefaultEdge>> builder;
+    private final GraphBuilder<T, DefaultEdge, DefaultDirectedGraph<T, DefaultEdge>> builder;
     private final Function<T, Optional<T>> getParent;
 
     public DependencyGraph(Function<T, Optional<T>> getParent) {
         this.getParent = getParent;
-        this.builder = new DirectedGraphBuilder<>(new DefaultDirectedGraph<>(DefaultEdge.class));
+        this.builder = new GraphBuilder<>(new DefaultDirectedGraph<>(DefaultEdge.class));
     }
 
     public void registerItem(T item) {


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org