1 10 Fix java data export functions (#450)
* HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop * Merge gcc 10 diagnostics option from develop * Merge #318 OSX changes from develop * Merge small changes from develop * Minor non-space formatting changes * #386 copyright corrections for java folder * Merges from develop #358 patches from vtk #361 fix header guard spelling * Merge updates #358 patches from vtk #361 fix header guard spelling * format fix * Fix missing underscore and make H5public.h closer to dev * Merges from develop #340 clang -Wformat-security warnings #360 Fixed uninitialized warnings header guard underscore cleanup JNI cleanup * format alignment * Add missing test ref file * Merge #380 from develop * Finish java merges from develop * Fix java issues with tests and javadoc * Correct use of attribute access plist * Remove debug code * Remove unused variable * Change file access to read only for java tests * Split clang format operations. * More javadoc comments * Remove pre-split setting * format source
This commit is contained in:
@@ -32,9 +32,9 @@ public class TestH5Fswmr {
|
||||
@Rule public TestName testname = new TestName();
|
||||
private static final String H5_FILE = "testswmr.h5";
|
||||
|
||||
long H5fid = -1;
|
||||
long H5fapl = -1;
|
||||
long H5fcpl = -1;
|
||||
long H5fid = HDF5Constants.H5I_INVALID_HID;
|
||||
long H5fapl = HDF5Constants.H5I_INVALID_HID;
|
||||
long H5fcpl = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
private final void _deleteFile(String filename) {
|
||||
File file = new File(filename);
|
||||
@@ -62,15 +62,15 @@ public class TestH5Fswmr {
|
||||
public void deleteH5file() throws HDF5LibraryException {
|
||||
if (H5fapl > 0) {
|
||||
try {H5.H5Pclose(H5fapl);} catch (Exception ex) {}
|
||||
H5fapl = -1;
|
||||
H5fapl = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
if (H5fcpl > 0) {
|
||||
try {H5.H5Pclose(H5fcpl);} catch (Exception ex) {}
|
||||
H5fcpl = -1;
|
||||
H5fcpl = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
if (H5fid > 0) {
|
||||
try {H5.H5Fclose(H5fid);} catch (Exception ex) {}
|
||||
H5fid = -1;
|
||||
H5fid = HDF5Constants.H5I_INVALID_HID;
|
||||
}
|
||||
_deleteFile(H5_FILE);
|
||||
System.out.println();
|
||||
|
||||
Reference in New Issue
Block a user