Fix code smell 98/115098/1
authorRishi.Chail <rishi.chail@est.tech>
Thu, 19 Nov 2020 11:05:40 +0000 (11:05 +0000)
committerRishi.Chail <rishi.chail@est.tech>
Thu, 19 Nov 2020 11:08:00 +0000 (11:08 +0000)
Issue-ID: CPS-89

Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I57fbcc57f0d9c03d5757279429afec107d79f49b

cps-ri/src/main/java/org/onap/cps/spi/impl/FragmentPersistenceServiceImpl.java

index 0ecf72d..82554b3 100755 (executable)
@@ -62,11 +62,11 @@ public class FragmentPersistenceServiceImpl implements FragmentPersistenceServic
             return anchorDetails.getAnchorName();\r
         } catch (final CpsNotFoundException ex) {\r
             throw new CpsValidationException("Validation Error",\r
-                String.format("Dataspace and/or Module do not exist."));\r
+                "Dataspace and/or Module do not exist.");\r
         } catch (final DataIntegrityViolationException ex) {\r
             throw new CpsValidationException("Duplication Error",\r
                 String.format("Anchor with name %s already exist in dataspace %s.",\r
                     anchorDetails.getAnchorName(), anchorDetails.getDataspace()));\r
         }\r
     }\r
-}
\ No newline at end of file
+}\r