Minor code clean-ups.

This commit is contained in:
Zeger Hendrikse 2016-08-04 00:47:10 +02:00
parent 5338f8b190
commit b28e3e1389
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import org.baeldung.boot.model.Foo;
public interface FooRepository {
public void save(Foo foo);
void save(Foo foo);
public Foo get(Integer id);
Foo get(Integer id);
}

View File

@ -19,7 +19,7 @@ public class FooRepositoryImpl implements FooRepository {
@Override
public Foo get(Integer id) {
return (Foo) sessionFactory.getCurrentSession().get(Foo.class, id);
return sessionFactory.getCurrentSession().get(Foo.class, id);
}
}