Skip to content

Commit b3eb456

Browse files
committed
unwrap lines
1 parent 0a7f3f0 commit b3eb456

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ public boolean supportsRepository(Repository repository) {
198198
* @param file the file to find the cache for
199199
* @return file that might contain cached history for <code>file</code>
200200
*/
201-
private static File getCachedFile(File file) throws HistoryException,
202-
ForbiddenSymlinkException {
201+
private static File getCachedFile(File file) throws HistoryException, ForbiddenSymlinkException {
203202

204203
StringBuilder sb = new StringBuilder();
205204
sb.append(env.getDataRootPath());

opengrok-indexer/src/test/java/org/opengrok/indexer/history/HistoryGuruTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,9 @@ void testGetRevision() throws HistoryException, IOException {
111111

112112
for (File f : FILES) {
113113
if (f.isFile() && instance.hasHistory(f)) {
114-
for (HistoryEntry entry
115-
: instance.getHistory(f).getHistoryEntries()) {
114+
for (HistoryEntry entry : instance.getHistory(f).getHistoryEntries()) {
116115
String revision = entry.getRevision();
117-
try (InputStream in = instance.getRevision(
118-
f.getParent(), f.getName(), revision)) {
116+
try (InputStream in = instance.getRevision(f.getParent(), f.getName(), revision)) {
119117
assertNotNull(in, "Failed to get revision " + revision
120118
+ " of " + f.getAbsolutePath());
121119
}

0 commit comments

Comments
 (0)