Changeset 23795

Show
Ignore:
Timestamp:
15.03.2011 17:10:29 (8 years ago)
Author:
davidb
Message:

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

Files:
1 modified

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        }