summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/main/java
diff options
context:
space:
mode:
authorRishi.Chail <rishi.chail@est.tech>2020-11-19 11:05:40 +0000
committerRishi.Chail <rishi.chail@est.tech>2020-11-19 11:08:00 +0000
commit68cdf540a466b1e116a21cab9a09c7047604a73f (patch)
treee4cf2e78001170062d3976ba6f1beae2ba1b29f0 /cps-ri/src/main/java
parent181aa2b8d9dd612805cdb5fed749566b171b5a35 (diff)
Fix code smell
Issue-ID: CPS-89 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I57fbcc57f0d9c03d5757279429afec107d79f49b
Diffstat (limited to 'cps-ri/src/main/java')
-rwxr-xr-xcps-ri/src/main/java/org/onap/cps/spi/impl/FragmentPersistenceServiceImpl.java4
1 files 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
+}