protected synchronized RegularExpression getRegularExpression()

in src/main/org/apache/ant/props/RegexBasedEvaluator.java [82:91]


    protected synchronized RegularExpression getRegularExpression() {
        if (regularExpression == null) {
            if (getPattern() == null) {
                throw new IllegalStateException("pattern not set");
            }
            regularExpression = new RegularExpression();
            regularExpression.setPattern(getPattern());
        }
        return regularExpression;
    }