From: Amol S. Deshmukh Date: Tue, 29 Aug 2006 14:50:39 +0000 (+0000) Subject: replaced use of String.contains(..) with String.indexOf(..) >= 0 to make it JDK1... X-Git-Tag: REL_3_0_ALPHA3~36 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3b31fe54f0e91cfb04614601ead48116303d5bf;p=poi.git 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 --- diff --git a/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java b/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java index 25e1a8f345..4f37b15a63 100644 --- a/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java @@ -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);