From 0e4ec678478fa791a9e4841f984b3968496b77c0 Mon Sep 17 00:00:00 2001 From: shiria Date: Mon, 22 Oct 2018 14:19:24 +0300 Subject: Update datatypes using lombok Issue-ID: SDC-1859 Change-Id: Ia7cfc86c9a0faa20a2fdbba08181b285ea3c7eef Signed-off-by: shiria --- .../enrichment/types/ComponentProcessInfo.java | 42 ++++++++++++++-------- 1 file changed, 28 insertions(+), 14 deletions(-) (limited to 'openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentProcessInfo.java') diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentProcessInfo.java b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentProcessInfo.java index 5bc23da3de..3abbd13475 100644 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentProcessInfo.java +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentProcessInfo.java @@ -1,26 +1,40 @@ +/* + * Copyright © 2018 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. + */ + package org.openecomp.core.enrichment.types; import java.io.ByteArrayInputStream; import java.io.InputStream; +import lombok.Getter; +import lombok.Setter; + public class ComponentProcessInfo { - private String name; - private byte[] content; - public String getName() { - return name; - } + @Setter + @Getter + private String name; + + @Setter + private byte[] content; - public void setName(String name) { - this.name = name; - } - public InputStream getContent() { - return new ByteArrayInputStream(this.content); - } + public InputStream getContent() { + return new ByteArrayInputStream(this.content); + } - public void setContent(byte[] content) { - this.content = content; - } } -- cgit 1.2.3-korg