Skip to content

Commit

Permalink
Re-add 'static' access modifiers to synchronized methods
Browse files Browse the repository at this point in the history
  • Loading branch information
doulikecookiedough committed Aug 27, 2024
1 parent 9d24873 commit d22659b
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2189,7 +2189,7 @@ protected Path getHashStoreRefsPath(String abpcId, HashStoreIdTypes refType)
* @param pid Persistent or authority-based identifier
* @throws InterruptedException When an issue occurs when attempting to sync the pid
*/
private void synchronizeObjectLockedPids(String pid) throws InterruptedException {
private static void synchronizeObjectLockedPids(String pid) throws InterruptedException {
synchronized (objectLockedPids) {
while (objectLockedPids.contains(pid)) {
try {
Expand All @@ -2212,7 +2212,7 @@ private void synchronizeObjectLockedPids(String pid) throws InterruptedException
*
* @param pid Content identifier
*/
private void releaseObjectLockedPids(String pid) {
private static void releaseObjectLockedPids(String pid) {
synchronized (objectLockedPids) {
logFileHashStore.debug("Releasing objectLockedPids for pid: " + pid);
objectLockedPids.remove(pid);
Expand All @@ -2226,7 +2226,7 @@ private void releaseObjectLockedPids(String pid) {
* @param metadataDocId Metadata document id hash(pid+formatId)
* @throws InterruptedException When an issue occurs when attempting to sync the metadata doc
*/
private void synchronizeMetadataLockedDocIds(String metadataDocId)
private static void synchronizeMetadataLockedDocIds(String metadataDocId)
throws InterruptedException {
synchronized (metadataLockedDocIds) {
while (metadataLockedDocIds.contains(metadataDocId)) {
Expand All @@ -2252,7 +2252,7 @@ private void synchronizeMetadataLockedDocIds(String metadataDocId)
*
* @param metadataDocId Metadata document id hash(pid+formatId)
*/
private void releaseMetadataLockedDocIds(String metadataDocId) {
private static void releaseMetadataLockedDocIds(String metadataDocId) {
synchronized (metadataLockedDocIds) {
logFileHashStore.debug(
"Releasing metadataLockedDocIds for metadata doc: " + metadataDocId);
Expand All @@ -2269,7 +2269,7 @@ private void releaseMetadataLockedDocIds(String metadataDocId) {
* @param cid Content identifier
* @throws InterruptedException When an issue occurs when attempting to sync the pid
*/
protected void synchronizeObjectLockedCids(String cid) throws InterruptedException {
protected static void synchronizeObjectLockedCids(String cid) throws InterruptedException {
synchronized (objectLockedCids) {
while (objectLockedCids.contains(cid)) {
try {
Expand All @@ -2292,7 +2292,7 @@ protected void synchronizeObjectLockedCids(String cid) throws InterruptedExcepti
*
* @param cid Content identifier
*/
protected void releaseObjectLockedCids(String cid) {
protected static void releaseObjectLockedCids(String cid) {
synchronized (objectLockedCids) {
logFileHashStore.debug("Releasing objectLockedCids for cid: " + cid);
objectLockedCids.remove(cid);
Expand All @@ -2308,7 +2308,7 @@ protected void releaseObjectLockedCids(String cid) {
* @param pid Persistent or authority-based identifier
* @throws InterruptedException When an issue occurs when attempting to sync the pid
*/
protected void synchronizeReferenceLockedPids(String pid) throws InterruptedException {
protected static void synchronizeReferenceLockedPids(String pid) throws InterruptedException {
synchronized (referenceLockedPids) {
while (referenceLockedPids.contains(pid)) {
try {
Expand All @@ -2331,7 +2331,7 @@ protected void synchronizeReferenceLockedPids(String pid) throws InterruptedExce
*
* @param pid Persistent or authority-based identifier
*/
protected void releaseReferenceLockedPids(String pid) {
protected static void releaseReferenceLockedPids(String pid) {
synchronized (referenceLockedPids) {
logFileHashStore.debug("Releasing referenceLockedPids for pid: " + pid);
referenceLockedPids.remove(pid);
Expand Down

0 comments on commit d22659b

Please sign in to comment.