diff options
author | Driptaroop Das <driptaroop.das@in.ibm.com> | 2019-01-23 13:27:59 +0530 |
---|---|---|
committer | Driptaroop Das <driptaroop.das@in.ibm.com> | 2019-01-23 13:28:20 +0530 |
commit | 94342e5bf61ff9f99347d0962b61c7ec2c177949 (patch) | |
tree | a17185de8dfe61c8a9b1b234304413e74c896b16 /src/main/java/org | |
parent | ccda7ee6355fe767fe6091d9943d9b295c29ee99 (diff) |
Multiple Sonar Fixes - AafNamespace.java
Multiple Sonar Fixes - AafNamespace.java
Issue-ID: DMAAP-994
Change-Id: I25c3101fb14d20de1a4c23bb8af8d422a00ea95a
Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/aaf/AafNamespace.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/aaf/AafNamespace.java b/src/main/java/org/onap/dmaap/dbcapi/aaf/AafNamespace.java index aa4fb89..793260c 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/aaf/AafNamespace.java +++ b/src/main/java/org/onap/dmaap/dbcapi/aaf/AafNamespace.java @@ -3,6 +3,7 @@ * org.onap.dmaap * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2019 IBM. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,22 +28,22 @@ import org.onap.dmaap.dbcapi.util.DmaapConfig; public class AafNamespace extends AafObject { - static final Logger logger = Logger.getLogger(AafNamespace.class); + private static final Logger logger = Logger.getLogger(AafNamespace.class); private String name; - private ArrayList<String> admin; - private ArrayList<String> responsible; + private ArrayList<String> admin; + private ArrayList<String> responsible; // in some environments, an AAF Namespace must be owned by a human. // So, when needed, this var can be set via a property - static private String NsOwnerIdentity; + private static String NsOwnerIdentity; public AafNamespace(String ns, String identity ) { super(); DmaapConfig p = (DmaapConfig)DmaapConfig.getConfig(); NsOwnerIdentity = p.getProperty( "aaf.NsOwnerIdentity", ""); - this.admin = new ArrayList<String>(); - this.responsible = new ArrayList<String>(); + this.admin = new ArrayList<>(); + this.responsible = new ArrayList<>(); this.name = ns; this.admin.add( identity ); @@ -73,7 +74,7 @@ public class AafNamespace extends AafObject { // output "a", "b", "c" private String separatedList( ArrayList<String> list, String sep ) { if (list.isEmpty()) return null; - String aList = new String(); + String aList = ""; String delim = ""; for( String item: list) { if( ! item.isEmpty()) { |