Skip to content

Commit fb00c26

Browse files
committed
fix nits
1 parent 6915308 commit fb00c26

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

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

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

@@ -38,14 +38,14 @@
3838
* Wrote it since invoking 'sccs prs' for each file was
3939
* taking a lot of time. Time to index history has reduced 4 to 1!
4040
*/
41-
class SCCSHistoryParser {
41+
final class SCCSHistoryParser {
4242

4343
boolean pass;
4444
boolean passRecord;
4545
boolean active;
4646
int field;
4747
boolean sep;
48-
StringBuilder record = new StringBuilder(128);
48+
StringBuilder sccsRecord = new StringBuilder(128);
4949
Reader in;
5050

5151
// Record fields
@@ -102,31 +102,31 @@ private History parseFile(File file) throws IOException, ParseException {
102102
}
103103

104104
/**
105-
* Read a single line of delta record into the 'record' member.
105+
* Read a single line of delta record into the {@link #sccsRecord} member.
106106
*
107-
* @throws java.io.IOException
107+
* @throws java.io.IOException on I/O error
108108
* @return boolean indicating whether there is another record.
109109
*/
110110
private boolean next() throws java.io.IOException {
111111
sep = true;
112-
record.setLength(0);
112+
sccsRecord.setLength(0);
113113
int c;
114114
while ((c = read()) > 1) {
115-
record.append((char) c);
115+
sccsRecord.append((char) c);
116116
}
117117
// to flag that revision needs to be re populated if you really need it
118118
revision = null;
119-
return (record.length() > 2);
119+
return (sccsRecord.length() > 2);
120120
}
121121

122122
/**
123123
* Split record into fields.
124124
*
125-
* @throws java.io.IOException
125+
* @throws ParseException if the date in the record cannot be parsed
126126
*/
127127
private void initFields() throws ParseException {
128128
if (revision == null) {
129-
String[] f = record.toString().split(" ", 6);
129+
String[] f = sccsRecord.toString().split(" ", 6);
130130
if (f.length > 5) {
131131
revision = f[1];
132132
try {

0 commit comments

Comments
 (0)