提交 7c3bad66 编写于 作者: K kohsuke

improved error handling.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3761 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5b1c7ee3
......@@ -10,10 +10,12 @@ import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
import com.thoughtworks.xstream.mapper.Mapper;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Collection;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* {@link List}-like implementation that has copy-on-write semantics.
......@@ -134,7 +136,7 @@ public class CopyOnWriteList<E> implements Iterable<E> {
Object item = readItem(reader, context, items);
items.add(item);
} catch (CannotResolveClassException e) {
System.err.println("failed to locate class: "+e);
LOGGER.log(Level.WARNING,"Failed to resolve class",e);
}
reader.moveUp();
}
......@@ -142,4 +144,6 @@ public class CopyOnWriteList<E> implements Iterable<E> {
return new CopyOnWriteList(items,true);
}
}
private static final Logger LOGGER = Logger.getLogger(CopyOnWriteList.class.getName());
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册