Skip to content

Commit e2152f4

Browse files
committed
Minor code improvements in PicaDecoder.
Fixed a typo in the javadoc of th class and changed the name of a private method to a better one.
1 parent 728e69b commit e2152f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/culturegraph/mf/stream/converter/bib/PicaDecoder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* subfield values can be empty.</li>
5252
* </ul>
5353
*
54-
* <p>Please not that the record markers is treated as a field
54+
* <p>Please note that the record markers is treated as a field
5555
* delimiter and not as a record delimiter. Records need to be
5656
* separated prior to parsing them.</p>
5757
*
@@ -149,7 +149,7 @@ public void process(final String record) {
149149
buffer = StringUtil.copyToBuffer(record, buffer);
150150
recordLen = record.length();
151151

152-
if (recordIsEmpty()) {
152+
if (isRecordEmpty()) {
153153
return;
154154
}
155155

@@ -181,7 +181,7 @@ protected void onResetStream() {
181181
parserContext.reset();
182182
}
183183

184-
private boolean recordIsEmpty() {
184+
private boolean isRecordEmpty() {
185185
for (int i = 0; i < recordLen; ++i) {
186186
if (buffer[i] != ' ' && buffer[i] != '\t') {
187187
return false;

0 commit comments

Comments
 (0)