From 93be9fd0cacc82016416ef954025e3ec2b8855ec Mon Sep 17 00:00:00 2001 From: Andrew Selden Date: Mon, 7 Apr 2014 09:56:04 -0700 Subject: [PATCH] Make writePrimitive*() and readPrimitive*() methods public. These utility methods are useful for client code to read/write arrays of primitive types. --- .../org/elasticsearch/common/io/stream/StreamInput.java | 8 ++++---- .../org/elasticsearch/common/io/stream/StreamOutput.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/elasticsearch/common/io/stream/StreamInput.java b/src/main/java/org/elasticsearch/common/io/stream/StreamInput.java index aa01ae96fb126..7c2b9381a6099 100644 --- a/src/main/java/org/elasticsearch/common/io/stream/StreamInput.java +++ b/src/main/java/org/elasticsearch/common/io/stream/StreamInput.java @@ -446,7 +446,7 @@ public Object readGenericValue() throws IOException { } } - private Object readPrimitiveIntArray() throws IOException { + public Object readPrimitiveIntArray() throws IOException { int length = readVInt(); int[] values = new int[length]; for(int i=0; i