Added method to clear cache

This commit is contained in:
Joni Salmi 2014-06-10 13:30:51 +03:00 committed by Roman Ivanov
parent 39ad631113
commit dc787c89fd
1 changed files with 8 additions and 0 deletions

View File

@ -248,6 +248,14 @@ public final class LocalizedMessage
aSourceClass, aCustomMessage);
}
/** Clears the cache */
public static void clearCache()
{
synchronized (BUNDLE_CACHE) {
BUNDLE_CACHE.clear();
}
}
/** @return the translated message **/
public String getMessage()
{