replaced use of String.contains(..) with String.indexOf(..) >= 0 to make it JDK1.4 compatible

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@438085 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Amol S. Deshmukh 2006-08-29 14:50:39 +00:00
parent 5e3eb6beff
commit 373e9d5613
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class Ref3DPtg extends Ptg {
SheetReferences refs = book == null ? null : book.getSheetReferences();
if (refs != null) {
String sheetName =refs.getSheetName((int)this.field_1_index_extern_sheet);
boolean appendQuotes = sheetName.contains(" ");
boolean appendQuotes = sheetName.indexOf(" ") >= 0;
if (appendQuotes)
retval.append("'");
retval.append(sheetName);