JAL-32423 tidying
[jalview.git] / src / jalview / io / cache / JvCacheableInputBox.java
index e02a396..3f17172 100644 (file)
@@ -243,13 +243,14 @@ public class JvCacheableInputBox<E>
   }
 
   /**
-   * 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())
     {