diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2017-01-10 18:10:01 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2017-01-10 18:10:01 +0100 |
commit | 921e5b31d375a86867b567611f575f5ac453439d (patch) | |
tree | a834f2a66792f41a39007f68cd745c16b8789ab5 /vespajlib | |
parent | d148cf43ad4fe87be8ed70f8b8e7dc8adaadd712 (diff) |
Avoid nitpicky warnings
Diffstat (limited to 'vespajlib')
-rw-r--r-- | vespajlib/src/test/java/com/yahoo/tensor/IndexedTensorTestCase.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/tensor/IndexedTensorTestCase.java b/vespajlib/src/test/java/com/yahoo/tensor/IndexedTensorTestCase.java index e150b1cf24f..3a6a7f2f65d 100644 --- a/vespajlib/src/test/java/com/yahoo/tensor/IndexedTensorTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/tensor/IndexedTensorTestCase.java @@ -26,7 +26,7 @@ public class IndexedTensorTestCase { public void testEmpty() { Tensor empty = Tensor.Builder.of(TensorType.empty).build(); assertEquals(1, empty.size()); - assertEquals((double)0.0, (double)empty.valueIterator().next(), 0.00000001); + assertEquals(0.0, empty.valueIterator().next(), 0.00000001); Tensor emptyFromString = Tensor.from(TensorType.empty, "{}"); assertEquals(empty, emptyFromString); } @@ -73,7 +73,7 @@ public class IndexedTensorTestCase { for (int z = 0; z < zSize; z++) builder.cell(value(v, w, x, y, z), v, w, x, y, z); - IndexedTensor tensor = (IndexedTensor)builder.build(); + IndexedTensor tensor = builder.build(); // Lookup by index arguments for (int v = 0; v < vSize; v++) |