Skip to content

Commit

Permalink
Ensure Spring LogFactory contains all public methods from Apache `L…
Browse files Browse the repository at this point in the history
…ogFactory` (spring-projects#30668)
  • Loading branch information
maartenc authored and mdeinum committed Jun 29, 2023
1 parent bb5072d commit 17c4bc1
Showing 1 changed file with 27 additions and 0 deletions.
Expand Up @@ -102,4 +102,31 @@ public Log getInstance(String name) {
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
}

}

0 comments on commit 17c4bc1

Please sign in to comment.