private static class LogSourceComparator implements Comparator {
public int compare(Object o1, Object o2) {
if (o1 instanceof DefaultAccessor && o2 instanceof DefaultAccessor) {
DefaultAccessor da1 = (DefaultAccessor) o1;
DefaultAccessor da2 = (DefaultAccessor) o2;
if (da1.getTarget() == da2.getTarget()) {
return 0;
}
}
LogDestination d1 = (LogDestination) o1;
LogDestination d2 = (LogDestination) o2;