From 799bc7e3c75de762dea7448c6f8f5d6e5f3f9671 Mon Sep 17 00:00:00 2001 From: avigaffa Date: Tue, 11 Jun 2019 15:56:32 +0300 Subject: Add lombok support to simple classes Change-Id: Iec40668537af0fad0d43a599af9ed65d4e5aefbd Issue-ID: SDC-2354 Signed-off-by: avigaffa --- .../sdcrests/action/types/ListResponseWrapper.java | 54 +++++++--------------- 1 file changed, 16 insertions(+), 38 deletions(-) (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types') diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java b/openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java index 7d7a4b3106..f60a5cafa4 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java @@ -7,9 +7,9 @@ * 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. @@ -20,51 +20,29 @@ package org.openecomp.sdcrests.action.types; -import org.openecomp.sdc.action.types.OpenEcompComponent; - import java.util.ArrayList; import java.util.List; +import lombok.Getter; +import lombok.Setter; +import org.openecomp.sdc.action.types.OpenEcompComponent; /** * Defines DTO used for creating Response with list of {@link ActionResponseDto } or list of {@link * openEcompComponent }. */ +@Getter +@Setter public class ListResponseWrapper { - List actionList; - List componentList; - List versions; - - - public ListResponseWrapper() { - this.actionList = new ArrayList<>(); - } - - public List getVersions() { - return versions; - } - - public void setVersions(List versions) { - this.versions = versions; - } - - public List getActionList() { - return actionList; - } - - public void setActionList(List actionList) { - this.actionList = actionList; - } - - public List getComponentList() { - return componentList; - } + List actionList; + List componentList; + List versions; - public void setComponentList(List componentList) { - this.componentList = componentList; - } + public ListResponseWrapper() { + this.actionList = new ArrayList<>(); + } - public void add(ActionResponseDto exception) { - this.getActionList().add(exception); - } + public void add(ActionResponseDto exception) { + this.actionList.add(exception); + } } -- cgit 1.2.3-korg