Skip to content

Commit 6ffa6fb

Browse files
committed
* Visitor (getNameWithNamespace): If the package's declared name is
null, just return the name as it is.
1 parent d42a364 commit 6ffa6fb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • org.omg.sysml.plantuml/src/org/omg/sysml/plantuml

org.omg.sysml.plantuml/src/org/omg/sysml/plantuml/Visitor.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,12 +468,12 @@ protected static String getFeatureChainName(Feature f) {
468468
private static String getNameWithNamespace(Feature f) {
469469
String name = getFeatureName(f);
470470
if (name == null) return null;
471+
471472
org.omg.sysml.lang.sysml.Namespace pkg = f.getOwningNamespace();
472-
if (pkg == null) {
473-
return name;
474-
} else {
475-
return pkg.getDeclaredName() + "::" + name;
476-
}
473+
if (pkg == null) return name;
474+
String pkgName = pkg.getDeclaredName();
475+
if (pkgName == null) return name;
476+
return pkgName + "::" + name;
477477
}
478478

479479

0 commit comments

Comments
 (0)