summaryrefslogtreecommitdiffstats
path: root/java/examples/intro/H5_ReadWrite.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/examples/intro/H5_ReadWrite.java')
-rw-r--r--java/examples/intro/H5_ReadWrite.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/examples/intro/H5_ReadWrite.java b/java/examples/intro/H5_ReadWrite.java
index 812ac77..82beec9 100644
--- a/java/examples/intro/H5_ReadWrite.java
+++ b/java/examples/intro/H5_ReadWrite.java
@@ -27,9 +27,9 @@ public class H5_ReadWrite {
private static final int DIM_Y = 6;
private static void ReadWriteDataset() {
- long file_id = -1;
- long dataspace_id = -1;
- long dataset_id = -1;
+ long file_id = HDF5Constants.H5I_INVALID_HID;
+ long dataspace_id = HDF5Constants.H5I_INVALID_HID;
+ long dataset_id = HDF5Constants.H5I_INVALID_HID;
long[] dims = { DIM_X, DIM_Y };
int[][] dset_data = new int[DIM_X][DIM_Y];