mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
make iterateData() protected
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user