various cleanup java test, test files, comments (#1363)

This commit is contained in:
Allen Byrne 2022-01-18 15:52:01 -06:00 committed by GitHub
parent 8dc72928b8
commit bd37363332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 12 deletions

View File

@ -414,14 +414,14 @@ UD_hard_create(const char *link_name, hid_t loc_group, const void *udata, size_t
token = *((H5O_token_t *)udata);
//! [H5Open_by_token_snip]
//! [H5Oopen_by_token_snip]
/* Open the object this link points to so that we can increment
* its reference count. This also ensures that the token passed
* in points to a real object (although this check is not perfect!) */
target_obj = H5Oopen_by_token(loc_group, token);
//! [H5Open_by_token_snip]
//! [H5Oopen_by_token_snip]
if (target_obj < 0) {
ret_value = -1;

View File

@ -47,7 +47,7 @@ typedef struct particle_t {
*/
static particle_t testPart[NRECORDS] = {{"zero", 0, 0, 0.0F, 0.0}, {"one", 10, 10, 1.0F, 10.0},
{"two", 20, 20, 2.0F, 20.0}, {"three", 30, 30, 3.0F, 30.0},
{"Four", 40, 40, 4.0F, 40.0}, {"Five", 50, 50, 5.0F, 50.0},
{"four", 40, 40, 4.0F, 40.0}, {"five", 50, 50, 5.0F, 50.0},
{"six", 60, 60, 6.0F, 60.0}, {"seven", 70, 70, 7.0F, 70.0}};
/*-------------------------------------------------------------------------

View File

@ -21,6 +21,9 @@
************************************************************/
package examples.datasets;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
@ -123,8 +126,9 @@ public class H5Ex_D_Sofloat {
}
// Print the maximum value.
System.out.println("Maximum value in write buffer is: " + max);
System.out.println("Minimum value in write buffer is: " + min);
DecimalFormat df = new DecimalFormat("#,##0.000000", new DecimalFormatSymbols(Locale.US));
System.out.println("Maximum value in write buffer is: " + df.format(max));
System.out.println("Minimum value in write buffer is: " + df.format(min));
// Create a new file using the default properties.
try {
@ -308,8 +312,9 @@ public class H5Ex_D_Sofloat {
}
// Print the maximum value.
System.out.println("Maximum value in " + DATASETNAME + " is: " + max);
System.out.println("Minimum value in " + DATASETNAME + " is: " + min);
DecimalFormat df = new DecimalFormat("#,##0.000000", new DecimalFormatSymbols(Locale.US));
System.out.println("Maximum value in " + DATASETNAME + " is: " + df.format(max));
System.out.println("Minimum value in " + DATASETNAME + " is: " + df.format(min));
// End access to the dataset and release resources used by it.
try {

View File

@ -1,6 +1,6 @@
Maximum value in write buffer is: 106.66666666666667
Minimum value in write buffer is: 1.7692307692307692
Maximum value in write buffer is: 106.666667
Minimum value in write buffer is: 1.769231
Filter type is: H5Z_FILTER_SCALEOFFSET
Maximum value in DS1 is: 106.66169811320755
Minimum value in DS1 is: 1.7692307692307692
Maximum value in DS1 is: 106.661698
Minimum value in DS1 is: 1.769231

View File

@ -576,7 +576,7 @@ typedef off_t h5_stat_size_t;
#define HDoff_t off_t
#endif
#/* Redefine all the POSIX and C functions. We should never see an
/* Redefine all the POSIX and C functions. We should never see an
* undecorated POSIX or C function (or any other non-HDF5 function)
* in the source.
*/