fix sonar issue in SpringContextHelper.java 67/64367/1
authorSandeep J <sandeejh@in.ibm.com>
Tue, 4 Sep 2018 09:09:31 +0000 (14:39 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Tue, 4 Sep 2018 09:09:51 +0000 (14:39 +0530)
fixed sonar issue detailed in SO-965

Issue-ID: SO-965
Change-Id: Iae43c4d053b14586670c0f0f7c3a8701c32288bb
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/SpringContextHelper.java

index 0a996dc..6d61d3b 100644 (file)
@@ -4,6 +4,8 @@
  * ================================================================================
  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -20,7 +22,6 @@
 
 package org.onap.so.apihandlerinfra;
 
-import org.springframework.beans.BeansException;
 import org.springframework.context.ApplicationContext;
 import org.springframework.context.ApplicationContextAware;
 import org.springframework.stereotype.Component;
@@ -31,7 +32,7 @@ public class SpringContextHelper implements ApplicationContextAware {
        private static ApplicationContext context;
 
        @Override
-       public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
+       public void setApplicationContext(ApplicationContext applicationContext) {
                context = applicationContext;
        }