Skip to content

Commit dc41655

Browse files
committed
unsplit lines for better readability
1 parent f6552af commit dc41655

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.indexer.history;
2424

@@ -56,8 +56,7 @@ public TreeSet<TagEntry> getEntries() {
5656
@Override
5757
public void processStream(InputStream input) throws IOException {
5858
try {
59-
try (BufferedReader in = new BufferedReader(
60-
new InputStreamReader(input))) {
59+
try (BufferedReader in = new BufferedReader(new InputStreamReader(input))) {
6160
String line;
6261
while ((line = in.readLine()) != null) {
6362
String[] parts = line.split(" *");
@@ -88,16 +87,13 @@ public void processStream(InputStream input) throws IOException {
8887
entries = null;
8988
break;
9089
}
91-
TagEntry tagEntry
92-
= new MercurialTagEntry(Integer.parseInt(revParts[0]),
93-
tag);
94-
// Reverse the order of the list
90+
TagEntry tagEntry = new MercurialTagEntry(Integer.parseInt(revParts[0]), tag);
91+
// Reverse the order of the list.
9592
entries.add(tagEntry);
9693
}
9794
}
9895
} catch (IOException e) {
99-
LOGGER.log(Level.WARNING,
100-
"Failed to read tag list: {0}", e.getMessage());
96+
LOGGER.log(Level.WARNING, "Failed to read tag list: {0}", e.getMessage());
10197
entries = null;
10298
}
10399
}

0 commit comments

Comments
 (0)