Skip to content

Commit

Permalink
Switched to normal writeLock
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jan 16, 2025
1 parent aad72d9 commit ae21495
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public EnumTextResolverWithPropertiesOverrideAndFallback ()
*/
public void setUseResourceBundleCache (final boolean bUseResourceBundleCache)
{
m_aRWLock.writeLockedBoolean ( () -> m_bUseResourceBundleCache = bUseResourceBundleCache);
m_aRWLock.writeLocked ( () -> m_bUseResourceBundleCache = bUseResourceBundleCache);
}

/**
Expand Down Expand Up @@ -151,7 +151,7 @@ protected String internalGetOverrideString (@Nonnull @PropertyKey final String s
if (ret != null)
{
// Match!
m_aRWLock.writeLockedBoolean ( () -> m_aUsedOverrideBundles.add (sBundleName));
m_aRWLock.writeLocked ( () -> m_aUsedOverrideBundles.add (sBundleName));
return ret;
}
}
Expand All @@ -172,7 +172,7 @@ protected String internalGetFallbackString (@Nonnull @PropertyKey final String s
final String ret = ResourceBundleHelper.getString (_getResourceBundle (sBundleName, aLocale), sID);
if (ret != null)
{
m_aRWLock.writeLockedBoolean ( () -> m_aUsedFallbackBundles.add (sBundleName));
m_aRWLock.writeLocked ( () -> m_aUsedFallbackBundles.add (sBundleName));
return ret;
}
}
Expand Down

0 comments on commit ae21495

Please sign in to comment.