diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2018-08-14 16:43:53 -0400 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2018-08-15 11:34:13 -0400 |
commit | 011cdf2d4fa47ab078061d3700a95c3d3764e5e0 (patch) | |
tree | 8b32d1afd9b046efe5049cafbe33c8ada85bf9b9 /policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/bus/internal/BusTopicParams.java | |
parent | 6509e95ef278ee141c706cb66fe269e146ef888e (diff) |
Fix checkstyle comments etc.
Adding javadoc comments, renaming variables names,
fixed whitespace and 120 length. Also some variables
were made final since they were declared further from
usage. Splitting out Asserts.
Still remaining are the abbreviations.
Issue-ID: POLICY-881
Change-Id: I31ce5a9eea02578bce023c0c607a19108bb726fa
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/bus/internal/BusTopicParams.java')
-rw-r--r-- | policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/bus/internal/BusTopicParams.java | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/bus/internal/BusTopicParams.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/bus/internal/BusTopicParams.java index 347ae42c..b133f1c7 100644 --- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/bus/internal/BusTopicParams.java +++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/bus/internal/BusTopicParams.java @@ -213,112 +213,113 @@ public class BusTopicParams { } public static class TopicParamsBuilder { - BusTopicParams m = new BusTopicParams(); + + BusTopicParams params = new BusTopicParams(); private TopicParamsBuilder() { } public TopicParamsBuilder servers(List<String> servers) { - this.m.servers = servers; + this.params.servers = servers; return this; } public TopicParamsBuilder topic(String topic) { - this.m.topic = topic; + this.params.topic = topic; return this; } public TopicParamsBuilder apiKey(String apiKey) { - this.m.apiKey = apiKey; + this.params.apiKey = apiKey; return this; } public TopicParamsBuilder apiSecret(String apiSecret) { - this.m.apiSecret = apiSecret; + this.params.apiSecret = apiSecret; return this; } public TopicParamsBuilder consumerGroup(String consumerGroup) { - this.m.consumerGroup = consumerGroup; + this.params.consumerGroup = consumerGroup; return this; } public TopicParamsBuilder consumerInstance(String consumerInstance) { - this.m.consumerInstance = consumerInstance; + this.params.consumerInstance = consumerInstance; return this; } public TopicParamsBuilder fetchTimeout(int fetchTimeout) { - this.m.fetchTimeout = fetchTimeout; + this.params.fetchTimeout = fetchTimeout; return this; } public TopicParamsBuilder fetchLimit(int fetchLimit) { - this.m.fetchLimit = fetchLimit; + this.params.fetchLimit = fetchLimit; return this; } public TopicParamsBuilder useHttps(boolean useHttps) { - this.m.useHttps = useHttps; + this.params.useHttps = useHttps; return this; } public TopicParamsBuilder allowSelfSignedCerts(boolean allowSelfSignedCerts) { - this.m.allowSelfSignedCerts = allowSelfSignedCerts; + this.params.allowSelfSignedCerts = allowSelfSignedCerts; return this; } public TopicParamsBuilder userName(String userName) { - this.m.userName = userName; + this.params.userName = userName; return this; } public TopicParamsBuilder password(String password) { - this.m.password = password; + this.params.password = password; return this; } public TopicParamsBuilder environment(String environment) { - this.m.environment = environment; + this.params.environment = environment; return this; } public TopicParamsBuilder aftEnvironment(String aftEnvironment) { - this.m.aftEnvironment = aftEnvironment; + this.params.aftEnvironment = aftEnvironment; return this; } public TopicParamsBuilder partner(String partner) { - this.m.partner = partner; + this.params.partner = partner; return this; } public TopicParamsBuilder latitude(String latitude) { - this.m.latitude = latitude; + this.params.latitude = latitude; return this; } public TopicParamsBuilder longitude(String longitude) { - this.m.longitude = longitude; + this.params.longitude = longitude; return this; } public TopicParamsBuilder additionalProps(Map<String, String> additionalProps) { - this.m.additionalProps = additionalProps; + this.params.additionalProps = additionalProps; return this; } public TopicParamsBuilder partitionId(String partitionId) { - this.m.partitionId = partitionId; + this.params.partitionId = partitionId; return this; } public BusTopicParams build() { - return m; + return params; } public TopicParamsBuilder managed(boolean managed) { - this.m.managed = managed; + this.params.managed = managed; return this; } } |