streams-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sblack...@apache.org
Subject [2/5] incubator-streams git commit: PR feedback
Date Sat, 22 Oct 2016 20:42:46 GMT
PR feedback

Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/9fddfd44
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/9fddfd44
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/9fddfd44

Branch: refs/heads/master
Commit: 9fddfd44e35df502a9e6f645ee75268773fe2358
Parents: 02d55cd
Author: Steve Blackmon <sblackmon@apache.org>
Authored: Sat Oct 22 15:31:07 2016 -0500
Committer: Steve Blackmon @steveblackmon <sblackmon@apache.org>
Committed: Sat Oct 22 15:40:25 2016 -0500

----------------------------------------------------------------------
 .../streams/twitter/converter/util/TwitterActivityUtil.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/9fddfd44/streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/converter/util/TwitterActivityUtil.java
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/converter/util/TwitterActivityUtil.java
b/streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/converter/util/TwitterActivityUtil.java
index ac503cb..56f1629 100644
--- a/streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/converter/util/TwitterActivityUtil.java
+++ b/streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/converter/util/TwitterActivityUtil.java
@@ -361,13 +361,13 @@ public class TwitterActivityUtil {
         if( place.getBoundingBox() == null ) return new ArrayList<>();
         if( place.getBoundingBox().getCoordinates().size() != 1 ) return new ArrayList<>();
         if( place.getBoundingBox().getCoordinates().get(0).size() != 4 ) return new ArrayList<>();
-        List<Double> lats = Lists.newArrayList();
-        List<Double> lons = Lists.newArrayList();
+        List<Double> lats = new ArrayList<>();
+        List<Double> lons = new ArrayList<>();
         for( List<Double> point : place.getBoundingBox().getCoordinates().get(0)) {
             lats.add(point.get(0));
             lons.add(point.get(1));
         }
-        List<Double> result = new ArrayList<Double>();
+        List<Double> result = new ArrayList<>();
         result.add(new Double(mean(lats)));
         result.add(new Double(mean(lons)));
         return result;


Mime
View raw message