}
/**
- * For TestNG
- *
- * @author Bob Hanson 2019.08.28
+ * Updates the cached values to include the last user input as the most
+ * recently added (without duplication), and rebuilds the dropdown list with
+ * this as the first entry. If the maximum configured cache size would be
+ * exceeded, the oldest entry is removed.
*/
- public void updateCacheNow()
+ void updateCacheNow()
{
- int cacheLimit = Integer.parseInt(appCache.getCacheLimit(cacheKey));
+ int cacheLimit = Integer.valueOf(appCache.getCacheLimit(cacheKey));
String userInput = getUserInput();
if (userInput != null && !userInput.isEmpty())
{