Skip to content

Commit 6d0f0f6

Browse files
Remove redundant FileNotFoundException declaration
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 33ba2bf commit 6d0f0f6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

samples/get-statement-with-attachment/src/main/java/dev/learning/xapi/samples/poststatement/GetStatementWithAttachmentApplication.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import dev.learning.xapi.client.XapiClient;
88
import dev.learning.xapi.model.Statement;
99
import dev.learning.xapi.model.Verb;
10-
import java.io.FileNotFoundException;
1110
import java.io.IOException;
1211
import java.net.URI;
1312
import java.nio.file.Files;
@@ -63,7 +62,7 @@ public void run(String... args) throws Exception {
6362

6463
}
6564

66-
private UUID postStatement() throws FileNotFoundException, IOException {
65+
private UUID postStatement() throws IOException {
6766

6867
// Load jpg attachment from class-path
6968
var data = Files.readAllBytes(ResourceUtils.getFile("classpath:example.jpg").toPath());

0 commit comments

Comments
 (0)