You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2016/04/27 11:25:16 UTC
[3/5] flink git commit: [FLINK-3818] Remove Guava dependency from
flink-gelly-examples
[FLINK-3818] Remove Guava dependency from flink-gelly-examples
This closes #1936
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/6ef08cfe
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/6ef08cfe
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/6ef08cfe
Branch: refs/heads/master
Commit: 6ef08cfeb78d8d3b2ce4ad238a2c84e82d577a66
Parents: 91a956e
Author: zentol <ch...@apache.org>
Authored: Tue Apr 26 13:26:48 2016 +0200
Committer: zentol <ch...@apache.org>
Committed: Wed Apr 27 11:24:14 2016 +0200
----------------------------------------------------------------------
flink-libraries/flink-gelly-examples/pom.xml | 5 -----
.../apache/flink/graph/examples/data/SummarizationData.java | 7 +++----
2 files changed, 3 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/6ef08cfe/flink-libraries/flink-gelly-examples/pom.xml
----------------------------------------------------------------------
diff --git a/flink-libraries/flink-gelly-examples/pom.xml b/flink-libraries/flink-gelly-examples/pom.xml
index 5ed0fa4..864b4b9 100644
--- a/flink-libraries/flink-gelly-examples/pom.xml
+++ b/flink-libraries/flink-gelly-examples/pom.xml
@@ -63,11 +63,6 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>${guava.version}</version>
- </dependency>
</dependencies>
<build>
http://git-wip-us.apache.org/repos/asf/flink/blob/6ef08cfe/flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/examples/data/SummarizationData.java
----------------------------------------------------------------------
diff --git a/flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/examples/data/SummarizationData.java b/flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/examples/data/SummarizationData.java
index c14d5de..ea60ea0 100644
--- a/flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/examples/data/SummarizationData.java
+++ b/flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/examples/data/SummarizationData.java
@@ -18,8 +18,6 @@
package org.apache.flink.graph.examples.data;
-import com.google.common.collect.Lists;
-
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.java.DataSet;
import org.apache.flink.api.java.ExecutionEnvironment;
@@ -27,6 +25,7 @@ import org.apache.flink.graph.Edge;
import org.apache.flink.graph.Vertex;
import org.apache.flink.types.NullValue;
+import java.util.ArrayList;
import java.util.List;
/**
@@ -83,7 +82,7 @@ public class SummarizationData {
* @return vertex data set with string values
*/
public static DataSet<Vertex<Long, String>> getVertices(ExecutionEnvironment env) {
- List<Vertex<Long, String>> vertices = Lists.newArrayListWithExpectedSize(6);
+ List<Vertex<Long, String>> vertices = new ArrayList<>(6);
vertices.add(new Vertex<>(0L, "A"));
vertices.add(new Vertex<>(1L, "A"));
vertices.add(new Vertex<>(2L, "B"));
@@ -101,7 +100,7 @@ public class SummarizationData {
* @return edge data set with string values
*/
public static DataSet<Edge<Long, String>> getEdges(ExecutionEnvironment env) {
- List<Edge<Long, String>> edges = Lists.newArrayListWithExpectedSize(10);
+ List<Edge<Long, String>> edges = new ArrayList<>(10);
edges.add(new Edge<>(0L, 1L, "A"));
edges.add(new Edge<>(1L, 0L, "A"));
edges.add(new Edge<>(1L, 2L, "A"));