From ca244254eb6ea6b914e4ffb33c36af1609fb6a59 Mon Sep 17 00:00:00 2001 From: rma-rripken <89810919+rma-rripken@users.noreply.github.com> Date: Wed, 8 Nov 2023 15:41:24 -0800 Subject: [PATCH] Removed constants for deprecated queryParams and removed the code looking for the params in the requests. --- .../src/main/java/cwms/cda/api/TimeSeriesController.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cwms-data-api/src/main/java/cwms/cda/api/TimeSeriesController.java b/cwms-data-api/src/main/java/cwms/cda/api/TimeSeriesController.java index 0e662dffe..d617da3ae 100644 --- a/cwms-data-api/src/main/java/cwms/cda/api/TimeSeriesController.java +++ b/cwms-data-api/src/main/java/cwms/cda/api/TimeSeriesController.java @@ -23,8 +23,6 @@ import static cwms.cda.api.Controllers.OFFICE; import static cwms.cda.api.Controllers.OVERRIDE_PROTECTION; import static cwms.cda.api.Controllers.PAGE; -import static cwms.cda.api.Controllers.PAGESIZE2; -import static cwms.cda.api.Controllers.PAGESIZE3; import static cwms.cda.api.Controllers.PAGE_SIZE; import static cwms.cda.api.Controllers.RESULTS; import static cwms.cda.api.Controllers.SIZE; @@ -374,8 +372,8 @@ public void getAll(Context ctx) { String.class, "", metrics, name(TimeSeriesController.class.getName(), GET_ALL)); - int pageSize = queryParamAsClass(ctx, new String[]{PAGE_SIZE, PAGESIZE3, - PAGESIZE2}, Integer.class, defaultPageSize, metrics, + int pageSize = queryParamAsClass(ctx, new String[]{PAGE_SIZE }, + Integer.class, defaultPageSize, metrics, name(TimeSeriesController.class.getName(), GET_ALL)); String acceptHeader = ctx.header(Header.ACCEPT);