Nullability fine-tuning based on IntelliJ IDEA 2018.3 inspection

Issue: SPR-15540
This commit is contained in:
Juergen Hoeller
2018-11-22 16:12:38 +01:00
parent b1b28d4641
commit bf272b0b21
14 changed files with 66 additions and 66 deletions

View File

@@ -50,6 +50,7 @@ public class SessionHolder extends EntityManagerHolder {
public SessionHolder(Session session) {
// Check below is always true against Hibernate >= 5.2 but not against 5.0/5.1 at runtime
super(EntityManager.class.isInstance(session) ? session : null);
this.session = session;
}