You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@crunch.apache.org by gr...@apache.org on 2012/08/10 10:36:53 UTC

git commit: Replace org.apache.hadoop.thirdparty import

Updated Branches:
  refs/heads/master 05ff678fc -> 5588544c7


Replace org.apache.hadoop.thirdparty import

Replace an accidental org.apache.hadoop.thirdparty import
with the direct Guava import


Project: http://git-wip-us.apache.org/repos/asf/incubator-crunch/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-crunch/commit/5588544c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-crunch/tree/5588544c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-crunch/diff/5588544c

Branch: refs/heads/master
Commit: 5588544c7bd27cc4b35d915e947ee4c09847a070
Parents: 05ff678
Author: Gabriel Reid <ga...@gmail.com>
Authored: Fri Aug 10 09:19:31 2012 +0200
Committer: Gabriel Reid <ga...@gmail.com>
Committed: Fri Aug 10 09:19:31 2012 +0200

----------------------------------------------------------------------
 .../apache/crunch/types/CollectionDeepCopier.java  |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-crunch/blob/5588544c/crunch/src/main/java/org/apache/crunch/types/CollectionDeepCopier.java
----------------------------------------------------------------------
diff --git a/crunch/src/main/java/org/apache/crunch/types/CollectionDeepCopier.java b/crunch/src/main/java/org/apache/crunch/types/CollectionDeepCopier.java
index 5bdc715..2216ef7 100644
--- a/crunch/src/main/java/org/apache/crunch/types/CollectionDeepCopier.java
+++ b/crunch/src/main/java/org/apache/crunch/types/CollectionDeepCopier.java
@@ -20,7 +20,7 @@ package org.apache.crunch.types;
 import java.util.Collection;
 import java.util.List;
 
-import org.apache.hadoop.thirdparty.guava.common.collect.Lists;
+import com.google.common.collect.Lists;
 
 /**
  * Performs deep copies (based on underlying PType deep copying) of Collections.
@@ -28,9 +28,8 @@ import org.apache.hadoop.thirdparty.guava.common.collect.Lists;
  * @param <T>
  *          The type of Tuple implementation being copied
  */
-public class CollectionDeepCopier<T> implements DeepCopier<Collection<T>>  {
+public class CollectionDeepCopier<T> implements DeepCopier<Collection<T>> {
 
-  
   private PType<T> elementType;
 
   public CollectionDeepCopier(PType<T> elementType) {
@@ -40,7 +39,7 @@ public class CollectionDeepCopier<T> implements DeepCopier<Collection<T>>  {
   @Override
   public Collection<T> deepCopy(Collection<T> source) {
     List<T> copiedCollection = Lists.newArrayListWithCapacity(source.size());
-    for (T value : source){
+    for (T value : source) {
       copiedCollection.add(elementType.getDetachedValue(value));
     }
     return copiedCollection;