Skip to content

Commit

Permalink
unsplit lines for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Sep 9, 2024
1 parent 058af3d commit 7dd1219
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
*/
package org.opengrok.indexer.history;

Expand Down Expand Up @@ -56,8 +56,7 @@ public TreeSet<TagEntry> getEntries() {
@Override
public void processStream(InputStream input) throws IOException {
try {
try (BufferedReader in = new BufferedReader(
new InputStreamReader(input))) {
try (BufferedReader in = new BufferedReader(new InputStreamReader(input))) {
String line;
while ((line = in.readLine()) != null) {
String[] parts = line.split(" *");
Expand Down Expand Up @@ -88,16 +87,13 @@ public void processStream(InputStream input) throws IOException {
entries = null;
break;
}
TagEntry tagEntry
= new MercurialTagEntry(Integer.parseInt(revParts[0]),
tag);
// Reverse the order of the list
TagEntry tagEntry = new MercurialTagEntry(Integer.parseInt(revParts[0]), tag);
// Reverse the order of the list.
entries.add(tagEntry);
}
}
} catch (IOException e) {
LOGGER.log(Level.WARNING,
"Failed to read tag list: {0}", e.getMessage());
LOGGER.log(Level.WARNING, "Failed to read tag list: {0}", e.getMessage());
entries = null;
}
}
Expand Down

0 comments on commit 7dd1219

Please sign in to comment.