INT-789, Added caching for compiled regex patterns (see INT-CR-19), forgot to add compiled patterns to the cache
This commit is contained in:
@@ -190,6 +190,7 @@ final class GlobalChannelInterceptorBeanPostProcessor implements BeanPostProcess
|
||||
Pattern p = compiledPatterns.get(channelPattern);
|
||||
if (p == null){
|
||||
p = Pattern.compile(channelPattern);
|
||||
compiledPatterns.put(channelPattern, p);
|
||||
}
|
||||
Matcher m = p.matcher(beanName);
|
||||
if (m.find()){
|
||||
|
||||
Reference in New Issue
Block a user