* <p>The cache is not threadsafe. It can be used without synchronization
* via thread local instances, or with synchronization as a global cache.</p>
*
+ * <p>The cache can be created with a parent cache to build a cache hierarchy.
+ * Access to the parent cache is threadsafe.</p>
+ *
* @version $Id$
*/
private DateFormatCache parent;
private Cache cache;
- /* Cache type, "parent" or "child" */
- private String type;
-
/**
* Replace the millisecond formatting character 'S' by
* some dummy characters in order to make the resulting
}
public DateFormatCache(int size, String format, DateFormatCache parent) {
- if (parent == null) {
- type = "main";
- } else {
- type = "child";
- }
cacheSize = size;
this.format = tidyFormat(format);
this.parent = parent;