Fix StringUtils.isNotEmpty usage from SF 4.2

https://build.spring.io/browse/INT-B41X-35/

The proper fix for 4.1.x is `StringUtils.hasLength`
This commit is contained in:
Artem Bilan
2015-05-06 13:56:38 +03:00
parent c45edf4292
commit 07ccf0d379

View File

@@ -128,7 +128,7 @@ public class SyslogToMapTransformer extends AbstractPayloadTransformer<Object, M
map.put(TIMESTAMP, timestamp);
}
map.put(HOST, matcher.group(3));
if (StringUtils.isNotEmpty(matcher.group(4))) {
if (StringUtils.hasLength(matcher.group(4))) {
map.put(TAG, matcher.group(4));
}
map.put(MESSAGE, matcher.group(5));