From 68cdf540a466b1e116a21cab9a09c7047604a73f Mon Sep 17 00:00:00 2001 From: "Rishi.Chail" Date: Thu, 19 Nov 2020 11:05:40 +0000 Subject: Fix code smell Issue-ID: CPS-89 Signed-off-by: Rishi.Chail Change-Id: I57fbcc57f0d9c03d5757279429afec107d79f49b --- .../java/org/onap/cps/spi/impl/FragmentPersistenceServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps-ri/src/main/java/org/onap/cps/spi/impl/FragmentPersistenceServiceImpl.java b/cps-ri/src/main/java/org/onap/cps/spi/impl/FragmentPersistenceServiceImpl.java index 0ecf72d772..82554b3d0a 100755 --- a/cps-ri/src/main/java/org/onap/cps/spi/impl/FragmentPersistenceServiceImpl.java +++ b/cps-ri/src/main/java/org/onap/cps/spi/impl/FragmentPersistenceServiceImpl.java @@ -62,11 +62,11 @@ public class FragmentPersistenceServiceImpl implements FragmentPersistenceServic return anchorDetails.getAnchorName(); } catch (final CpsNotFoundException ex) { throw new CpsValidationException("Validation Error", - String.format("Dataspace and/or Module do not exist.")); + "Dataspace and/or Module do not exist."); } catch (final DataIntegrityViolationException ex) { throw new CpsValidationException("Duplication Error", String.format("Anchor with name %s already exist in dataspace %s.", anchorDetails.getAnchorName(), anchorDetails.getDataspace())); } } -} \ No newline at end of file +} -- cgit 1.2.3-korg