Project

General

Profile

« Previous | Next » 

Revision 3360

Added by Jing Tao over 17 years ago

Change String.contains which only java 1.5 have to String.indexOf

View differences:

src/edu/ucsb/nceas/metacat/QuerySpecification.java
881 881

  
882 882
        for (int i = 0; i < returnFieldList.size(); i++) {
883 883
        	String path = (String)returnFieldList.elementAt(i);
884
        	if (path != null && path.contains(ATTRIBUTESYMBOL))
884
        	if (path != null && path.indexOf(ATTRIBUTESYMBOL) != -1)
885 885
        	{
886 886
        		attributeVector.add(path);
887 887
        	}

Also available in: Unified diff