accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject accumulo git commit: ACCUMULO-3654 Deprecate Value.toArray(...)
Date Tue, 07 Apr 2015 20:44:14 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master c138a7f5d -> 76ef574f4


ACCUMULO-3654 Deprecate Value.toArray(...)


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/76ef574f
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/76ef574f
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/76ef574f

Branch: refs/heads/master
Commit: 76ef574f41d822702af17381d91346806238bbdd
Parents: c138a7f
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Tue Apr 7 16:43:46 2015 -0400
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Tue Apr 7 16:43:46 2015 -0400

----------------------------------------------------------------------
 core/src/main/java/org/apache/accumulo/core/data/Value.java     | 2 ++
 core/src/test/java/org/apache/accumulo/core/data/ValueTest.java | 1 +
 2 files changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/76ef574f/core/src/main/java/org/apache/accumulo/core/data/Value.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/data/Value.java b/core/src/main/java/org/apache/accumulo/core/data/Value.java
index 271391c..f2a80b7 100644
--- a/core/src/main/java/org/apache/accumulo/core/data/Value.java
+++ b/core/src/main/java/org/apache/accumulo/core/data/Value.java
@@ -259,7 +259,9 @@ public class Value implements WritableComparable<Object> {
    * @param array
    *          list of byte arrays
    * @return two-dimensional byte array containing one given byte array per row
+   * @deprecated since 1.7.0; this utility method is not appropriate for the {@link Value}
object
    */
+  @Deprecated
   public static byte[][] toArray(final List<byte[]> array) {
     // List#toArray doesn't work on lists of byte [].
     byte[][] results = new byte[array.size()][];

http://git-wip-us.apache.org/repos/asf/accumulo/blob/76ef574f/core/src/test/java/org/apache/accumulo/core/data/ValueTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/accumulo/core/data/ValueTest.java b/core/src/test/java/org/apache/accumulo/core/data/ValueTest.java
index 9a9e21d..81e7b08 100644
--- a/core/src/test/java/org/apache/accumulo/core/data/ValueTest.java
+++ b/core/src/test/java/org/apache/accumulo/core/data/ValueTest.java
@@ -199,6 +199,7 @@ public class ValueTest {
   }
 
   @Test
+  @Deprecated
   public void testToArray() {
     List<byte[]> l = new java.util.ArrayList<byte[]>();
     byte[] one = toBytes("one");


Mime
View raw message