Skip to content

Commit 9ec175a

Browse files
committed
getInfo() does not need to throw an exception
1 parent c98fd4b commit 9ec175a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ public interface Cache {
3636

3737
/**
3838
* Get a string with information about the cache.
39-
*
4039
* @return a free form text string describing the history instance
41-
* @throws HistoryException if an error occurred while getting the info
4240
*/
43-
String getInfo() throws HistoryException;
41+
String getInfo();
4442

4543
/**
4644
* Clear the cache for a repository.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public String getCacheDirName() {
207207
}
208208

209209
@Override
210-
public String getInfo() throws HistoryException {
210+
public String getInfo() {
211211
return getClass().getSimpleName();
212212
}
213213
}

0 commit comments

Comments
 (0)