aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/api/openecomp-sdc-rest-webapp
diff options
context:
space:
mode:
authoravigaffa <avi.gaffa@amdocs.com>2019-06-11 15:56:32 +0300
committerOren Kleks <orenkle@amdocs.com>2019-06-12 07:06:43 +0000
commit799bc7e3c75de762dea7448c6f8f5d6e5f3f9671 (patch)
treef4a74955cf5bde7bca0b0eee5c27b5ba56864561 /openecomp-be/api/openecomp-sdc-rest-webapp
parentb481fd52dbe9c38065128cf061d09d304401282e (diff)
Add lombok support to simple classes
Change-Id: Iec40668537af0fad0d43a599af9ed65d4e5aefbd Issue-ID: SDC-2354 Signed-off-by: avigaffa <avi.gaffa@amdocs.com>
Diffstat (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp')
-rw-r--r--openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java54
1 files changed, 16 insertions, 38 deletions
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<ActionResponseDto> actionList;
- List<OpenEcompComponent> componentList;
- List<ActionResponseDto> versions;
-
-
- public ListResponseWrapper() {
- this.actionList = new ArrayList<>();
- }
-
- public List<ActionResponseDto> getVersions() {
- return versions;
- }
-
- public void setVersions(List<ActionResponseDto> versions) {
- this.versions = versions;
- }
-
- public List<ActionResponseDto> getActionList() {
- return actionList;
- }
-
- public void setActionList(List<ActionResponseDto> actionList) {
- this.actionList = actionList;
- }
-
- public List<OpenEcompComponent> getComponentList() {
- return componentList;
- }
+ List<ActionResponseDto> actionList;
+ List<OpenEcompComponent> componentList;
+ List<ActionResponseDto> versions;
- public void setComponentList(List<OpenEcompComponent> 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);
+ }
}