fix some API compatibility issues in the class library

This commit is contained in:
Joel Dice
2008-05-07 17:44:43 -06:00
parent 1cb9d0327a
commit 14e2513590
3 changed files with 30 additions and 14 deletions

View File

@ -30,8 +30,8 @@ public class Logger {
this.name = name;
}
public List<Handler> getHandlers() {
return new ArrayList<Handler>(handlers);
public Handler[] getHandlers() {
return handlers.toArray(new Handler[handlers.size()]);
}
public void addHandler(Handler handler) {