From ce2b5e77a88561eced3e50df6e66b63212199803 Mon Sep 17 00:00:00 2001
From: Moritz Staudinger <moritz.staudinger@tuwien.ac.at>
Date: Mon, 29 Nov 2021 02:53:31 +0100
Subject: [PATCH] Added NonNull Annotations again for page and size

---
 .../java/at/tuwien/service/impl/MariaDataService.java     | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/fda-table-service/services/src/main/java/at/tuwien/service/impl/MariaDataService.java b/fda-table-service/services/src/main/java/at/tuwien/service/impl/MariaDataService.java
index ed1202db56..3405b7fd20 100644
--- a/fda-table-service/services/src/main/java/at/tuwien/service/impl/MariaDataService.java
+++ b/fda-table-service/services/src/main/java/at/tuwien/service/impl/MariaDataService.java
@@ -173,17 +173,11 @@ public class MariaDataService extends JdbcConnector implements DataService {
     @Override
     @Transactional
     public QueryResultDto selectAll(@NonNull Long databaseId, @NonNull Long tableId, Instant timestamp,
-                                    Long page, Long size) throws TableNotFoundException,
+                                    @NonNull Long page, @NonNull Long size) throws TableNotFoundException,
             DatabaseNotFoundException, ImageNotSupportedException, DatabaseConnectionException, TableMalformedException {
         if(timestamp == null) {
             timestamp = Instant.now();
         }
-        if(page == null ) {
-            page = 0L;
-        }
-        if(size == null) {
-            size = 100L;
-        }
         if (page < 0) {
             throw new TableMalformedException("Page number cannot be lower than 0");
         }
-- 
GitLab