make iterateData() protected

This commit is contained in:
Eugene Zhuravlev
2010-06-28 12:10:40 +04:00
parent 4d6f9a1476
commit 37e6d29972
2 changed files with 5 additions and 3 deletions
@@ -417,7 +417,7 @@ public class PersistentEnumerator<Data> implements Forceable {
Bits.putInt(buf, KEY_REF_OFFSET, dataOffset);
}
public boolean iterateData(final Processor<Data> processor) throws IOException {
protected boolean iterateData(final Processor<Data> processor) throws IOException {
if (myKeyStorage == null) {
throw new UnsupportedOperationException("Iteration over InlineIntegerKeyDescriptors is not supported");
}
@@ -166,11 +166,13 @@ public class SvnBranchPointsCalculator {
final Ref<IOException> excRef = new Ref<IOException>();
// list for values by default
myForSearchMap = new MultiMap<String, String>();
myPersistentMap.iterateData(new Processor<String>() {
myPersistentMap.processKeys(new Processor<String>() {
public boolean process(final String s) {
try {
final TreeMap<String, BranchCopyData> map = myPersistentMap.get(s);
myForSearchMap.put(s, new ArrayList<String>(map.keySet()));
if (map != null) {
myForSearchMap.put(s, new ArrayList<String>(map.keySet()));
}
}
catch (IOException e) {
excRef.set(e);