Skip to content

Commit

Permalink
Update comment formatting, revise javadoc and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
doulikecookiedough committed May 9, 2024
1 parent 0c3fc66 commit 5fa19f8
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public void tagObject(String pid, String cid) throws IOException, PidRefsFileExi
);
} else if (pidRefsFound && !cidRefsFound) {
// If pid refs exists, it can only contain and reference one cid
// First, compare the cid retrieved from the pid refs file from the supplid cid
// First, compare the cid retrieved from the pid refs file from the supplied cid
String retrievedCid = new String(Files.readAllBytes(absPidRefsPath));
if (retrievedCid.equalsIgnoreCase(cid)) {
// The pid correctly references the cid, but the cid refs file is missing
Expand Down Expand Up @@ -1894,16 +1894,16 @@ protected void deleteObjectByCid(String cid)

} catch (InterruptedException ie) {
String errMsg =
"FileHashStore.deleteObject - referenceLockedCids lock was interrupted while"
+ " waiting to delete object with cid: " + cid
"FileHashStore.deleteObjectByCid - referenceLockedCids lock was "
+ "interrupted while waiting to delete object with cid: " + cid
+ ". InterruptedException: " + ie.getMessage();
logFileHashStore.error(errMsg);
throw new InterruptedException(errMsg);
}
}
logFileHashStore.debug(
"FileHashStore.deleteObject - Synchronizing referenceLockedCids for cid: " + cid
);
"FileHashStore.deleteObjectByCid - Synchronizing referenceLockedCids for cid: "
+ cid);
referenceLockedCids.add(cid);
}

Expand All @@ -1920,8 +1920,8 @@ protected void deleteObjectByCid(String cid)
// Release lock
synchronized (referenceLockedCids) {
logFileHashStore.debug(
"FileHashStore.deleteObject - Releasing referenceLockedCids for cid: " + cid
);
"FileHashStore.deleteObject - Releasing referenceLockedCids for cid: "
+ cid);
referenceLockedCids.remove(cid);
referenceLockedCids.notifyAll();
}
Expand Down Expand Up @@ -2203,7 +2203,7 @@ protected boolean writeToTmpMetadataFile(File tmpFile, InputStream metadataStrea
}

/**
* Get the absolute path of a HashStore object or metadata file
* Get the absolute path of a HashStore object, metadata or refs file
*
* @param abId Authority-based, persistent or content identifier
* @param entity "object" or "metadata"
Expand Down

0 comments on commit 5fa19f8

Please sign in to comment.