]> source.dussan.org Git - jgit.git/commit
Enable reuse of FileTreeIterator and FileEntry for non subclasses 89/8989/2
authorRobin Stocker <robin@nibor.org>
Sat, 1 Dec 2012 22:51:09 +0000 (23:51 +0100)
committerChris Aniszczyk <zx@twitter.com>
Mon, 3 Dec 2012 17:26:39 +0000 (11:26 -0600)
commit4213a91c97c68d7a4ee1450210f55ebeab401654
tree94a0dfe4365209f894db995294450edba71c4edd
parent55e8f2a433589a4c4969546493173a05ec4830dd
Enable reuse of FileTreeIterator and FileEntry for non subclasses

For EGit change I2c41d86b8b74c2a334433de1bbfed5b36af872bf,
ContainerTreeIterator also needs to create entries for File objects in
case of filtered resources. Instead of reimplementing FileEntry there,
make the constructor public so that it can be reused.

Also allow to pass a WorkingTreeIterator instead of a FileTreeIterator
in FileTreeIterator's constructor, which is enough and allows to pass
other subclasses.

Bug: 358901
Change-Id: Ie0f9c9434ef7d73a8d73d4fe46db4147ded1d267
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/FileTreeIterator.java