Skip to content

Commit 85bd9ba

Browse files
committed
undo XMLMapperBuilder changes
1 parent 3456f2b commit 85bd9ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/ibatis/builder/xml/XMLMapperBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ private void cacheRefElement(XNode context) {
161161
private void cacheElement(XNode context) {
162162
if (context != null) {
163163
String type = context.getStringAttribute("type", "PERPETUAL");
164-
Class<? extends Cache> typeClass = resolveAlias(type);
164+
Class<? extends Cache> typeClass = typeAliasRegistry.resolveAlias(type);
165165
String eviction = context.getStringAttribute("eviction", "LRU");
166-
Class<? extends Cache> evictionClass = resolveAlias(eviction);
166+
Class<? extends Cache> evictionClass = typeAliasRegistry.resolveAlias(eviction);
167167
Long flushInterval = context.getLongAttribute("flushInterval");
168168
Integer size = context.getIntAttribute("size");
169169
boolean readWrite = !context.getBooleanAttribute("readOnly", false);

0 commit comments

Comments
 (0)