Changed the visibility of abstract class constructors to "protected" 75/128275/1
authorsharath reddy <bs.reddy@huawei.com>
Mon, 4 Apr 2022 12:28:29 +0000 (17:58 +0530)
committersharath reddy <bs.reddy@huawei.com>
Mon, 4 Apr 2022 12:30:30 +0000 (18:00 +0530)
Issue-ID: CLI-439

report: tested weather-report, execution-list

Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: I09ba1fa91f1a79817bcbbc274533fc19ded0bd95

framework/src/main/java/org/onap/cli/fw/error/OnapCommandWarning.java

index ccd2cee..619451e 100644 (file)
@@ -24,15 +24,15 @@ public abstract class OnapCommandWarning extends OnapCommandException {
 
     private static final long serialVersionUID = -1833571383961748520L;
 
-    public OnapCommandWarning(String errorCode, String errorMessage, long httpStatusCode) {
+    protected OnapCommandWarning(String errorCode, String errorMessage, long httpStatusCode) {
         super(errorCode, errorMessage, httpStatusCode);
     }
 
-    public OnapCommandWarning(String errorCode, String errorMessage) {
+    protected OnapCommandWarning(String errorCode, String errorMessage) {
         super(errorCode, errorMessage);
     }
 
-    public OnapCommandWarning(String errorCode, String errorMessage, Throwable err) {
+    protected OnapCommandWarning(String errorCode, String errorMessage, Throwable err) {
         super(errorCode, errorMessage, err);
     }
 }