Skip to content

Commit

Permalink
Remove use of boxed number constructors for Java 9
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterC-DLS committed May 14, 2019
1 parent 228e8cb commit 4e40e75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -1517,7 +1517,7 @@ public void testZeroRankDatasets() {
assertEquals("MinPos", 0, a.minPos().length);
assertEquals("ArgMax", 0, a.argMax());
assertEquals("ArgMin", 0, a.argMin());
assertEquals("Value", true, a.equals(new Double(1.0)));
assertEquals("Value", true, a.equals(Double.valueOf(1.0)));

a = DatasetFactory.zeros(ShortDataset.class);
assertEquals("Rank", 0, a.getRank());
Expand Down
Expand Up @@ -907,7 +907,7 @@ public static Object typedProduct(final Dataset a, final int dtype, final boolea
while (it.hasNext()) {
lresult *= a.getElementLongAbs(it.index);
}
return new Long(lresult);
return Long.valueOf(lresult);
case Dataset.ARRAYINT8: case Dataset.ARRAYINT16:
case Dataset.ARRAYINT32: case Dataset.ARRAYINT64:
lresult = 1;
Expand Down

0 comments on commit 4e40e75

Please sign in to comment.