From bef7d8713fee9f03a88fb3e0b31bf32267502436 Mon Sep 17 00:00:00 2001 From: Ernst-Christoph Schrewe Date: Thu, 14 Dec 2023 09:39:14 +0100 Subject: [PATCH] feat: testing codeql --- .../puris/backend/stock/controller/StockViewController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/org/eclipse/tractusx/puris/backend/stock/controller/StockViewController.java b/backend/src/main/java/org/eclipse/tractusx/puris/backend/stock/controller/StockViewController.java index 679433d7..0861a397 100644 --- a/backend/src/main/java/org/eclipse/tractusx/puris/backend/stock/controller/StockViewController.java +++ b/backend/src/main/java/org/eclipse/tractusx/puris/backend/stock/controller/StockViewController.java @@ -313,9 +313,9 @@ public ResponseEntity> triggerPartnerProductStockUpdateForMater if(!materialPattern.matcher(ownMaterialNumber).matches()) { return new ResponseEntity<>(HttpStatusCode.valueOf(400)); } - ownMaterialNumber.replace("\n",""); - ownMaterialNumber.replace("\r", ""); - ownMaterialNumber.replace("|",""); + ownMaterialNumber = ownMaterialNumber.replace("\n",""); + ownMaterialNumber = ownMaterialNumber.replace("\r", ""); + ownMaterialNumber = ownMaterialNumber.replace("|",""); Material materialEntity = materialService.findByOwnMaterialNumber(ownMaterialNumber); log.info("Found material: " + (materialEntity != null) + " " + ownMaterialNumber); List allSupplierPartnerEntities = mprService.findAllSuppliersForOwnMaterialNumber(ownMaterialNumber);