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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user