BAEL-20663: Replace depracated PageRequest constructor with a static method

This commit is contained in:
Krzysiek 2020-01-09 22:39:04 +01:00
parent 6a2d89855e
commit f373c922dd
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ public class StudentServiceImpl implements StudentService {
@Override
public Page<Student> findPaginated(int page, int size) {
return dao.findAll(new PageRequest(page, size));
return dao.findAll(PageRequest.of(page, size));
}
}