Skip to content

Commit

Permalink
Minor changes to satisfy SpotBugs and JavaDoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgregg committed Oct 18, 2023
1 parent ea5c106 commit 07d42a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;

import static com.amazon.ion.SystemSymbols.IMPORTS_SID;
import static com.amazon.ion.SystemSymbols.ION;
Expand Down Expand Up @@ -367,6 +368,9 @@ public boolean hasNext() {

@Override
public String next() {
if (index >= idToText.length) {
throw new NoSuchElementException();
}
String symbol = idToText[index];
index++;
return symbol;
Expand Down Expand Up @@ -852,6 +856,7 @@ void readSymbolTable() {
}
readImportMaxId();
break;
default: throw new IllegalStateException();
}
}
}
Expand Down Expand Up @@ -1010,7 +1015,7 @@ public boolean hasNext() {

@Override
public String next() {
return null;
throw new NoSuchElementException();
}

@Override
Expand Down
3 changes: 1 addition & 2 deletions src/com/amazon/ion/impl/_Private_IonConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public static final boolean isSurrogate(int c) {
(byte) 0xEA };

/**
* The number of bytes in {@link #BINARY_VERSION_MARKER_1_0}
* ({@value #BINARY_VERSION_MARKER_SIZE}).
* The number of bytes in {@link #BINARY_VERSION_MARKER_1_0}.
*/
public static final int BINARY_VERSION_MARKER_SIZE =
BINARY_VERSION_MARKER_1_0.length;
Expand Down

0 comments on commit 07d42a8

Please sign in to comment.