MCPcopy Create free account
hub / github.com/apache/freemarker / get

Method get

src/main/java/freemarker/cache/MruCacheStorage.java:118–131  ·  view source on GitHub ↗
(Object key)

Source from the content-addressed store, hash-verified

116 }
117
118 public Object get(Object key) {
119 removeClearedReferences();
120 MruEntry entry = (MruEntry)map.get(key);
121 if(entry == null) {
122 return null;
123 }
124 relinkEntryAfterStrongHead(entry, null);
125 Object value = entry.getValue();
126 if(value instanceof MruReference) {
127 // This can only happen with maxStrongSize == 0
128 return ((MruReference)value).get();
129 }
130 return value;
131 }
132
133 public void put(Object key, Object value) {
134 removeClearedReferences();

Callers

nothing calls this directly

Calls 4

getValueMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected