From 61960fb4e8ca0b34eb643278ed86f9fe08d61254 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Wed, 12 Sep 2018 13:22:00 +0530 Subject: JerseyConfiguration:Fixed sonar issue Sonar link : https://sonar.onap.org/code?id=org.onap.ccsdk.apps%3Accsdk-apps&selected=org.onap.ccsdk.apps%3Accsdk-apps-ms-neng%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fccsdk%2Fapps%2Fms%2Fneng%2Fcore%2FJerseyConfiguration.java Issue-ID: CCSDK-549 Change-Id: Ie2b186a810a3284f574baea6caa847814dfa6e55 Signed-off-by: Arundathi Patil --- .../onap/ccsdk/apps/ms/neng/core/JerseyConfiguration.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'ms/neng/src') diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/JerseyConfiguration.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/JerseyConfiguration.java index 4905e6eb..ead6a1b4 100644 --- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/JerseyConfiguration.java +++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/JerseyConfiguration.java @@ -40,6 +40,13 @@ import org.springframework.stereotype.Component; @Component @ApplicationPath("/") public class JerseyConfiguration extends ResourceConfig { + + @Autowired + public JerseyConfiguration() { + register(RestServiceImpl.class); + property(ServletProperties.FILTER_FORWARD_ON_404, true); + } + /** * Builds the bean configuring Jackson for JSON serialization. */ @@ -53,10 +60,4 @@ public class JerseyConfiguration extends ResourceConfig { objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); return objectMapper; } - - @Autowired - public JerseyConfiguration() { - register(RestServiceImpl.class); - property(ServletProperties.FILTER_FORWARD_ON_404, true); - } } -- cgit 1.2.3-korg