From: Arundathi Patil Date: Mon, 7 Jan 2019 11:43:03 +0000 (+0530) Subject: Sonar fix: Delg.java X-Git-Tag: 2.1.9~52^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F75360%2F1;p=aaf%2Fauthz.git Sonar fix: Delg.java Fixed sonar issues/code-smells across this file Issue-ID: AAF-706 Change-Id: Iae525eb997f3352bfc8b7f3d74a835322f212d36 Signed-off-by: Arundathi Patil --- diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/Delg.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/Delg.java index 3cb9fb04..e4ddc2b1 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/Delg.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/Delg.java @@ -3,6 +3,8 @@ * org.onap.aaf * =========================================================================== * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. + * + * Modifications Copyright (C) 2018 IBM. * =========================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,7 +43,7 @@ import aaf.v2_0.DelgRequest; public class Delg extends BaseCmd { static final String AUTHZ_DELG = "/authz/delegate"; - private final static String[] options = {"add","upd","del"}; + private static final String[] options = {"add","upd","del"}; public Delg(User user) throws APIException { super(user,"delegate", @@ -112,8 +114,8 @@ public class Delg extends BaseCmd { } @Override - public void detailedHelp(int _indent, StringBuilder sb) { - int indent = _indent; + public void detailedHelp(int indentParam, StringBuilder sb) { + int indent = indentParam; detailLine(sb,indent,"Add, Update or Delete Delegate"); indent+=2; detailLine(sb,indent,"A Delegate is a person who will temporarily cover the Approval and");