This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new 6e89c09 Use StrictMath in test classes as a matter of principle.
6e89c09 is described below
commit 6e89c09db764fd4d16854068a43ea9e7686b8d4f
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Tue Apr 16 21:06:17 2019 +0200
Use StrictMath in test classes as a matter of principle.
---
.../src/test/java/org/apache/sis/coverage/CategoryListTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/sis-raster/src/test/java/org/apache/sis/coverage/CategoryListTest.java
b/core/sis-raster/src/test/java/org/apache/sis/coverage/CategoryListTest.java
index d702247..57fade5 100644
---
a/core/sis-raster/src/test/java/org/apache/sis/coverage/CategoryListTest.java
+++
b/core/sis-raster/src/test/java/org/apache/sis/coverage/CategoryListTest.java
@@ -275,7 +275,7 @@ public final strictfp class CategoryListTest extends
TestCase {
final Category c = list.get(random.nextInt(list.size()));
final int lower = (int) c.range.getMinDouble(true);
final int span = ((int) c.range.getMaxDouble(false)) - lower;
- int count = Math.min(random.nextInt(span + 5) + 1, input.length -
i);
+ int count = StrictMath.min(random.nextInt(span + 5) + 1,
input.length - i);
while (--count >= 0) {
input [i] = random.nextInt(span) + lower;
output0[i] = list.transform(input[i]);