Skip to content

Commit acc4728

Browse files
author
Vladimir Kotal
committed
rename interface name
1 parent a2e7ef3 commit acc4728

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/BoundaryChangesets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* This is then used in {@link Repository#createCache(HistoryCache, String)}
3737
* to store history in chunks, for VCS repositories that supports this.
3838
*/
39-
public class BoundaryChangesets implements IChangesetVisitor {
39+
public class BoundaryChangesets implements ChangesetVisitorInterface {
4040
private int cnt = 0;
4141
private final List<String> result = new ArrayList<>();
4242

opengrok-indexer/src/main/java/org/opengrok/indexer/history/IChangesetVisitor.java renamed to opengrok-indexer/src/main/java/org/opengrok/indexer/history/ChangesetVisitorInterface.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
*/
2323
package org.opengrok.indexer.history;
2424

25-
public interface IChangesetVisitor {
25+
public interface ChangesetVisitorInterface {
2626
void visit(String id);
2727
}

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public int getPerPartesCount() {
534534
return MAX_CHANGESETS;
535535
}
536536

537-
public void accept(String sinceRevision, IChangesetVisitor visitor) throws HistoryException {
537+
public void accept(String sinceRevision, ChangesetVisitorInterface visitor) throws HistoryException {
538538
try (org.eclipse.jgit.lib.Repository repository = getJGitRepository(getDirectoryName());
539539
RevWalk walk = new RevWalk(repository)) {
540540

opengrok-indexer/src/main/java/org/opengrok/indexer/history/RepositoryWithPerPartesHistory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public int getPerPartesCount() {
5353
/**
5454
* Traverse the changesets using the visitor pattern.
5555
* @param sinceRevision start revision
56-
* @param visitor object implementing the {@link IChangesetVisitor} interface
56+
* @param visitor object implementing the {@link ChangesetVisitorInterface} interface
5757
* @throws HistoryException on error during history retrieval
5858
*/
59-
public abstract void accept(String sinceRevision, IChangesetVisitor visitor) throws HistoryException;
59+
public abstract void accept(String sinceRevision, ChangesetVisitorInterface visitor) throws HistoryException;
6060
}

0 commit comments

Comments
 (0)