diff options
author | Rishi.Chail <rishi.chail@est.tech> | 2020-11-19 11:05:40 +0000 |
---|---|---|
committer | Rishi.Chail <rishi.chail@est.tech> | 2020-11-19 11:08:00 +0000 |
commit | 68cdf540a466b1e116a21cab9a09c7047604a73f (patch) | |
tree | e4cf2e78001170062d3976ba6f1beae2ba1b29f0 /cps-ri/src/main | |
parent | 181aa2b8d9dd612805cdb5fed749566b171b5a35 (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')
-rwxr-xr-x | cps-ri/src/main/java/org/onap/cps/spi/impl/FragmentPersistenceServiceImpl.java | 4 |
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 +}
|