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:
parent
5e3eb6beff
commit
373e9d5613
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user