]> source.dussan.org Git - poi.git/commitdiff
replaced use of String.contains(..) with String.indexOf(..) >= 0 to make it JDK1...
authorAmol S. Deshmukh <amol@apache.org>
Tue, 29 Aug 2006 14:50:39 +0000 (14:50 +0000)
committerAmol S. Deshmukh <amol@apache.org>
Tue, 29 Aug 2006 14:50:39 +0000 (14:50 +0000)
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

index 25e1a8f34576ec1b758d173c513c9fa82afd3ce9..4f37b15a63650bf38a8bd8991c70aceafeb2fb8b 100644 (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);