Issue #4310 - Trim some strings.

Change-Id: I401af47f9d02f5398e06fc86ccd2177ebe8bf0e8

Former-commit-id: b8b0cf6a3d532fc88ccfab658635cf203b727f5b
This commit is contained in:
Mike Duff 2015-03-19 16:08:38 -05:00
parent 8bdfffa97d
commit b10badf760

View file

@ -51,6 +51,7 @@ import com.raytheon.uf.edex.plugin.redbook.ingest.xml.RedbookMenusXML;
* Date Ticket# Engineer Description * Date Ticket# Engineer Description
* ------------ ---------- ----------- -------------------------- * ------------ ---------- ----------- --------------------------
* Jan 30, 2015 4030 mpduff Initial creation * Jan 30, 2015 4030 mpduff Initial creation
* Mar 19, 2015 4310 mpduff Some values must be trimmed.
* *
* </pre> * </pre>
* *
@ -177,7 +178,9 @@ public class NdmMenuConverter {
subEntry.setKey(WMO); subEntry.setKey(WMO);
for (String subPart : subParts) { for (String subPart : subParts) {
subPart = subPart.trim();
for (String key : dataKeyMap.keySet()) { for (String key : dataKeyMap.keySet()) {
key = key.trim();
if (key.startsWith(subPart)) { if (key.startsWith(subPart)) {
subValue.append(dataKeyMap.get(key)) subValue.append(dataKeyMap.get(key))
.append(","); .append(",");