From a3b31fe54f0e91cfb04614601ead48116303d5bf Mon Sep 17 00:00:00 2001 From: "Amol S. Deshmukh" Date: Tue, 29 Aug 2006 14:50:39 +0000 Subject: [PATCH] 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 --- src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5