summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-09-12 13:22:00 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-09-12 13:22:29 +0530
commit61960fb4e8ca0b34eb643278ed86f9fe08d61254 (patch)
tree475dcd2345a81235e199c7c39154435d0e49990b
parent14494258aa1648da961a065c4379761e505f915e (diff)
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 <arundpil@in.ibm.com>
-rw-r--r--ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/JerseyConfiguration.java13
1 files changed, 7 insertions, 6 deletions
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);
- }
}