commit | 9b6e45ca7949cbf73e772412bb6149a0679869a8 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@opennetworking.org> | Wed Oct 31 15:22:32 2018 -0700 |
committer | Thomas Vachuska <tom@opennetworking.org> | Thu Nov 01 00:04:09 2018 +0000 |
tree | aee900db919b4b3cf132d463517034942bf9b083 | |
parent | 9e5a4e5afa832b2e3e13fa7ef8c553856c0be375 [diff] |
Modifying cfgdef tool to ignore properties w/o corresponding field. Change-Id: Iddbc36787d1f15ac03126360881251dea3a6a170
diff --git a/tools/build/cfgdef/src/main/java/org/onosproject/cfgdef/CfgDefGenerator.java b/tools/build/cfgdef/src/main/java/org/onosproject/cfgdef/CfgDefGenerator.java index 9488261..c46b583 100644 --- a/tools/build/cfgdef/src/main/java/org/onosproject/cfgdef/CfgDefGenerator.java +++ b/tools/build/cfgdef/src/main/java/org/onosproject/cfgdef/CfgDefGenerator.java
@@ -131,8 +131,10 @@ String def = pex[1]; String desc = description(javaClass, name); - String line = name + SEP + type + SEP + def + SEP + desc + "\n"; - lines.add(line); + if (desc != null) { + String line = name + SEP + type + SEP + def + SEP + desc + "\n"; + lines.add(line); + } } } @@ -145,7 +147,7 @@ String comment = field.getComment(); return comment != null ? comment : NO_DESCRIPTION; } - return NO_DESCRIPTION; + return null; } private String elaborate(AnnotationValue value) {