Fixing sonar qube issues 95/26995/2
authorshrikantawachar <shrikant.awachar@amdocs.com>
Wed, 27 Dec 2017 09:35:52 +0000 (15:05 +0530)
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>
Wed, 27 Dec 2017 11:51:26 +0000 (11:51 +0000)
Added Override annotation to method and removed runtime exception from method specification.

Change-Id: I12640d880c262fc301cafe8ede228e2a4772af88
Issue-ID: SDC-343
Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/src/main/java/org/openecomp/server/interceptors/EmptyOutputOutInterceptor.java

index 9c02d5a..f742854 100644 (file)
@@ -1,23 +1,18 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
+/*
+ * Copyright © 2016-2017 European Support Limited
+ *
  * 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
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- * ============LICENSE_END=========================================================
  */
-
 package org.openecomp.server.interceptors;
 
 import org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor;
@@ -49,7 +44,8 @@ public class EmptyOutputOutInterceptor extends AbstractOutDatabindingInterceptor
    *
    * @param message input message.
    */
-  public void handleMessage(Message message) throws Fault {
+  @Override
+  public void handleMessage(Message message) {
     //get the message
     MessageContentsList objs = MessageContentsList.getContentsList(message);
     if (objs.get(0) instanceof Response) {