Skip to content

Commit 1cb7dbe

Browse files
committed
BugFix: Resource leak: 'scanner' is never closed
1 parent b9f8aa6 commit 1cb7dbe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Flickr4Java/src/examples/java/AuthExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static void auth() throws IOException, FlickrException {
5353
System.out.print(">>");
5454

5555
String tokenKey = scanner.nextLine();
56+
scanner.close();
5657

5758
Token requestToken = authInterface.getAccessToken(token, new Verifier(tokenKey));
5859
System.out.println("Authentication success");

0 commit comments

Comments
 (0)