From: Sergey Vladimirov Date: Mon, 22 Aug 2011 08:53:16 +0000 (+0000) Subject: relax requirements for POIUtils arguments (replace classes with interfaces) X-Git-Tag: REL_3_8_BETA4~1^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fff84f00eedabad5c2d168f29cf954f94ed36982;p=poi.git relax requirements for POIUtils arguments (replace classes with interfaces) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160150 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/util/POIUtils.java b/src/java/org/apache/poi/util/POIUtils.java index fa057bc572..3686644475 100644 --- a/src/java/org/apache/poi/util/POIUtils.java +++ b/src/java/org/apache/poi/util/POIUtils.java @@ -21,7 +21,6 @@ import java.util.Iterator; import java.util.List; import org.apache.poi.poifs.filesystem.DirectoryEntry; -import org.apache.poi.poifs.filesystem.DirectoryNode; import org.apache.poi.poifs.filesystem.DocumentEntry; import org.apache.poi.poifs.filesystem.DocumentInputStream; import org.apache.poi.poifs.filesystem.Entry; @@ -70,8 +69,9 @@ public class POIUtils * @param excepts * is a list of Strings specifying what nodes NOT to copy */ - public static void copyNodes( DirectoryNode sourceRoot, - DirectoryNode targetRoot, List excepts ) throws IOException + public static void copyNodes( DirectoryEntry sourceRoot, + DirectoryEntry targetRoot, List excepts ) + throws IOException { Iterator entries = sourceRoot.getEntries(); while ( entries.hasNext() )