Skip to content

Commit

Permalink
MONDRIAN: changing some logging that went to the console to use log4j…
Browse files Browse the repository at this point in the history
… instead.

[git-p4: depot-paths = "//open/mondrian/": change = 13116]
  • Loading branch information
Matt Campbell authored and Matt Campbell committed Oct 22, 2009
1 parent b5c3aae commit e90d2ff
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/main/mondrian/util/UnsupportedList.java
Expand Up @@ -9,6 +9,8 @@
*/
package mondrian.util;

import org.apache.log4j.Logger;

import java.util.Collection;
import java.util.Iterator;
import java.util.ListIterator;
Expand All @@ -35,6 +37,9 @@
* @since Jan 16, 2007
*/
public abstract class UnsupportedList<T> implements List<T> {
private static final Logger LOGGER =
Logger.getLogger(UnsupportedList.class);

protected UnsupportedList() {
}

Expand Down Expand Up @@ -180,10 +185,11 @@ public T next() {
lastRet = cursor++;
return next;
} catch (IndexOutOfBoundsException e) {
System.out.println(
"UnsupportedList.Itr.next: cursor=" + cursor);
System.out.println(
"UnsupportedList.Itr.next: size=" + size());
LOGGER.error(
"UnsupportedList.Itr.next: cursor="
+ cursor
+ ", size="
+ size(),e);
throw new NoSuchElementException();
}
}
Expand Down

0 comments on commit e90d2ff

Please sign in to comment.