Skip to content

Commit

Permalink
Fix bug in HashStoreClient where code incorrectly calls '.getInteger(…
Browse files Browse the repository at this point in the history
…)' to convert a String object to an int object, now calls '.parseInt()'
  • Loading branch information
doulikecookiedough committed Jan 18, 2024
1 parent 762cfa1 commit e5a3701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/dataone/hashstore/HashStoreClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ private static void testWithKnbvm(
boolean skipFile = false;
if (sizeOfFilesToSkip != null) {
// Calculate the size of requested gb to skip in bytes
long gbFilesToSkip = Integer.getInteger(sizeOfFilesToSkip) * (1024L * 1024
long gbFilesToSkip = Integer.parseInt(sizeOfFilesToSkip) * (1024L * 1024
* 1024);
if (setItemSize > gbFilesToSkip) {
skipFile = true;
Expand Down

0 comments on commit e5a3701

Please sign in to comment.