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 aa65ea61b3
commit 51aa1f9cb7

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));
}
}