Skip to content

Commit

Permalink
- Suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
atton16 committed Oct 2, 2016
1 parent 92394bf commit 2b2536b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/sixppl/dao/support/ListingDAOImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public boolean addListing(ListingDTO pubSell){
stmt.setInt(5, pubSell.year);
stmt.setString(6, pubSell.venue);
stmt.setInt(7, pubSell.sellerID);
@SuppressWarnings("resource")
Scanner s = new Scanner(pubSell.picture).useDelimiter("\\A");
String picString = s.hasNext() ? s.next() : "";
stmt.setString(8, picString);
Expand Down

0 comments on commit 2b2536b

Please sign in to comment.