From b338b20c2969be56f7e075abb39abca861db4eae Mon Sep 17 00:00:00 2001 From: shrikantawachar Date: Wed, 27 Dec 2017 15:05:52 +0530 Subject: Fixing sonar qube issues Added Override annotation to method and removed runtime exception from method specification. Change-Id: I12640d880c262fc301cafe8ede228e2a4772af88 Issue-ID: SDC-343 Signed-off-by: shrikantawachar --- .../server/interceptors/EmptyOutputOutInterceptor.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/src') diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/src/main/java/org/openecomp/server/interceptors/EmptyOutputOutInterceptor.java b/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/src/main/java/org/openecomp/server/interceptors/EmptyOutputOutInterceptor.java index 9c02d5a558..f742854c6a 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/src/main/java/org/openecomp/server/interceptors/EmptyOutputOutInterceptor.java +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/src/main/java/org/openecomp/server/interceptors/EmptyOutputOutInterceptor.java @@ -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) { -- cgit 1.2.3-korg