From b738d7589160a2aca63383a67f64435f2b7e3a9d Mon Sep 17 00:00:00 2001 From: Vladimir Glinskikh Date: Sun, 23 Apr 2023 19:29:45 +0300 Subject: [PATCH] Fix mistakes in parameters I was fixed some mistakes in parameters queryParam() method. --- .../spring6resttemplate/client/BeerClientImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/guru/springframework/spring6resttemplate/client/BeerClientImpl.java b/src/main/java/guru/springframework/spring6resttemplate/client/BeerClientImpl.java index 6411cffb..775dd096 100644 --- a/src/main/java/guru/springframework/spring6resttemplate/client/BeerClientImpl.java +++ b/src/main/java/guru/springframework/spring6resttemplate/client/BeerClientImpl.java @@ -74,15 +74,15 @@ public Page listBeers(String beerName,BeerStyle beerStyle, Boolean show } if (showInventory != null) { - uriComponentsBuilder.queryParam("showInventory", beerStyle); + uriComponentsBuilder.queryParam("showInventory", showInventory); } if (pageNumber != null) { - uriComponentsBuilder.queryParam("pageNumber", beerStyle); + uriComponentsBuilder.queryParam("pageNumber", pageNumber); } if (pageSize != null) { - uriComponentsBuilder.queryParam("pageSize", beerStyle); + uriComponentsBuilder.queryParam("pageSize", pageSize); }