correctCasePaths.put(sourcePath, Boolean.TRUE);
static Pattern getPattern(String patternString, int flags) throws TemplateModelException { PatternCacheKey patternKey = new PatternCacheKey(patternString, flags); Pattern result; synchronized (patternCache) { result = (Pattern) patternCache.get(patternKey); } if (result != null) { return result; } try { result = Pattern.compile(patternString, flags); } catch (PatternSyntaxException e) { throw new _TemplateModelException(e, "Malformed regular expression: ", new _DelayedGetMessage(e)); } synchronized (patternCache) { patternCache.put(patternKey, result); } return result; };
static Pattern getPattern(String patternString, int flags) throws TemplateModelException { PatternCacheKey patternKey = new PatternCacheKey(patternString, flags); Pattern result; synchronized (patternCache) { result = (Pattern) patternCache.get(patternKey); } if (result != null) { return result; } try { result = Pattern.compile(patternString, flags); } catch (PatternSyntaxException e) { throw new TemplateModelException(e); } synchronized (patternCache) { patternCache.put(patternKey, result); } return result; }
correctCasePaths.put(sourcePath, Boolean.TRUE);
correctCasePaths.put(sourcePath, Boolean.TRUE);
static Pattern getPattern(String patternString, int flags) throws TemplateModelException { PatternCacheKey patternKey = new PatternCacheKey(patternString, flags); Pattern result; synchronized (patternCache) { result = (Pattern) patternCache.get(patternKey); } if (result != null) { return result; } try { result = Pattern.compile(patternString, flags); } catch (PatternSyntaxException e) { throw new _TemplateModelException(e, "Malformed regular expression: ", new _DelayedGetMessage(e)); } synchronized (patternCache) { patternCache.put(patternKey, result); } return result; };
static Pattern getPattern(String patternString, int flags) throws TemplateModelException { PatternCacheKey patternKey = new PatternCacheKey(patternString, flags); Pattern result; synchronized (patternCache) { result = (Pattern) patternCache.get(patternKey); } if (result != null) { return result; } try { result = Pattern.compile(patternString, flags); } catch (PatternSyntaxException e) { throw new _TemplateModelException(e, "Malformed regular expression: ", new _DelayedGetMessage(e)); } synchronized (patternCache) { patternCache.put(patternKey, result); } return result; };