|
18 | 18 | */
|
19 | 19 |
|
20 | 20 | /*
|
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. |
22 | 22 | */
|
23 | 23 | package org.opengrok.indexer.history;
|
24 | 24 |
|
@@ -56,8 +56,7 @@ public TreeSet<TagEntry> getEntries() {
|
56 | 56 | @Override
|
57 | 57 | public void processStream(InputStream input) throws IOException {
|
58 | 58 | try {
|
59 |
| - try (BufferedReader in = new BufferedReader( |
60 |
| - new InputStreamReader(input))) { |
| 59 | + try (BufferedReader in = new BufferedReader(new InputStreamReader(input))) { |
61 | 60 | String line;
|
62 | 61 | while ((line = in.readLine()) != null) {
|
63 | 62 | String[] parts = line.split(" *");
|
@@ -88,16 +87,13 @@ public void processStream(InputStream input) throws IOException {
|
88 | 87 | entries = null;
|
89 | 88 | break;
|
90 | 89 | }
|
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. |
95 | 92 | entries.add(tagEntry);
|
96 | 93 | }
|
97 | 94 | }
|
98 | 95 | } 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()); |
101 | 97 | entries = null;
|
102 | 98 | }
|
103 | 99 | }
|
|
0 commit comments