Skip to content

Commit b2871d7

Browse files
committed
Add SpotBugs suppression
1 parent 94d43ee commit b2871d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/edu/hm/hafner/util/LineRangeList.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.google.errorprone.annotations.CanIgnoreReturnValue;
44

55
import edu.umd.cs.findbugs.annotations.NonNull;
6+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
67

78
import java.io.Serial;
89
import java.io.Serializable;
@@ -240,7 +241,7 @@ private void prev() {
240241
*
241242
* @return the current element
242243
*/
243-
@Override
244+
@Override @SuppressFBWarnings(value = "IT_NO_SUCH_ELEMENT", justification = "thrown in read()")
244245
public LineRange next() {
245246
int s = read();
246247
int d = read();

0 commit comments

Comments
 (0)