From feeef5bf392e1639a13866a727933f960c70905c Mon Sep 17 00:00:00 2001 From: wasala Date: Tue, 10 Jul 2018 15:05:50 +0200 Subject: Checstyle violations Casablanca Added @Javadoc in .class files Change-Id: I359c03f67bd323509b712b91466bb0841b7bd1d2 Issue-ID: DCAEGEN2-563 Signed-off-by: wasala --- .../java/org/onap/dcaegen2/services/prh/model/CommonFunctions.java | 6 ++++++ .../dcaegen2/services/prh/model/ConsumerDmaapModelForUnitTest.java | 3 +++ 2 files changed, 9 insertions(+) (limited to 'prh-commons/src/main/java/org') diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/CommonFunctions.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/CommonFunctions.java index 9e5a73da..66a0a998 100644 --- a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/CommonFunctions.java +++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/CommonFunctions.java @@ -30,6 +30,12 @@ public class CommonFunctions { private CommonFunctions() { } + /** + * Method for serialization object by GSON. + * + * @param consumerDmaapModel - object which will be serialized + * @return string from serialization + */ public static String createJsonBody(ConsumerDmaapModel consumerDmaapModel) { GsonBuilder gsonBuilder = new GsonBuilder(); ServiceLoader.load(TypeAdapterFactory.class).forEach(gsonBuilder::registerTypeAdapterFactory); diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/ConsumerDmaapModelForUnitTest.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/ConsumerDmaapModelForUnitTest.java index 76f51749..569a7a7c 100644 --- a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/ConsumerDmaapModelForUnitTest.java +++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/ConsumerDmaapModelForUnitTest.java @@ -26,6 +26,9 @@ public class ConsumerDmaapModelForUnitTest implements ConsumerDmaapModel { private final String ipv4; private final String ipv6; + /** + * Class for testing serialization of ConsumerDmaapModel. + */ public ConsumerDmaapModelForUnitTest() { this.pnfName = "NOKnhfsadhff"; this.ipv4 = "256.22.33.155"; -- cgit 1.2.3-korg