Changeset 23795


Ignore:
Timestamp:
2011-03-15T17:10:29+13:00 (13 years ago)
Author:
davidb
Message:

Changes to take advantage of the more efficient Apache Commons string manipulation classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/Collection.java

    r23633 r23795  
    4343
    4444import org.apache.log4j.*;
     45
     46// Apache Commons
     47import org.apache.commons.lang3.*;
    4548
    4649/**
     
    275278        Element d = (Element) displaynodes.item(k);
    276279        String text = GSXML.getNodeText(d);
    277         text = text.replaceAll("_httpsite_", http_site);
    278         text = text.replaceAll("_httpcollection_", http_collection);
     280        text = StringUtils.replace(text, "_httpsite_", http_site);
     281        text = StringUtils.replace(text, "_httpcollection_", http_collection);
    279282        GSXML.setNodeText(d, text);
    280283        }
Note: See TracChangeset for help on using the changeset viewer.