Skip to content

Commit

Permalink
#27448 Renaming method
Browse files Browse the repository at this point in the history
  • Loading branch information
jgambarios committed Apr 10, 2024
1 parent 80fc192 commit cb2e811
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public boolean hasLanguage (long id) {
}
return l != null;
}

public boolean hasLanguage (String languageCode, String countryCode) {
DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();
String languageKey = languageCode + "-" + countryCode;
Expand All @@ -168,11 +168,11 @@ public void removeLanguage(Language language) {
// as parameter if, for example, the ISO code was changed
final var cachedLanguage = getLanguageById(language.getId());
if (cachedLanguage != null) {
internalRemove(cachedLanguage);
removeFromCache(cachedLanguage);
}

// Cleaning up the language
internalRemove(language);
removeFromCache(language);

cache.remove(ALL_LANGUAGES_KEY, getPrimaryGroup());
}
Expand All @@ -182,7 +182,7 @@ public void removeLanguage(Language language) {
*
* @param language the language to remove
*/
private void internalRemove(Language language) {
private void removeFromCache(Language language) {

DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();

Expand Down

0 comments on commit cb2e811

Please sign in to comment.