Skip to content

Commit

Permalink
Add @nullable annotation to JdbcPetVisitExtractor.mapForeignKey
Browse files Browse the repository at this point in the history
  • Loading branch information
glts committed Apr 3, 2016
1 parent 659807b commit 5398ab4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import java.sql.ResultSet;
import java.sql.SQLException;

import javax.annotation.Nullable;

/**
* {@link ResultSetExtractor} implementation by using the
* {@link OneToManyResultSetExtractor} of Spring Data Core JDBC Extensions.
Expand All @@ -39,6 +41,7 @@ protected Integer mapPrimaryKey(ResultSet rs) throws SQLException {
}

@Override
@Nullable
protected Integer mapForeignKey(ResultSet rs) throws SQLException {
if (rs.getObject("visits.pet_id") == null) {
return null;
Expand Down

0 comments on commit 5398ab4

Please sign in to comment.