INT-3712: Remove StringUtils.isNotEmpty usage

JIRA: https://jira.spring.io/browse/INT-3712

According to the commit b90085500d
`StringUtils.isNotEmpty` doesn't exist anymore. `StringUtils.hasLength` is way to go ahead.
This commit is contained in:
Artem Bilan
2015-05-07 23:27:29 +03:00
parent 256ff4c46f
commit 79db6e6c3f

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));