Add external tls info to bpgenerator and component spec schema
[dcaegen2/platform.git] / mod / bpgenerator / src / main / java / org / onap / blueprintgenerator / models / onapbp / OnapBlueprint.java
index c0ef8b3..9f6f560 100644 (file)
@@ -2,7 +2,9 @@
  org.onap.dcae 
  ================================================================================ 
  Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. 
- ================================================================================ 
+ ================================================================================
+ Modifications Copyright (c) 2020 Nokia. All rights reserved.
+ ================================================================================
  Licensed under the Apache License, Version 2.0 (the "License"); 
  you may not use this file except in compliance with the License. 
  You may obtain a copy of the License at 
@@ -52,7 +54,7 @@ public class OnapBlueprint extends Blueprint{
                this.setTosca_definitions_version("cloudify_dsl_1_3");
 
                //set the imports 
-               if(importPath != "") {
+               if(!"".equals(importPath)) {
                        Imports imps = new Imports();
                        this.setImports(imps.createImportsFromFile(importPath));
                }
@@ -94,4 +96,4 @@ public class OnapBlueprint extends Blueprint{
                return bp;
 
        }
-}
\ No newline at end of file
+}