File tree Expand file tree Collapse file tree
src/main/java/io/github/jpmorganchase/fusion Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949@ Slf4j
5050public class Fusion {
5151
52- private static final int DEFAULT_PAGE_SIZE = -1 ;
5352 private static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter .ofPattern ("yyyy-MM-dd" );
5453
54+ @ SuppressWarnings ({"FieldCanBeLocal" , "FieldMayBeFinal" })
55+ private static int defaultPageSize = -1 ;
56+
5557 private final APIManager api ;
5658 private String defaultCatalog ;
5759 private final String defaultPath ;
@@ -216,9 +218,9 @@ private String callAPIWithPagination(String url) {
216218
217219 Map <String , String > headers = new HashMap <>();
218220 headers .put ("x-jpmc-paginate" , "true" );
219- if (DEFAULT_PAGE_SIZE > 0 ) {
220- log .debug ("Using page size: {}" , DEFAULT_PAGE_SIZE );
221- headers .put ("x-jpmc-page-size" , String .valueOf (DEFAULT_PAGE_SIZE ));
221+ if (defaultPageSize > 0 ) {
222+ log .debug ("Using page size: {}" , defaultPageSize );
223+ headers .put ("x-jpmc-page-size" , String .valueOf (defaultPageSize ));
222224 }
223225
224226 Gson gson = new Gson ();
You can’t perform that action at this time.
0 commit comments