arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject arrow git commit: [Java] Fix some typos in code comments and exception messages
Date Wed, 26 Jul 2017 13:26:29 GMT
Repository: arrow
Updated Branches:
  refs/heads/master 676a4a947 -> 5708cd103


[Java] Fix some typos in code comments and exception messages

Closes #893

Change-Id: I4f8279086788986fed3c7a65f2be95dfc4809c28


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/5708cd10
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/5708cd10
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/5708cd10

Branch: refs/heads/master
Commit: 5708cd10347ea92163f32d4943104d4207e486f1
Parents: 676a4a9
Author: rendel <renaud@siren.solutions>
Authored: Wed Jul 26 11:33:41 2017 +0200
Committer: Wes McKinney <wes.mckinney@twosigma.com>
Committed: Wed Jul 26 09:25:44 2017 -0400

----------------------------------------------------------------------
 java/memory/src/main/java/io/netty/buffer/ArrowBuf.java            | 2 +-
 .../src/main/java/org/apache/arrow/memory/BaseAllocator.java       | 2 +-
 java/vector/src/main/java/org/apache/arrow/vector/ValueVector.java | 2 +-
 .../org/apache/arrow/vector/complex/AbstractContainerVector.java   | 2 +-
 .../src/main/java/org/apache/arrow/vector/complex/StateTool.java   | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/5708cd10/java/memory/src/main/java/io/netty/buffer/ArrowBuf.java
----------------------------------------------------------------------
diff --git a/java/memory/src/main/java/io/netty/buffer/ArrowBuf.java b/java/memory/src/main/java/io/netty/buffer/ArrowBuf.java
index 0328a16..09886a6 100644
--- a/java/memory/src/main/java/io/netty/buffer/ArrowBuf.java
+++ b/java/memory/src/main/java/io/netty/buffer/ArrowBuf.java
@@ -208,7 +208,7 @@ public final class ArrowBuf extends AbstractByteBuf implements AutoCloseable
{
    * that carries an association with the underlying memory of this ArrowBuf. If this ArrowBuf
is
    * connected to the
    * owning BufferLedger of this memory, that memory ownership/accounting will be transferred
to
-   * the taret allocator. If
+   * the target allocator. If
    * this ArrowBuf does not currently own the memory underlying it (and is only associated
with
    * it), this does not
    * transfer any ownership to the newly created ArrowBuf.

http://git-wip-us.apache.org/repos/asf/arrow/blob/5708cd10/java/memory/src/main/java/org/apache/arrow/memory/BaseAllocator.java
----------------------------------------------------------------------
diff --git a/java/memory/src/main/java/org/apache/arrow/memory/BaseAllocator.java b/java/memory/src/main/java/org/apache/arrow/memory/BaseAllocator.java
index ddc78f0..be0ba77 100644
--- a/java/memory/src/main/java/org/apache/arrow/memory/BaseAllocator.java
+++ b/java/memory/src/main/java/org/apache/arrow/memory/BaseAllocator.java
@@ -640,7 +640,7 @@ public abstract class BaseAllocator extends Accountant implements BufferAllocato
         continue;
       }
       final UnsafeDirectLittleEndian udle = ledger.getUnderlying();
-      sb.append("UnsafeDirectLittleEndian[dentityHashCode == ");
+      sb.append("UnsafeDirectLittleEndian[identityHashCode == ");
       sb.append(Integer.toString(System.identityHashCode(udle)));
       sb.append("] size ");
       sb.append(Integer.toString(udle.capacity()));

http://git-wip-us.apache.org/repos/asf/arrow/blob/5708cd10/java/vector/src/main/java/org/apache/arrow/vector/ValueVector.java
----------------------------------------------------------------------
diff --git a/java/vector/src/main/java/org/apache/arrow/vector/ValueVector.java b/java/vector/src/main/java/org/apache/arrow/vector/ValueVector.java
index 2e83836..3812c0b 100644
--- a/java/vector/src/main/java/org/apache/arrow/vector/ValueVector.java
+++ b/java/vector/src/main/java/org/apache/arrow/vector/ValueVector.java
@@ -47,7 +47,7 @@ import io.netty.buffer.ArrowBuf;
  *   <li>you should never write to a vector once it has been read.</li>
  * </ul>
  *
- * Please note that the current implementation doesn't enfore those rules, hence we may find
few places that
+ * Please note that the current implementation doesn't enforce those rules, hence we may
find few places that
  * deviate from these rules (e.g. offset vectors in Variable Length and Repeated vector)
  *
  * This interface "should" strive to guarantee this order of operation:

http://git-wip-us.apache.org/repos/asf/arrow/blob/5708cd10/java/vector/src/main/java/org/apache/arrow/vector/complex/AbstractContainerVector.java
----------------------------------------------------------------------
diff --git a/java/vector/src/main/java/org/apache/arrow/vector/complex/AbstractContainerVector.java
b/java/vector/src/main/java/org/apache/arrow/vector/complex/AbstractContainerVector.java
index 7f8e679..2aeeca2 100644
--- a/java/vector/src/main/java/org/apache/arrow/vector/complex/AbstractContainerVector.java
+++ b/java/vector/src/main/java/org/apache/arrow/vector/complex/AbstractContainerVector.java
@@ -79,7 +79,7 @@ public abstract class AbstractContainerVector implements ValueVector {
     if (clazz.isAssignableFrom(v.getClass())) {
       return clazz.cast(v);
     }
-    throw new IllegalStateException(String.format("Vector requested [%s] was different than
type stored [%s]. Arrow doesn't yet support hetergenous types.", clazz.getSimpleName(), v.getClass().getSimpleName()));
+    throw new IllegalStateException(String.format("Vector requested [%s] was different than
type stored [%s]. Arrow doesn't yet support heterogenous types.", clazz.getSimpleName(), v.getClass().getSimpleName()));
   }
 
   protected boolean supportsDirectRead() {

http://git-wip-us.apache.org/repos/asf/arrow/blob/5708cd10/java/vector/src/main/java/org/apache/arrow/vector/complex/StateTool.java
----------------------------------------------------------------------
diff --git a/java/vector/src/main/java/org/apache/arrow/vector/complex/StateTool.java b/java/vector/src/main/java/org/apache/arrow/vector/complex/StateTool.java
index 852c72c..05a79d2 100644
--- a/java/vector/src/main/java/org/apache/arrow/vector/complex/StateTool.java
+++ b/java/vector/src/main/java/org/apache/arrow/vector/complex/StateTool.java
@@ -28,7 +28,7 @@ public class StateTool {
         return;
       }
     }
-    throw new IllegalArgumentException(String.format("Expected to be in one of these states
%s but was actuall in state %s", Arrays.toString(expectedStates), currentState));
+    throw new IllegalArgumentException(String.format("Expected to be in one of these states
%s but was actually in state %s", Arrays.toString(expectedStates), currentState));
   }
 
 }


Mime
View raw message