Skip to content

Commit bb8f791

Browse files
committed
DummyHandle: remove unneeded throws clauses
We can narrow these method declarations, since they do not actually ever throw IOException, and never will in the future.
1 parent 486fce3 commit bb8f791

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/scijava/io/handle/DummyHandle.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,23 @@ public boolean isWritable() {
6464
}
6565

6666
@Override
67-
public long offset() throws IOException {
67+
public long offset() {
6868
return offset;
6969
}
7070

7171
@Override
72-
public void seek(final long pos) throws IOException {
72+
public void seek(final long pos) {
7373
if (pos > length()) setLength(pos);
7474
offset = pos;
7575
}
7676

7777
@Override
78-
public long length() throws IOException {
78+
public long length() {
7979
return length;
8080
}
8181

8282
@Override
83-
public void setLength(final long length) throws IOException {
83+
public void setLength(final long length) {
8484
this.length = length;
8585
}
8686

0 commit comments

Comments
 (0)