From c3235cc7456cc7809dfef825c0c958d32fc525ae Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 22 Aug 2011 08:53:16 +0000 Subject: [PATCH] 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 --- src/java/org/apache/poi/util/POIUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/poi/util/POIUtils.java b/src/java/org/apache/poi/util/POIUtils.java index fa057bc57..368664447 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() )