mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
fixed formatting issues
This commit is contained in:
parent
892d5cee20
commit
442c2b86da
@ -32,7 +32,7 @@ public class FilteringUtil {
|
||||
* This is used to filter from the cached policies.
|
||||
*/
|
||||
public static <T> List<T> getFilteredList(List<T> sourceList, int offset, int limit) {
|
||||
if(sourceList == null || sourceList.size() < offset){
|
||||
if (sourceList == null || sourceList.size() < offset) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return sourceList.subList(offset, Math.min(offset + limit, sourceList.size()));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user