Ensure Spring LogFactory contains all public methods from Apache LogFactory (#30668)

This commit is contained in:
Maarten Coene
2023-06-21 09:29:58 +02:00
committed by GitHub
parent f1fb8cf03e
commit 24457660e3

View File

@@ -102,4 +102,31 @@ public abstract class LogFactory {
return getLog(name);
}
// Just in case some code happens to call uncommon Commons Logging methods...
@Deprecated
public Object getAttribute(String name) {
return null;
}
@Deprecated
public String[] getAttributeNames() {
return new String[0];
}
@Deprecated
public void removeAttribute(String name) {
// do nothing
}
@Deprecated
public void setAttribute(String name, Object value) {
// do nothing
}
@Deprecated
public void release() {
// do nothing
}
}