mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] minor: convert anonymous to inner
This commit is contained in:
+25
-28
@@ -137,34 +137,7 @@ public class VcsLogFullDetailsIndex<T> implements Disposable {
|
||||
protected void checkCanceled() {
|
||||
ProgressManager.checkCanceled();
|
||||
}
|
||||
},
|
||||
new ForwardIndex<Integer, T>() {
|
||||
@NotNull
|
||||
@Override
|
||||
public InputKeyIterator<Integer, T> getInputKeys(int inputId) {
|
||||
return EmptyInputKeyIterator.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void putInputData(int inputId, @NotNull Map<Integer, T> data) throws IOException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void flush() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() throws IOException {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
|
||||
}
|
||||
});
|
||||
}, new EmptyForwardIndex<>());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -220,4 +193,28 @@ public class VcsLogFullDetailsIndex<T> implements Disposable {
|
||||
return myVersion;
|
||||
}
|
||||
}
|
||||
|
||||
private static class EmptyForwardIndex<T> implements ForwardIndex<Integer, T> {
|
||||
@NotNull
|
||||
@Override
|
||||
public InputKeyIterator<Integer, T> getInputKeys(int inputId) {
|
||||
return EmptyInputKeyIterator.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void putInputData(int inputId, @NotNull Map<Integer, T> data) throws IOException {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void flush() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() throws IOException {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user