summaryrefslogtreecommitdiffstats
path: root/java/test/TestH5Giterate.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/TestH5Giterate.java')
-rw-r--r--java/test/TestH5Giterate.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/test/TestH5Giterate.java b/java/test/TestH5Giterate.java
index af210ca..88c84db 100644
--- a/java/test/TestH5Giterate.java
+++ b/java/test/TestH5Giterate.java
@@ -31,15 +31,15 @@ import org.junit.rules.TestName;
public class TestH5Giterate {
@Rule public TestName testname = new TestName();
private static final String H5_FILE = "h5ex_g_iterate.hdf";
- long H5fid = -1;
+ long H5fid = HDF5Constants.H5I_INVALID_HID;
private final long _openGroup(long fid, String name) {
- long gid = -1;
+ long gid = HDF5Constants.H5I_INVALID_HID;
try {
gid = H5.H5Gopen(fid, name, HDF5Constants.H5P_DEFAULT);
}
catch (Throwable err) {
- gid = -1;
+ gid = HDF5Constants.H5I_INVALID_HID;
err.printStackTrace();
fail("H5.H5Gcreate: " + err);
}