diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2020-11-19 11:52:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-11-19 11:52:28 +0000 |
commit | 4576674e59ab3cc1126ee0422049e112904b8831 (patch) | |
tree | b4b1a32fda23d6a1c41ea48b4c97d79c63f98c05 /cps-ri/src | |
parent | 11fd57a2a13c7c34e219c6be24793871bee58ca3 (diff) | |
parent | 68cdf540a466b1e116a21cab9a09c7047604a73f (diff) |
Merge "Fix code smell"
Diffstat (limited to 'cps-ri/src')
-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 +}
|