From: Rishi.Chail Date: Thu, 19 Nov 2020 11:05:40 +0000 (+0000) Subject: Fix code smell X-Git-Tag: 0.0.1~102^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=68cdf540a466b1e116a21cab9a09c7047604a73f;p=cps.git Fix code smell Issue-ID: CPS-89 Signed-off-by: Rishi.Chail Change-Id: I57fbcc57f0d9c03d5757279429afec107d79f49b --- 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 +}