View | Details | Raw Unified | Return to bug 63805
Collapse All | Expand All

(-)src/examples/src/org/apache/poi/poifs/poibrowser/PropertySetDescriptorRenderer.java (-2 / +2 lines)
Lines 108-114 Link Here
108
     */
108
     */
109
    protected String sectionsToString(final List<Section> sections)
109
    protected String sectionsToString(final List<Section> sections)
110
    {
110
    {
111
        final StringBuffer b = new StringBuffer();
111
        final StringBuilder b = new StringBuilder();
112
        int count = 1;
112
        int count = 1;
113
        for (Iterator<Section>  i = sections.iterator(); i.hasNext();)
113
        for (Iterator<Section>  i = sections.iterator(); i.hasNext();)
114
        {
114
        {
Lines 129-135 Link Here
129
     */
129
     */
130
    protected String toString(final Section s, final String name)
130
    protected String toString(final Section s, final String name)
131
    {
131
    {
132
        final StringBuffer b = new StringBuffer();
132
        final StringBuilder b = new StringBuilder();
133
        b.append("\n" + name + " Format ID: ");
133
        b.append("\n" + name + " Format ID: ");
134
        b.append(HexDump.toHex(s.getFormatID().getBytes()));
134
        b.append(HexDump.toHex(s.getFormatID().getBytes()));
135
        b.append("\n" + name + " Offset: " + s.getOffset());
135
        b.append("\n" + name + " Offset: " + s.getOffset());
(-)src/examples/src/org/apache/poi/ss/examples/ToCSV.java (-1 / +1 lines)
Lines 346-352 Link Here
346
                // Simply replace the .xls or .xlsx file extension with .csv
346
                // Simply replace the .xls or .xlsx file extension with .csv
347
                destinationFilename = excelFile.getName();
347
                destinationFilename = excelFile.getName();
348
                destinationFilename = destinationFilename.substring(
348
                destinationFilename = destinationFilename.substring(
349
                        0, destinationFilename.lastIndexOf(".")) +
349
                        0, destinationFilename.lastIndexOf('.')) +
350
                        ToCSV.CSV_FILE_EXTENSION;
350
                        ToCSV.CSV_FILE_EXTENSION;
351
    
351
    
352
                // Save the CSV file away using the newly constricted file name
352
                // Save the CSV file away using the newly constricted file name
(-)src/excelant/testcases/org/apache/poi/ss/excelant/BuildFileTest.java (-1 / +1 lines)
Lines 266-272 Link Here
266
    }
266
    }
267
267
268
    private String cleanBuffer(StringBuffer buffer) {
268
    private String cleanBuffer(StringBuffer buffer) {
269
        StringBuffer cleanedBuffer = new StringBuffer();
269
        StringBuilder cleanedBuffer = new StringBuilder();
270
        for (int i = 0; i < buffer.length(); i++) {
270
        for (int i = 0; i < buffer.length(); i++) {
271
            char ch = buffer.charAt(i);
271
            char ch = buffer.charAt(i);
272
            if (ch != '\r') {
272
            if (ch != '\r') {
(-)src/java/org/apache/poi/hssf/record/AbstractEscherHolderRecord.java (-1 / +1 lines)
Lines 84-90 Link Here
84
    @Override
84
    @Override
85
    public String toString()
85
    public String toString()
86
    {
86
    {
87
        StringBuffer buffer = new StringBuffer();
87
        StringBuilder buffer = new StringBuilder();
88
88
89
        final String nl = System.getProperty("line.separator");
89
        final String nl = System.getProperty("line.separator");
90
        buffer.append('[' + getRecordName() + ']' + nl);
90
        buffer.append('[' + getRecordName() + ']' + nl);
(-)src/java/org/apache/poi/hssf/record/ArrayRecord.java (-1 / +1 lines)
Lines 79-85 Link Here
79
	}
79
	}
80
80
81
	public String toString() {
81
	public String toString() {
82
		StringBuffer sb = new StringBuffer();
82
		StringBuilder sb = new StringBuilder();
83
		sb.append(getClass().getName()).append(" [ARRAY]\n");
83
		sb.append(getClass().getName()).append(" [ARRAY]\n");
84
		sb.append(" range=").append(getRange()).append("\n");
84
		sb.append(" range=").append(getRange()).append("\n");
85
		sb.append(" options=").append(HexDump.shortToHex(_options)).append("\n");
85
		sb.append(" options=").append(HexDump.shortToHex(_options)).append("\n");
(-)src/java/org/apache/poi/hssf/record/AutoFilterInfoRecord.java (-2 / +2 lines)
Lines 68-74 Link Here
68
68
69
    public String toString()
69
    public String toString()
70
    {
70
    {
71
        StringBuffer buffer = new StringBuffer();
71
        StringBuilder buffer = new StringBuilder();
72
72
73
        buffer.append("[AUTOFILTERINFO]\n");
73
        buffer.append("[AUTOFILTERINFO]\n");
74
        buffer.append("    .numEntries          = ")
74
        buffer.append("    .numEntries          = ")
Lines 96-99 Link Here
96
    	return (AutoFilterInfoRecord)cloneViaReserialise();
96
    	return (AutoFilterInfoRecord)cloneViaReserialise();
97
    }
97
    }
98
    
98
    
99
}
99
}
(-)src/java/org/apache/poi/hssf/record/BOFRecord.java (-1 / +1 lines)
Lines 225-231 Link Here
225
    }
225
    }
226
226
227
    public String toString() {
227
    public String toString() {
228
        StringBuffer buffer = new StringBuffer();
228
        StringBuilder buffer = new StringBuilder();
229
229
230
        buffer.append("[BOF RECORD]\n");
230
        buffer.append("[BOF RECORD]\n");
231
        buffer.append("    .version  = ").append(HexDump.shortToHex(getVersion())).append("\n");
231
        buffer.append("    .version  = ").append(HexDump.shortToHex(getVersion())).append("\n");
(-)src/java/org/apache/poi/hssf/record/BackupRecord.java (-1 / +1 lines)
Lines 69-75 Link Here
69
69
70
    public String toString()
70
    public String toString()
71
    {
71
    {
72
        StringBuffer buffer = new StringBuffer();
72
        StringBuilder buffer = new StringBuilder();
73
73
74
        buffer.append("[BACKUP]\n");
74
        buffer.append("[BACKUP]\n");
75
        buffer.append("    .backup          = ")
75
        buffer.append("    .backup          = ")
(-)src/java/org/apache/poi/hssf/record/BlankRecord.java (-1 / +1 lines)
Lines 117-123 Link Here
117
117
118
    public String toString()
118
    public String toString()
119
    {
119
    {
120
        StringBuffer sb = new StringBuffer();
120
        StringBuilder sb = new StringBuilder();
121
121
122
        sb.append("[BLANK]\n");
122
        sb.append("[BLANK]\n");
123
        sb.append("    row= ").append(HexDump.shortToHex(getRow())).append("\n");
123
        sb.append("    row= ").append(HexDump.shortToHex(getRow())).append("\n");
(-)src/java/org/apache/poi/hssf/record/BookBoolRecord.java (-1 / +1 lines)
Lines 69-75 Link Here
69
69
70
    public String toString()
70
    public String toString()
71
    {
71
    {
72
        StringBuffer buffer = new StringBuffer();
72
        StringBuilder buffer = new StringBuilder();
73
73
74
        buffer.append("[BOOKBOOL]\n");
74
        buffer.append("[BOOKBOOL]\n");
75
        buffer.append("    .savelinkvalues  = ")
75
        buffer.append("    .savelinkvalues  = ")
(-)src/java/org/apache/poi/hssf/record/BottomMarginRecord.java (-2 / +2 lines)
Lines 41-47 Link Here
41
41
42
    public String toString()
42
    public String toString()
43
    {
43
    {
44
        StringBuffer buffer = new StringBuffer();
44
        StringBuilder buffer = new StringBuilder();
45
        buffer.append( "[BottomMargin]\n" );
45
        buffer.append( "[BottomMargin]\n" );
46
        buffer.append( "    .margin               = " )
46
        buffer.append( "    .margin               = " )
47
                .append( " (" ).append( getMargin() ).append( " )\n" );
47
                .append( " (" ).append( getMargin() ).append( " )\n" );
Lines 85-88 Link Here
85
        return rec;
85
        return rec;
86
    }
86
    }
87
87
88
}  // END OF 
88
}  // END OF 
(-)src/java/org/apache/poi/hssf/record/BoundSheetRecord.java (-1 / +1 lines)
Lines 122-128 Link Here
122
	}
122
	}
123
123
124
	public String toString() {
124
	public String toString() {
125
		StringBuffer buffer = new StringBuffer();
125
		StringBuilder buffer = new StringBuilder();
126
126
127
		buffer.append("[BOUNDSHEET]\n");
127
		buffer.append("[BOUNDSHEET]\n");
128
		buffer.append("    .bof        = ").append(HexDump.intToHex(getPositionOfBof())).append("\n");
128
		buffer.append("    .bof        = ").append(HexDump.intToHex(getPositionOfBof())).append("\n");
(-)src/java/org/apache/poi/hssf/record/CFRuleRecord.java (-1 / +1 lines)
Lines 136-142 Link Here
136
136
137
    @Override
137
    @Override
138
    public String toString() {
138
    public String toString() {
139
        StringBuffer buffer = new StringBuffer();
139
        StringBuilder buffer = new StringBuilder();
140
        buffer.append("[CFRULE]\n");
140
        buffer.append("[CFRULE]\n");
141
        buffer.append("    .condition_type   =").append(getConditionType()).append("\n");
141
        buffer.append("    .condition_type   =").append(getConditionType()).append("\n");
142
        buffer.append("    OPTION FLAGS=0x").append(Integer.toHexString(getOptions())).append("\n");
142
        buffer.append("    OPTION FLAGS=0x").append(Integer.toHexString(getOptions())).append("\n");
(-)src/java/org/apache/poi/hssf/record/CRNCountRecord.java (-1 / +1 lines)
Lines 55-61 Link Here
55
55
56
56
57
	public String toString() {
57
	public String toString() {
58
        StringBuffer sb = new StringBuffer();
58
        StringBuilder sb = new StringBuilder();
59
        sb.append(getClass().getName()).append(" [XCT");
59
        sb.append(getClass().getName()).append(" [XCT");
60
        sb.append(" nCRNs=").append(field_1_number_crn_records);
60
        sb.append(" nCRNs=").append(field_1_number_crn_records);
61
        sb.append(" sheetIx=").append(field_2_sheet_table_index);
61
        sb.append(" sheetIx=").append(field_2_sheet_table_index);
(-)src/java/org/apache/poi/hssf/record/CRNRecord.java (-1 / +1 lines)
Lines 52-58 Link Here
52
52
53
53
54
	public String toString() {
54
	public String toString() {
55
		StringBuffer sb = new StringBuffer();
55
		StringBuilder sb = new StringBuilder();
56
		sb.append(getClass().getName()).append(" [CRN");
56
		sb.append(getClass().getName()).append(" [CRN");
57
		sb.append(" rowIx=").append(field_3_row_index);
57
		sb.append(" rowIx=").append(field_3_row_index);
58
		sb.append(" firstColIx=").append(field_2_first_column_index);
58
		sb.append(" firstColIx=").append(field_2_first_column_index);
(-)src/java/org/apache/poi/hssf/record/CalcCountRecord.java (-1 / +1 lines)
Lines 68-74 Link Here
68
68
69
    public String toString()
69
    public String toString()
70
    {
70
    {
71
        StringBuffer buffer = new StringBuffer();
71
        StringBuilder buffer = new StringBuilder();
72
72
73
        buffer.append("[CALCCOUNT]\n");
73
        buffer.append("[CALCCOUNT]\n");
74
        buffer.append("    .iterations     = ")
74
        buffer.append("    .iterations     = ")
(-)src/java/org/apache/poi/hssf/record/CalcModeRecord.java (-1 / +1 lines)
Lines 96-102 Link Here
96
96
97
    public String toString()
97
    public String toString()
98
    {
98
    {
99
        StringBuffer buffer = new StringBuffer();
99
        StringBuilder buffer = new StringBuilder();
100
100
101
        buffer.append("[CALCMODE]\n");
101
        buffer.append("[CALCMODE]\n");
102
        buffer.append("    .calcmode       = ")
102
        buffer.append("    .calcmode       = ")
(-)src/java/org/apache/poi/hssf/record/CodepageRecord.java (-1 / +1 lines)
Lines 79-85 Link Here
79
79
80
    public String toString()
80
    public String toString()
81
    {
81
    {
82
        StringBuffer buffer = new StringBuffer();
82
        StringBuilder buffer = new StringBuilder();
83
83
84
        buffer.append("[CODEPAGE]\n");
84
        buffer.append("[CODEPAGE]\n");
85
        buffer.append("    .codepage        = ")
85
        buffer.append("    .codepage        = ")
(-)src/java/org/apache/poi/hssf/record/CommonObjectDataSubRecord.java (-1 / +1 lines)
Lines 95-101 Link Here
95
    @Override
95
    @Override
96
    public String toString()
96
    public String toString()
97
    {
97
    {
98
        StringBuffer buffer = new StringBuffer();
98
        StringBuilder buffer = new StringBuilder();
99
99
100
        buffer.append("[ftCmo]\n");
100
        buffer.append("[ftCmo]\n");
101
        buffer.append("    .objectType           = ")
101
        buffer.append("    .objectType           = ")
(-)src/java/org/apache/poi/hssf/record/ContinueRecord.java (-1 / +1 lines)
Lines 53-59 Link Here
53
    }
53
    }
54
54
55
    public String toString() {
55
    public String toString() {
56
        StringBuffer buffer = new StringBuffer();
56
        StringBuilder buffer = new StringBuilder();
57
57
58
        buffer.append("[CONTINUE RECORD]\n");
58
        buffer.append("[CONTINUE RECORD]\n");
59
        buffer.append("    .data = ").append(HexDump.toHex(_data)).append("\n");
59
        buffer.append("    .data = ").append(HexDump.toHex(_data)).append("\n");
(-)src/java/org/apache/poi/hssf/record/CountryRecord.java (-1 / +1 lines)
Lines 96-102 Link Here
96
96
97
    public String toString()
97
    public String toString()
98
    {
98
    {
99
        StringBuffer buffer = new StringBuffer();
99
        StringBuilder buffer = new StringBuilder();
100
100
101
        buffer.append("[COUNTRY]\n");
101
        buffer.append("[COUNTRY]\n");
102
        buffer.append("    .defaultcountry  = ")
102
        buffer.append("    .defaultcountry  = ")
(-)src/java/org/apache/poi/hssf/record/DBCellRecord.java (-1 / +1 lines)
Lines 77-83 Link Here
77
77
78
78
79
    public String toString() {
79
    public String toString() {
80
        StringBuffer buffer = new StringBuffer();
80
        StringBuilder buffer = new StringBuilder();
81
81
82
        buffer.append("[DBCELL]\n");
82
        buffer.append("[DBCELL]\n");
83
        buffer.append("    .rowoffset = ").append(HexDump.intToHex(field_1_row_offset)).append("\n");
83
        buffer.append("    .rowoffset = ").append(HexDump.intToHex(field_1_row_offset)).append("\n");
(-)src/java/org/apache/poi/hssf/record/DSFRecord.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    }
52
    }
53
53
54
    public String toString() {
54
    public String toString() {
55
        StringBuffer buffer = new StringBuffer();
55
        StringBuilder buffer = new StringBuilder();
56
56
57
        buffer.append("[DSF]\n");
57
        buffer.append("[DSF]\n");
58
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
58
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
(-)src/java/org/apache/poi/hssf/record/DVALRecord.java (-1 / +1 lines)
Lines 129-135 Link Here
129
129
130
130
131
	public String toString() {
131
	public String toString() {
132
		StringBuffer buffer = new StringBuffer();
132
		StringBuilder buffer = new StringBuilder();
133
133
134
		buffer.append("[DVAL]\n");
134
		buffer.append("[DVAL]\n");
135
		buffer.append("    .options      = ").append(getOptions()).append('\n');
135
		buffer.append("    .options      = ").append(getOptions()).append('\n');
(-)src/java/org/apache/poi/hssf/record/DateWindow1904Record.java (-1 / +1 lines)
Lines 67-73 Link Here
67
67
68
    public String toString()
68
    public String toString()
69
    {
69
    {
70
        StringBuffer buffer = new StringBuffer();
70
        StringBuilder buffer = new StringBuilder();
71
71
72
        buffer.append("[1904]\n");
72
        buffer.append("[1904]\n");
73
        buffer.append("    .is1904          = ")
73
        buffer.append("    .is1904          = ")
(-)src/java/org/apache/poi/hssf/record/DefaultColWidthRecord.java (-1 / +1 lines)
Lines 69-75 Link Here
69
69
70
    public String toString()
70
    public String toString()
71
    {
71
    {
72
        StringBuffer buffer = new StringBuffer();
72
        StringBuilder buffer = new StringBuilder();
73
73
74
        buffer.append("[DEFAULTCOLWIDTH]\n");
74
        buffer.append("[DEFAULTCOLWIDTH]\n");
75
        buffer.append("    .colwidth      = ")
75
        buffer.append("    .colwidth      = ")
(-)src/java/org/apache/poi/hssf/record/DefaultRowHeightRecord.java (-1 / +1 lines)
Lines 95-101 Link Here
95
95
96
    public String toString()
96
    public String toString()
97
    {
97
    {
98
        StringBuffer buffer = new StringBuffer();
98
        StringBuilder buffer = new StringBuilder();
99
99
100
        buffer.append("[DEFAULTROWHEIGHT]\n");
100
        buffer.append("[DEFAULTROWHEIGHT]\n");
101
        buffer.append("    .optionflags    = ")
101
        buffer.append("    .optionflags    = ")
(-)src/java/org/apache/poi/hssf/record/DeltaRecord.java (-1 / +1 lines)
Lines 49-55 Link Here
49
    }
49
    }
50
50
51
    public String toString() {
51
    public String toString() {
52
        StringBuffer buffer = new StringBuffer();
52
        StringBuilder buffer = new StringBuilder();
53
53
54
        buffer.append("[DELTA]\n");
54
        buffer.append("[DELTA]\n");
55
        buffer.append("    .maxchange = ").append(getMaxChange()).append("\n");
55
        buffer.append("    .maxchange = ").append(getMaxChange()).append("\n");
(-)src/java/org/apache/poi/hssf/record/DimensionsRecord.java (-1 / +1 lines)
Lines 144-150 Link Here
144
144
145
    public String toString()
145
    public String toString()
146
    {
146
    {
147
        StringBuffer buffer = new StringBuffer();
147
        StringBuilder buffer = new StringBuilder();
148
148
149
        buffer.append("[DIMENSIONS]\n");
149
        buffer.append("[DIMENSIONS]\n");
150
        buffer.append("    .firstrow       = ")
150
        buffer.append("    .firstrow       = ")
(-)src/java/org/apache/poi/hssf/record/DrawingSelectionRecord.java (-2 / +2 lines)
Lines 57-63 Link Here
57
		}
57
		}
58
58
59
		public String debugFormatAsString() {
59
		public String debugFormatAsString() {
60
			StringBuffer sb = new StringBuffer(32);
60
			StringBuilder sb = new StringBuilder(32);
61
			sb.append("ver+inst=").append(HexDump.shortToHex(_verAndInstance));
61
			sb.append("ver+inst=").append(HexDump.shortToHex(_verAndInstance));
62
			sb.append(" type=").append(HexDump.shortToHex(_type));
62
			sb.append(" type=").append(HexDump.shortToHex(_type));
63
			sb.append(" len=").append(HexDump.intToHex(_length));
63
			sb.append(" len=").append(HexDump.intToHex(_length));
Lines 115-121 Link Here
115
	}
115
	}
116
116
117
	public String toString() {
117
	public String toString() {
118
		StringBuffer sb = new StringBuffer();
118
		StringBuilder sb = new StringBuilder();
119
119
120
		sb.append("[MSODRAWINGSELECTION]\n");
120
		sb.append("[MSODRAWINGSELECTION]\n");
121
		sb.append("    .rh       =(").append(_header.debugFormatAsString()).append(")\n");
121
		sb.append("    .rh       =(").append(_header.debugFormatAsString()).append(")\n");
(-)src/java/org/apache/poi/hssf/record/EOFRecord.java (-1 / +1 lines)
Lines 48-54 Link Here
48
48
49
    public String toString()
49
    public String toString()
50
    {
50
    {
51
        StringBuffer buffer = new StringBuffer();
51
        StringBuilder buffer = new StringBuilder();
52
52
53
        buffer.append("[EOF]\n");
53
        buffer.append("[EOF]\n");
54
        buffer.append("[/EOF]\n");
54
        buffer.append("[/EOF]\n");
(-)src/java/org/apache/poi/hssf/record/EmbeddedObjectRefSubRecord.java (-1 / +1 lines)
Lines 315-321 Link Here
315
	}
315
	}
316
316
317
	public String toString() {
317
	public String toString() {
318
		StringBuffer sb = new StringBuffer();
318
		StringBuilder sb = new StringBuilder();
319
		sb.append("[ftPictFmla]\n");
319
		sb.append("[ftPictFmla]\n");
320
		sb.append("    .f2unknown     = ").append(HexDump.intToHex(field_1_unknown_int)).append("\n");
320
		sb.append("    .f2unknown     = ").append(HexDump.intToHex(field_1_unknown_int)).append("\n");
321
		if (field_2_refPtg == null) {
321
		if (field_2_refPtg == null) {
(-)src/java/org/apache/poi/hssf/record/EndSubRecord.java (-1 / +1 lines)
Lines 53-59 Link Here
53
53
54
    public String toString()
54
    public String toString()
55
    {
55
    {
56
        StringBuffer buffer = new StringBuffer();
56
        StringBuilder buffer = new StringBuilder();
57
57
58
        buffer.append("[ftEnd]\n");
58
        buffer.append("[ftEnd]\n");
59
59
(-)src/java/org/apache/poi/hssf/record/ExtSSTRecord.java (-1 / +1 lines)
Lines 111-117 Link Here
111
    }
111
    }
112
112
113
    public String toString() {
113
    public String toString() {
114
        StringBuffer buffer = new StringBuffer();
114
        StringBuilder buffer = new StringBuilder();
115
115
116
        buffer.append("[EXTSST]\n");
116
        buffer.append("[EXTSST]\n");
117
        buffer.append("    .dsst           = ")
117
        buffer.append("    .dsst           = ")
(-)src/java/org/apache/poi/hssf/record/ExternSheetRecord.java (-2 / +2 lines)
Lines 70-76 Link Here
70
		
70
		
71
		@Override
71
		@Override
72
		public String toString() {
72
		public String toString() {
73
			StringBuffer buffer = new StringBuffer();
73
			StringBuilder buffer = new StringBuilder();
74
			buffer.append("extBook=").append(_extBookIndex);
74
			buffer.append("extBook=").append(_extBookIndex);
75
			buffer.append(" firstSheet=").append(_firstSheetIndex);
75
			buffer.append(" firstSheet=").append(_firstSheetIndex);
76
			buffer.append(" lastSheet=").append(_lastSheetIndex);
76
			buffer.append(" lastSheet=").append(_lastSheetIndex);
Lines 127-133 Link Here
127
	
127
	
128
	@Override
128
	@Override
129
	public String toString() {
129
	public String toString() {
130
		StringBuffer sb = new StringBuffer();
130
		StringBuilder sb = new StringBuilder();
131
		int nItems = _list.size();
131
		int nItems = _list.size();
132
		sb.append("[EXTERNSHEET]\n");
132
		sb.append("[EXTERNSHEET]\n");
133
		sb.append("   numOfRefs     = ").append(nItems).append("\n");
133
		sb.append("   numOfRefs     = ").append(nItems).append("\n");
(-)src/java/org/apache/poi/hssf/record/FeatHdrRecord.java (-1 / +1 lines)
Lines 84-90 Link Here
84
	}
84
	}
85
85
86
	public String toString() {
86
	public String toString() {
87
		StringBuffer buffer = new StringBuffer();
87
		StringBuilder buffer = new StringBuilder();
88
		buffer.append("[FEATURE HEADER]\n");
88
		buffer.append("[FEATURE HEADER]\n");
89
		
89
		
90
		// TODO ...
90
		// TODO ...
(-)src/java/org/apache/poi/hssf/record/FeatRecord.java (-1 / +1 lines)
Lines 101-107 Link Here
101
	}
101
	}
102
102
103
	public String toString() {
103
	public String toString() {
104
		StringBuffer buffer = new StringBuffer();
104
		StringBuilder buffer = new StringBuilder();
105
		buffer.append("[SHARED FEATURE]\n");
105
		buffer.append("[SHARED FEATURE]\n");
106
		
106
		
107
		// TODO ...
107
		// TODO ...
(-)src/java/org/apache/poi/hssf/record/FileSharingRecord.java (-1 / +1 lines)
Lines 100-106 Link Here
100
100
101
101
102
    public String toString() {
102
    public String toString() {
103
        StringBuffer buffer = new StringBuffer();
103
        StringBuilder buffer = new StringBuilder();
104
104
105
        buffer.append("[FILESHARING]\n");
105
        buffer.append("[FILESHARING]\n");
106
        buffer.append("    .readonly       = ")
106
        buffer.append("    .readonly       = ")
(-)src/java/org/apache/poi/hssf/record/FnGroupCountRecord.java (-1 / +1 lines)
Lines 75-81 Link Here
75
75
76
    public String toString()
76
    public String toString()
77
    {
77
    {
78
        StringBuffer buffer = new StringBuffer();
78
        StringBuilder buffer = new StringBuilder();
79
79
80
        buffer.append("[FNGROUPCOUNT]\n");
80
        buffer.append("[FNGROUPCOUNT]\n");
81
        buffer.append("    .count            = ").append(getCount())
81
        buffer.append("    .count            = ").append(getCount())
(-)src/java/org/apache/poi/hssf/record/FontRecord.java (-1 / +1 lines)
Lines 361-367 Link Here
361
	}
361
	}
362
362
363
	public String toString() {
363
	public String toString() {
364
		StringBuffer sb = new StringBuffer();
364
		StringBuilder sb = new StringBuilder();
365
365
366
		sb.append("[FONT]\n");
366
		sb.append("[FONT]\n");
367
		sb.append("    .fontheight    = ").append(HexDump.shortToHex(getFontHeight())).append("\n");
367
		sb.append("    .fontheight    = ").append(HexDump.shortToHex(getFontHeight())).append("\n");
(-)src/java/org/apache/poi/hssf/record/FooterRecord.java (-1 / +1 lines)
Lines 34-40 Link Here
34
	}
34
	}
35
35
36
	public String toString() {
36
	public String toString() {
37
		StringBuffer buffer = new StringBuffer();
37
		StringBuilder buffer = new StringBuilder();
38
38
39
		buffer.append("[FOOTER]\n");
39
		buffer.append("[FOOTER]\n");
40
		buffer.append("    .footer = ").append(getText()).append("\n");
40
		buffer.append("    .footer = ").append(getText()).append("\n");
(-)src/java/org/apache/poi/hssf/record/FormatRecord.java (-1 / +1 lines)
Lines 84-90 Link Here
84
    }
84
    }
85
85
86
    public String toString() {
86
    public String toString() {
87
        StringBuffer buffer = new StringBuffer();
87
        StringBuilder buffer = new StringBuilder();
88
88
89
        buffer.append("[FORMAT]\n");
89
        buffer.append("[FORMAT]\n");
90
        buffer.append("    .indexcode       = ").append(HexDump.shortToHex(getIndexCode())).append("\n");
90
        buffer.append("    .indexcode       = ").append(HexDump.shortToHex(getIndexCode())).append("\n");
(-)src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java (-2 / +2 lines)
Lines 60-66 Link Here
60
     */
60
     */
61
    public String toString()
61
    public String toString()
62
    {
62
    {
63
        StringBuffer buffer = new StringBuffer();
63
        StringBuilder buffer = new StringBuilder();
64
64
65
        buffer.append("[FtCbls ]").append("\n");
65
        buffer.append("[FtCbls ]").append("\n");
66
        buffer.append("  size     = ").append(getDataSize()).append("\n");
66
        buffer.append("  size     = ").append(getDataSize()).append("\n");
Lines 101-104 Link Here
101
        return rec;
101
        return rec;
102
    }
102
    }
103
103
104
}
104
}
(-)src/java/org/apache/poi/hssf/record/FtCfSubRecord.java (-2 / +2 lines)
Lines 67-73 Link Here
67
     * Used by BiffViewer and other utilities.
67
     * Used by BiffViewer and other utilities.
68
     */
68
     */
69
    public String toString() {
69
    public String toString() {
70
        StringBuffer buffer = new StringBuffer();
70
        StringBuilder buffer = new StringBuilder();
71
        buffer.append("[FtCf ]\n");
71
        buffer.append("[FtCf ]\n");
72
        buffer.append("  size     = ").append(length).append("\n");
72
        buffer.append("  size     = ").append(length).append("\n");
73
        buffer.append("  flags    = ").append(HexDump.toHex(flags)).append("\n");
73
        buffer.append("  flags    = ").append(HexDump.toHex(flags)).append("\n");
Lines 112-115 Link Here
112
 public void setFlags(short flags) {
112
 public void setFlags(short flags) {
113
   this.flags = flags;
113
   this.flags = flags;
114
 }
114
 }
115
}
115
}
(-)src/java/org/apache/poi/hssf/record/FtPioGrbitSubRecord.java (-2 / +2 lines)
Lines 121-127 Link Here
121
     * Used by BiffViewer and other utilities.
121
     * Used by BiffViewer and other utilities.
122
     */
122
     */
123
    public String toString() {
123
    public String toString() {
124
        StringBuffer buffer = new StringBuffer();
124
        StringBuilder buffer = new StringBuilder();
125
        buffer.append("[FtPioGrbit ]\n");
125
        buffer.append("[FtPioGrbit ]\n");
126
        buffer.append("  size     = ").append(length).append("\n");
126
        buffer.append("  size     = ").append(length).append("\n");
127
        buffer.append("  flags    = ").append(HexDump.toHex(flags)).append("\n");
127
        buffer.append("  flags    = ").append(HexDump.toHex(flags)).append("\n");
Lines 166-169 Link Here
166
 public void setFlags(short flags) {
166
 public void setFlags(short flags) {
167
   this.flags = flags;
167
   this.flags = flags;
168
 }
168
 }
169
}
169
}
(-)src/java/org/apache/poi/hssf/record/GroupMarkerSubRecord.java (-1 / +1 lines)
Lines 49-55 Link Here
49
49
50
    public String toString()
50
    public String toString()
51
    {
51
    {
52
        StringBuffer buffer = new StringBuffer();
52
        StringBuilder buffer = new StringBuilder();
53
53
54
        String nl = System.getProperty("line.separator");
54
        String nl = System.getProperty("line.separator");
55
        buffer.append("[ftGmo]" + nl);
55
        buffer.append("[ftGmo]" + nl);
(-)src/java/org/apache/poi/hssf/record/GutsRecord.java (-1 / +1 lines)
Lines 139-145 Link Here
139
139
140
    public String toString()
140
    public String toString()
141
    {
141
    {
142
        StringBuffer buffer = new StringBuffer();
142
        StringBuilder buffer = new StringBuilder();
143
143
144
        buffer.append("[GUTS]\n");
144
        buffer.append("[GUTS]\n");
145
        buffer.append("    .leftgutter     = ")
145
        buffer.append("    .leftgutter     = ")
(-)src/java/org/apache/poi/hssf/record/HeaderRecord.java (-1 / +1 lines)
Lines 37-43 Link Here
37
	}
37
	}
38
38
39
	public String toString() {
39
	public String toString() {
40
		StringBuffer buffer = new StringBuffer();
40
		StringBuilder buffer = new StringBuilder();
41
41
42
		buffer.append("[HEADER]\n");
42
		buffer.append("[HEADER]\n");
43
		buffer.append("    .header = ").append(getText()).append("\n");
43
		buffer.append("    .header = ").append(getText()).append("\n");
(-)src/java/org/apache/poi/hssf/record/HideObjRecord.java (-1 / +1 lines)
Lines 77-83 Link Here
77
77
78
    public String toString()
78
    public String toString()
79
    {
79
    {
80
        StringBuffer buffer = new StringBuffer();
80
        StringBuilder buffer = new StringBuilder();
81
81
82
        buffer.append("[HIDEOBJ]\n");
82
        buffer.append("[HIDEOBJ]\n");
83
        buffer.append("    .hideobj         = ")
83
        buffer.append("    .hideobj         = ")
(-)src/java/org/apache/poi/hssf/record/HyperlinkRecord.java (-1 / +1 lines)
Lines 676-682 Link Here
676
676
677
    @Override
677
    @Override
678
    public String toString() {
678
    public String toString() {
679
        StringBuffer buffer = new StringBuffer();
679
        StringBuilder buffer = new StringBuilder();
680
680
681
        buffer.append("[HYPERLINK RECORD]\n");
681
        buffer.append("[HYPERLINK RECORD]\n");
682
        buffer.append("    .range   = ").append(_range.formatAsString()).append("\n");
682
        buffer.append("    .range   = ").append(_range.formatAsString()).append("\n");
(-)src/java/org/apache/poi/hssf/record/IndexRecord.java (-1 / +1 lines)
Lines 107-113 Link Here
107
    @Override
107
    @Override
108
    public String toString()
108
    public String toString()
109
    {
109
    {
110
        StringBuffer buffer = new StringBuffer();
110
        StringBuilder buffer = new StringBuilder();
111
111
112
        buffer.append("[INDEX]\n");
112
        buffer.append("[INDEX]\n");
113
        buffer.append("    .firstrow       = ")
113
        buffer.append("    .firstrow       = ")
(-)src/java/org/apache/poi/hssf/record/InterfaceHdrRecord.java (-1 / +1 lines)
Lines 44-50 Link Here
44
    }
44
    }
45
45
46
    public String toString() {
46
    public String toString() {
47
        StringBuffer buffer = new StringBuffer();
47
        StringBuilder buffer = new StringBuilder();
48
48
49
        buffer.append("[INTERFACEHDR]\n");
49
        buffer.append("[INTERFACEHDR]\n");
50
        buffer.append("    .codepage = ").append(HexDump.shortToHex(_codepage)).append("\n");
50
        buffer.append("    .codepage = ").append(HexDump.shortToHex(_codepage)).append("\n");
(-)src/java/org/apache/poi/hssf/record/IterationRecord.java (-1 / +1 lines)
Lines 64-70 Link Here
64
    }
64
    }
65
65
66
    public String toString() {
66
    public String toString() {
67
        StringBuffer buffer = new StringBuffer();
67
        StringBuilder buffer = new StringBuilder();
68
68
69
        buffer.append("[ITERATION]\n");
69
        buffer.append("[ITERATION]\n");
70
        buffer.append("    .flags      = ").append(HexDump.shortToHex(_flags)).append("\n");
70
        buffer.append("    .flags      = ").append(HexDump.shortToHex(_flags)).append("\n");
(-)src/java/org/apache/poi/hssf/record/LabelRecord.java (-1 / +1 lines)
Lines 145-151 Link Here
145
    @Override
145
    @Override
146
    public String toString()
146
    public String toString()
147
    {
147
    {
148
        StringBuffer sb = new StringBuffer();
148
        StringBuilder sb = new StringBuilder();
149
		sb.append("[LABEL]\n");
149
		sb.append("[LABEL]\n");
150
		sb.append("    .row       = ").append(HexDump.shortToHex(getRow())).append("\n");
150
		sb.append("    .row       = ").append(HexDump.shortToHex(getRow())).append("\n");
151
		sb.append("    .column    = ").append(HexDump.shortToHex(getColumn())).append("\n");
151
		sb.append("    .column    = ").append(HexDump.shortToHex(getColumn())).append("\n");
(-)src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java (-2 / +2 lines)
Lines 266-272 Link Here
266
266
267
    @Override
267
    @Override
268
    public String toString() {
268
    public String toString() {
269
        StringBuffer sb = new StringBuffer(256);
269
        StringBuilder sb = new StringBuilder(256);
270
270
271
        sb.append("[ftLbsData]\n");
271
        sb.append("[ftLbsData]\n");
272
        sb.append("    .unknownShort1 =").append(HexDump.shortToHex(_cbFContinued)).append("\n");
272
        sb.append("    .unknownShort1 =").append(HexDump.shortToHex(_cbFContinued)).append("\n");
Lines 404-410 Link Here
404
404
405
        @Override
405
        @Override
406
        public String toString(){
406
        public String toString(){
407
            StringBuffer sb = new StringBuffer();
407
            StringBuilder sb = new StringBuilder();
408
            sb.append("[LbsDropData]\n");
408
            sb.append("[LbsDropData]\n");
409
            sb.append("  ._wStyle:  ").append(_wStyle).append('\n');
409
            sb.append("  ._wStyle:  ").append(_wStyle).append('\n');
410
            sb.append("  ._cLine:  ").append(_cLine).append('\n');
410
            sb.append("  ._cLine:  ").append(_cLine).append('\n');
(-)src/java/org/apache/poi/hssf/record/LeftMarginRecord.java (-2 / +2 lines)
Lines 35-41 Link Here
35
35
36
    public String toString()
36
    public String toString()
37
    {
37
    {
38
        StringBuffer buffer = new StringBuffer();
38
        StringBuilder buffer = new StringBuilder();
39
        buffer.append( "[LeftMargin]\n" );
39
        buffer.append( "[LeftMargin]\n" );
40
        buffer.append( "    .margin               = " ).append( " (" ).append( getMargin() ).append( " )\n" );
40
        buffer.append( "    .margin               = " ).append( " (" ).append( getMargin() ).append( " )\n" );
41
        buffer.append( "[/LeftMargin]\n" );
41
        buffer.append( "[/LeftMargin]\n" );
Lines 75-78 Link Here
75
        rec.field_1_margin = this.field_1_margin;
75
        rec.field_1_margin = this.field_1_margin;
76
        return rec;
76
        return rec;
77
    }
77
    }
78
} 
78
} 
(-)src/java/org/apache/poi/hssf/record/MMSRecord.java (-1 / +1 lines)
Lines 93-99 Link Here
93
93
94
    public String toString()
94
    public String toString()
95
    {
95
    {
96
        StringBuffer buffer = new StringBuffer();
96
        StringBuilder buffer = new StringBuilder();
97
97
98
        buffer.append("[MMS]\n");
98
        buffer.append("[MMS]\n");
99
        buffer.append("    .addMenu        = ")
99
        buffer.append("    .addMenu        = ")
(-)src/java/org/apache/poi/hssf/record/MergeCellsRecord.java (-1 / +1 lines)
Lines 90-96 Link Here
90
90
91
    @Override
91
    @Override
92
    public String toString() {
92
    public String toString() {
93
        StringBuffer retval = new StringBuffer();
93
        StringBuilder retval = new StringBuilder();
94
94
95
        retval.append("[MERGEDCELLS]").append("\n");
95
        retval.append("[MERGEDCELLS]").append("\n");
96
        retval.append("     .numregions =").append(getNumAreas()).append("\n");
96
        retval.append("     .numregions =").append(getNumAreas()).append("\n");
(-)src/java/org/apache/poi/hssf/record/MulBlankRecord.java (-1 / +1 lines)
Lines 100-106 Link Here
100
	}
100
	}
101
101
102
	public String toString() {
102
	public String toString() {
103
		StringBuffer buffer = new StringBuffer();
103
		StringBuilder buffer = new StringBuilder();
104
104
105
		buffer.append("[MULBLANK]\n");
105
		buffer.append("[MULBLANK]\n");
106
		buffer.append("row  = ").append(Integer.toHexString(getRow())).append("\n");
106
		buffer.append("row  = ").append(Integer.toHexString(getRow())).append("\n");
(-)src/java/org/apache/poi/hssf/record/MulRKRecord.java (-1 / +1 lines)
Lines 102-108 Link Here
102
102
103
	@Override
103
	@Override
104
    public String toString() {
104
    public String toString() {
105
		StringBuffer buffer = new StringBuffer();
105
		StringBuilder buffer = new StringBuilder();
106
106
107
		buffer.append("[MULRK]\n");
107
		buffer.append("[MULRK]\n");
108
		buffer.append("	.row	 = ").append(HexDump.shortToHex(getRow())).append("\n");
108
		buffer.append("	.row	 = ").append(HexDump.shortToHex(getRow())).append("\n");
(-)src/java/org/apache/poi/hssf/record/NameCommentRecord.java (-1 / +1 lines)
Lines 112-118 Link Here
112
112
113
  @Override
113
  @Override
114
  public String toString() {
114
  public String toString() {
115
    final StringBuffer sb = new StringBuffer();
115
    final StringBuilder sb = new StringBuilder();
116
116
117
    sb.append("[NAMECMT]\n");
117
    sb.append("[NAMECMT]\n");
118
    sb.append("    .record type            = ").append(HexDump.shortToHex(field_1_record_type)).append("\n");
118
    sb.append("    .record type            = ").append(HexDump.shortToHex(field_1_record_type)).append("\n");
(-)src/java/org/apache/poi/hssf/record/NoteRecord.java (-1 / +1 lines)
Lines 125-131 Link Here
125
	 * Used by BiffViewer and other utilities.
125
	 * Used by BiffViewer and other utilities.
126
	 */
126
	 */
127
	public String toString() {
127
	public String toString() {
128
		StringBuffer buffer = new StringBuffer();
128
		StringBuilder buffer = new StringBuilder();
129
129
130
		buffer.append("[NOTE]\n");
130
		buffer.append("[NOTE]\n");
131
		buffer.append("    .row    = ").append(field_1_row).append("\n");
131
		buffer.append("    .row    = ").append(field_1_row).append("\n");
(-)src/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java (-1 / +1 lines)
Lines 68-74 Link Here
68
    @Override
68
    @Override
69
    public String toString()
69
    public String toString()
70
    {
70
    {
71
        StringBuffer buffer = new StringBuffer();
71
        StringBuilder buffer = new StringBuilder();
72
72
73
        buffer.append("[ftNts ]").append("\n");
73
        buffer.append("[ftNts ]").append("\n");
74
        buffer.append("  size     = ").append(getDataSize()).append("\n");
74
        buffer.append("  size     = ").append(getDataSize()).append("\n");
(-)src/java/org/apache/poi/hssf/record/ObjRecord.java (-1 / +1 lines)
Lines 135-141 Link Here
135
135
136
	@Override
136
	@Override
137
	public String toString() {
137
	public String toString() {
138
		StringBuffer sb = new StringBuffer();
138
		StringBuilder sb = new StringBuilder();
139
139
140
		sb.append("[OBJ]\n");
140
		sb.append("[OBJ]\n");
141
		if(subrecords != null) {	// there are special cases where this can be, see comments in constructor above
141
		if(subrecords != null) {	// there are special cases where this can be, see comments in constructor above
(-)src/java/org/apache/poi/hssf/record/ObjectProtectRecord.java (-1 / +1 lines)
Lines 73-79 Link Here
73
73
74
    public String toString()
74
    public String toString()
75
    {
75
    {
76
        StringBuffer buffer = new StringBuffer();
76
        StringBuilder buffer = new StringBuilder();
77
77
78
        buffer.append("[SCENARIOPROTECT]\n");
78
        buffer.append("[SCENARIOPROTECT]\n");
79
	    buffer.append("    .protect         = ").append(getProtect())
79
	    buffer.append("    .protect         = ").append(getProtect())
(-)src/java/org/apache/poi/hssf/record/OldSheetRecord.java (-1 / +1 lines)
Lines 74-80 Link Here
74
    }
74
    }
75
75
76
    public String toString() {
76
    public String toString() {
77
        StringBuffer buffer = new StringBuffer();
77
        StringBuilder buffer = new StringBuilder();
78
78
79
        buffer.append("[BOUNDSHEET]\n");
79
        buffer.append("[BOUNDSHEET]\n");
80
        buffer.append("    .bof        = ").append(HexDump.intToHex(getPositionOfBof())).append("\n");
80
        buffer.append("    .bof        = ").append(HexDump.intToHex(getPositionOfBof())).append("\n");
(-)src/java/org/apache/poi/hssf/record/OldStringRecord.java (-1 / +1 lines)
Lines 92-98 Link Here
92
92
93
    public String toString()
93
    public String toString()
94
    {
94
    {
95
        StringBuffer buffer = new StringBuffer();
95
        StringBuilder buffer = new StringBuilder();
96
96
97
        buffer.append("[OLD STRING]\n");
97
        buffer.append("[OLD STRING]\n");
98
        buffer.append("    .string            = ")
98
        buffer.append("    .string            = ")
(-)src/java/org/apache/poi/hssf/record/PageBreakRecord.java (-1 / +1 lines)
Lines 119-125 Link Here
119
    }
119
    }
120
120
121
    public String toString() {
121
    public String toString() {
122
        StringBuffer retval = new StringBuffer();
122
        StringBuilder retval = new StringBuilder();
123
123
124
        String label;
124
        String label;
125
        String mainLabel;
125
        String mainLabel;
(-)src/java/org/apache/poi/hssf/record/PaletteRecord.java (-2 / +2 lines)
Lines 54-60 Link Here
54
54
55
    @Override
55
    @Override
56
    public String toString() {
56
    public String toString() {
57
        StringBuffer buffer = new StringBuffer();
57
        StringBuilder buffer = new StringBuilder();
58
58
59
        buffer.append("[PALETTE]\n");
59
        buffer.append("[PALETTE]\n");
60
        buffer.append("  numcolors     = ").append(_colors.size()).append('\n');
60
        buffer.append("  numcolors     = ").append(_colors.size()).append('\n');
Lines 233-239 Link Here
233
233
234
        @Override
234
        @Override
235
        public String toString() {
235
        public String toString() {
236
            StringBuffer buffer = new StringBuffer();
236
            StringBuilder buffer = new StringBuilder();
237
            buffer.append("  red   = ").append(_red & 0xff).append('\n');
237
            buffer.append("  red   = ").append(_red & 0xff).append('\n');
238
            buffer.append("  green = ").append(_green & 0xff).append('\n');
238
            buffer.append("  green = ").append(_green & 0xff).append('\n');
239
            buffer.append("  blue  = ").append(_blue & 0xff).append('\n');
239
            buffer.append("  blue  = ").append(_blue & 0xff).append('\n');
(-)src/java/org/apache/poi/hssf/record/PaneRecord.java (-1 / +1 lines)
Lines 54-60 Link Here
54
    @Override
54
    @Override
55
    public String toString()
55
    public String toString()
56
    {
56
    {
57
        StringBuffer buffer = new StringBuffer();
57
        StringBuilder buffer = new StringBuilder();
58
58
59
        buffer.append("[PANE]\n");
59
        buffer.append("[PANE]\n");
60
        buffer.append("    .x                    = ")
60
        buffer.append("    .x                    = ")
(-)src/java/org/apache/poi/hssf/record/PasswordRecord.java (-1 / +1 lines)
Lines 57-63 Link Here
57
    }
57
    }
58
58
59
    public String toString() {
59
    public String toString() {
60
        StringBuffer buffer = new StringBuffer();
60
        StringBuilder buffer = new StringBuilder();
61
61
62
        buffer.append("[PASSWORD]\n");
62
        buffer.append("[PASSWORD]\n");
63
        buffer.append("    .password = ").append(HexDump.shortToHex(field_1_password)).append("\n");
63
        buffer.append("    .password = ").append(HexDump.shortToHex(field_1_password)).append("\n");
(-)src/java/org/apache/poi/hssf/record/PasswordRev4Record.java (-1 / +1 lines)
Lines 47-53 Link Here
47
    }
47
    }
48
48
49
    public String toString() {
49
    public String toString() {
50
        StringBuffer buffer = new StringBuffer();
50
        StringBuilder buffer = new StringBuilder();
51
51
52
        buffer.append("[PROT4REVPASSWORD]\n");
52
        buffer.append("[PROT4REVPASSWORD]\n");
53
        buffer.append("    .password = ").append(HexDump.shortToHex(field_1_password)).append("\n");
53
        buffer.append("    .password = ").append(HexDump.shortToHex(field_1_password)).append("\n");
(-)src/java/org/apache/poi/hssf/record/PrintSetupRecord.java (-1 / +1 lines)
Lines 279-285 Link Here
279
279
280
    public String toString()
280
    public String toString()
281
    {
281
    {
282
        StringBuffer buffer = new StringBuffer();
282
        StringBuilder buffer = new StringBuilder();
283
283
284
        buffer.append("[PRINTSETUP]\n");
284
        buffer.append("[PRINTSETUP]\n");
285
        buffer.append("    .papersize      = ").append(getPaperSize())
285
        buffer.append("    .papersize      = ").append(getPaperSize())
(-)src/java/org/apache/poi/hssf/record/ProtectRecord.java (-1 / +1 lines)
Lines 66-72 Link Here
66
    }
66
    }
67
67
68
    public String toString() {
68
    public String toString() {
69
        StringBuffer buffer = new StringBuffer();
69
        StringBuilder buffer = new StringBuilder();
70
70
71
        buffer.append("[PROTECT]\n");
71
        buffer.append("[PROTECT]\n");
72
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
72
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
(-)src/java/org/apache/poi/hssf/record/ProtectionRev4Record.java (-1 / +1 lines)
Lines 64-70 Link Here
64
    }
64
    }
65
65
66
    public String toString() {
66
    public String toString() {
67
        StringBuffer buffer = new StringBuffer();
67
        StringBuilder buffer = new StringBuilder();
68
68
69
        buffer.append("[PROT4REV]\n");
69
        buffer.append("[PROT4REV]\n");
70
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
70
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
(-)src/java/org/apache/poi/hssf/record/RecalcIdRecord.java (-1 / +1 lines)
Lines 68-74 Link Here
68
    }
68
    }
69
69
70
    public String toString() {
70
    public String toString() {
71
        StringBuffer buffer = new StringBuffer();
71
        StringBuilder buffer = new StringBuilder();
72
72
73
        buffer.append("[RECALCID]\n");
73
        buffer.append("[RECALCID]\n");
74
        buffer.append("    .reserved = ").append(HexDump.shortToHex(_reserved0)).append("\n");
74
        buffer.append("    .reserved = ").append(HexDump.shortToHex(_reserved0)).append("\n");
(-)src/java/org/apache/poi/hssf/record/RefModeRecord.java (-1 / +1 lines)
Lines 74-80 Link Here
74
74
75
    public String toString()
75
    public String toString()
76
    {
76
    {
77
        StringBuffer buffer = new StringBuffer();
77
        StringBuilder buffer = new StringBuilder();
78
78
79
        buffer.append("[REFMODE]\n");
79
        buffer.append("[REFMODE]\n");
80
        buffer.append("    .mode           = ")
80
        buffer.append("    .mode           = ")
(-)src/java/org/apache/poi/hssf/record/RefreshAllRecord.java (-1 / +1 lines)
Lines 65-71 Link Here
65
    }
65
    }
66
66
67
    public String toString() {
67
    public String toString() {
68
        StringBuffer buffer = new StringBuffer();
68
        StringBuilder buffer = new StringBuilder();
69
69
70
        buffer.append("[REFRESHALL]\n");
70
        buffer.append("[REFRESHALL]\n");
71
        buffer.append("    .options      = ").append(HexDump.shortToHex(_options)).append("\n");
71
        buffer.append("    .options      = ").append(HexDump.shortToHex(_options)).append("\n");
(-)src/java/org/apache/poi/hssf/record/RightMarginRecord.java (-2 / +2 lines)
Lines 35-41 Link Here
35
35
36
    public String toString()
36
    public String toString()
37
    {
37
    {
38
        StringBuffer buffer = new StringBuffer();
38
        StringBuilder buffer = new StringBuilder();
39
        buffer.append( "[RightMargin]\n" );
39
        buffer.append( "[RightMargin]\n" );
40
        buffer.append( "    .margin               = " ).append( " (" ).append( getMargin() ).append( " )\n" );
40
        buffer.append( "    .margin               = " ).append( " (" ).append( getMargin() ).append( " )\n" );
41
        buffer.append( "[/RightMargin]\n" );
41
        buffer.append( "[/RightMargin]\n" );
Lines 69-72 Link Here
69
        rec.field_1_margin = this.field_1_margin;
69
        rec.field_1_margin = this.field_1_margin;
70
        return rec;
70
        return rec;
71
    }
71
    }
72
}  // END OF
72
}  // END OF
(-)src/java/org/apache/poi/hssf/record/RowRecord.java (-1 / +1 lines)
Lines 366-372 Link Here
366
    }
366
    }
367
    
367
    
368
    public String toString() {
368
    public String toString() {
369
        StringBuffer sb = new StringBuffer();
369
        StringBuilder sb = new StringBuilder();
370
370
371
        sb.append("[ROW]\n");
371
        sb.append("[ROW]\n");
372
        sb.append("    .rownumber      = ").append(Integer.toHexString(getRowNumber()))
372
        sb.append("    .rownumber      = ").append(Integer.toHexString(getRowNumber()))
(-)src/java/org/apache/poi/hssf/record/SCLRecord.java (-1 / +1 lines)
Lines 44-50 Link Here
44
    @Override
44
    @Override
45
    public String toString()
45
    public String toString()
46
    {
46
    {
47
        StringBuffer buffer = new StringBuffer();
47
        StringBuilder buffer = new StringBuilder();
48
48
49
        buffer.append("[SCL]\n");
49
        buffer.append("[SCL]\n");
50
        buffer.append("    .numerator            = ")
50
        buffer.append("    .numerator            = ")
(-)src/java/org/apache/poi/hssf/record/ScenarioProtectRecord.java (-1 / +1 lines)
Lines 76-82 Link Here
76
76
77
    public String toString()
77
    public String toString()
78
    {
78
    {
79
        StringBuffer buffer = new StringBuffer();
79
        StringBuilder buffer = new StringBuilder();
80
80
81
        buffer.append("[SCENARIOPROTECT]\n");
81
        buffer.append("[SCENARIOPROTECT]\n");
82
	    buffer.append("    .protect         = ").append(getProtect())
82
	    buffer.append("    .protect         = ").append(getProtect())
(-)src/java/org/apache/poi/hssf/record/TabIdRecord.java (-1 / +1 lines)
Lines 52-58 Link Here
52
    }
52
    }
53
53
54
    public String toString() {
54
    public String toString() {
55
        StringBuffer buffer = new StringBuffer();
55
        StringBuilder buffer = new StringBuilder();
56
56
57
        buffer.append("[TABID]\n");
57
        buffer.append("[TABID]\n");
58
        buffer.append("    .elements        = ").append(_tabids.length).append("\n");
58
        buffer.append("    .elements        = ").append(_tabids.length).append("\n");
(-)src/java/org/apache/poi/hssf/record/TableStylesRecord.java (-1 / +1 lines)
Lines 76-82 Link Here
76
76
77
	@Override
77
	@Override
78
	public String toString() {
78
	public String toString() {
79
		StringBuffer buffer = new StringBuffer();
79
		StringBuilder buffer = new StringBuilder();
80
80
81
		buffer.append("[TABLESTYLES]\n");
81
		buffer.append("[TABLESTYLES]\n");
82
		buffer.append("    .rt      =").append(HexDump.shortToHex(rt)).append('\n');
82
		buffer.append("    .rt      =").append(HexDump.shortToHex(rt)).append('\n');
(-)src/java/org/apache/poi/hssf/record/TopMarginRecord.java (-2 / +2 lines)
Lines 38-44 Link Here
38
38
39
    public String toString()
39
    public String toString()
40
    {
40
    {
41
        StringBuffer buffer = new StringBuffer();
41
        StringBuilder buffer = new StringBuilder();
42
        buffer.append( "[TopMargin]\n" );
42
        buffer.append( "[TopMargin]\n" );
43
        buffer.append( "    .margin               = " ).append( " (" ).append( getMargin() ).append( " )\n" );
43
        buffer.append( "    .margin               = " ).append( " (" ).append( getMargin() ).append( " )\n" );
44
        buffer.append( "[/TopMargin]\n" );
44
        buffer.append( "[/TopMargin]\n" );
Lines 72-75 Link Here
72
        rec.field_1_margin = this.field_1_margin;
72
        rec.field_1_margin = this.field_1_margin;
73
        return rec;
73
        return rec;
74
    }
74
    }
75
}  // END OF 
75
}  // END OF 
(-)src/java/org/apache/poi/hssf/record/UncalcedRecord.java (-1 / +1 lines)
Lines 45-51 Link Here
45
	}
45
	}
46
46
47
	public String toString() {
47
	public String toString() {
48
		StringBuffer buffer = new StringBuffer();
48
		StringBuilder buffer = new StringBuilder();
49
		buffer.append("[UNCALCED]\n");
49
		buffer.append("[UNCALCED]\n");
50
        buffer.append("    _reserved: ").append(_reserved).append('\n');
50
        buffer.append("    _reserved: ").append(_reserved).append('\n');
51
		buffer.append("[/UNCALCED]\n");
51
		buffer.append("[/UNCALCED]\n");
(-)src/java/org/apache/poi/hssf/record/UseSelFSRecord.java (-1 / +1 lines)
Lines 49-55 Link Here
49
    }
49
    }
50
50
51
    public String toString() {
51
    public String toString() {
52
        StringBuffer buffer = new StringBuffer();
52
        StringBuilder buffer = new StringBuilder();
53
53
54
        buffer.append("[USESELFS]\n");
54
        buffer.append("[USESELFS]\n");
55
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
55
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
(-)src/java/org/apache/poi/hssf/record/VCenterRecord.java (-1 / +1 lines)
Lines 63-69 Link Here
63
63
64
    public String toString()
64
    public String toString()
65
    {
65
    {
66
        StringBuffer buffer = new StringBuffer();
66
        StringBuilder buffer = new StringBuilder();
67
67
68
        buffer.append("[VCENTER]\n");
68
        buffer.append("[VCENTER]\n");
69
        buffer.append("    .vcenter        = ").append(getVCenter())
69
        buffer.append("    .vcenter        = ").append(getVCenter())
(-)src/java/org/apache/poi/hssf/record/WindowProtectRecord.java (-1 / +1 lines)
Lines 65-71 Link Here
65
    }
65
    }
66
66
67
    public String toString() {
67
    public String toString() {
68
        StringBuffer buffer = new StringBuffer();
68
        StringBuilder buffer = new StringBuilder();
69
69
70
        buffer.append("[WINDOWPROTECT]\n");
70
        buffer.append("[WINDOWPROTECT]\n");
71
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
71
        buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");
(-)src/java/org/apache/poi/hssf/record/WriteAccessRecord.java (-1 / +1 lines)
Lines 117-123 Link Here
117
	}
117
	}
118
118
119
	public String toString() {
119
	public String toString() {
120
		StringBuffer buffer = new StringBuffer();
120
		StringBuilder buffer = new StringBuilder();
121
121
122
		buffer.append("[WRITEACCESS]\n");
122
		buffer.append("[WRITEACCESS]\n");
123
		buffer.append("    .name = ").append(field_1_username).append("\n");
123
		buffer.append("    .name = ").append(field_1_username).append("\n");
(-)src/java/org/apache/poi/hssf/record/WriteProtectRecord.java (-1 / +1 lines)
Lines 44-50 Link Here
44
44
45
    public String toString()
45
    public String toString()
46
    {
46
    {
47
        StringBuffer buffer = new StringBuffer();
47
        StringBuilder buffer = new StringBuilder();
48
48
49
        buffer.append("[WRITEPROTECT]\n");
49
        buffer.append("[WRITEPROTECT]\n");
50
        buffer.append("[/WRITEPROTECT]\n");
50
        buffer.append("[/WRITEPROTECT]\n");
(-)src/java/org/apache/poi/hssf/record/cf/BorderFormatting.java (-1 / +1 lines)
Lines 430-436 Link Here
430
430
431
431
432
    public String toString() {
432
    public String toString() {
433
        StringBuffer buffer = new StringBuffer();
433
        StringBuilder buffer = new StringBuilder();
434
        buffer.append("    [Border Formatting]\n");
434
        buffer.append("    [Border Formatting]\n");
435
        buffer.append("          .lftln     = ").append(Integer.toHexString(getBorderLeft())).append("\n");
435
        buffer.append("          .lftln     = ").append(Integer.toHexString(getBorderLeft())).append("\n");
436
        buffer.append("          .rgtln     = ").append(Integer.toHexString(getBorderRight())).append("\n");
436
        buffer.append("          .rgtln     = ").append(Integer.toHexString(getBorderRight())).append("\n");
(-)src/java/org/apache/poi/hssf/record/cf/ColorGradientFormatting.java (-1 / +1 lines)
Lines 119-125 Link Here
119
    }    
119
    }    
120
    
120
    
121
    public String toString() {
121
    public String toString() {
122
        StringBuffer buffer = new StringBuffer();
122
        StringBuilder buffer = new StringBuilder();
123
        buffer.append("    [Color Gradient Formatting]\n");
123
        buffer.append("    [Color Gradient Formatting]\n");
124
        buffer.append("          .clamp     = ").append(isClampToCurve()).append("\n");
124
        buffer.append("          .clamp     = ").append(isClampToCurve()).append("\n");
125
        buffer.append("          .background= ").append(isAppliesToBackground()).append("\n");
125
        buffer.append("          .background= ").append(isAppliesToBackground()).append("\n");
(-)src/java/org/apache/poi/hssf/record/cf/DataBarFormatting.java (-1 / +1 lines)
Lines 119-125 Link Here
119
    }
119
    }
120
    
120
    
121
    public String toString() {
121
    public String toString() {
122
        StringBuffer buffer = new StringBuffer();
122
        StringBuilder buffer = new StringBuilder();
123
        buffer.append("    [Data Bar Formatting]\n");
123
        buffer.append("    [Data Bar Formatting]\n");
124
        buffer.append("          .icon_only= ").append(isIconOnly()).append("\n");
124
        buffer.append("          .icon_only= ").append(isIconOnly()).append("\n");
125
        buffer.append("          .reversed = ").append(isReversed()).append("\n");
125
        buffer.append("          .reversed = ").append(isReversed()).append("\n");
(-)src/java/org/apache/poi/hssf/record/cf/IconMultiStateFormatting.java (-1 / +1 lines)
Lines 97-103 Link Here
97
    }
97
    }
98
    
98
    
99
    public String toString() {
99
    public String toString() {
100
        StringBuffer buffer = new StringBuffer();
100
        StringBuilder buffer = new StringBuilder();
101
        buffer.append("    [Icon Formatting]\n");
101
        buffer.append("    [Icon Formatting]\n");
102
        buffer.append("          .icon_set = ").append(iconSet).append("\n");
102
        buffer.append("          .icon_set = ").append(iconSet).append("\n");
103
        buffer.append("          .icon_only= ").append(isIconOnly()).append("\n");
103
        buffer.append("          .icon_only= ").append(isIconOnly()).append("\n");
(-)src/java/org/apache/poi/hssf/record/cf/PatternFormatting.java (-1 / +1 lines)
Lines 156-162 Link Here
156
    }
156
    }
157
    
157
    
158
    public String toString() {
158
    public String toString() {
159
        StringBuffer buffer = new StringBuffer();
159
        StringBuilder buffer = new StringBuilder();
160
        buffer.append("    [Pattern Formatting]\n");
160
        buffer.append("    [Pattern Formatting]\n");
161
        buffer.append("          .fillpattern= ").append(Integer.toHexString(getFillPattern())).append("\n");
161
        buffer.append("          .fillpattern= ").append(Integer.toHexString(getFillPattern())).append("\n");
162
        buffer.append("          .fgcoloridx= ").append(Integer.toHexString(getFillForegroundColor())).append("\n");
162
        buffer.append("          .fgcoloridx= ").append(Integer.toHexString(getFillForegroundColor())).append("\n");
(-)src/java/org/apache/poi/hssf/record/cf/Threshold.java (-1 / +1 lines)
Lines 102-108 Link Here
102
    }
102
    }
103
103
104
    public String toString() {
104
    public String toString() {
105
        StringBuffer buffer = new StringBuffer();
105
        StringBuilder buffer = new StringBuilder();
106
        buffer.append("    [CF Threshold]\n");
106
        buffer.append("    [CF Threshold]\n");
107
        buffer.append("          .type    = ").append(Integer.toHexString(type)).append("\n");
107
        buffer.append("          .type    = ").append(Integer.toHexString(type)).append("\n");
108
        buffer.append("          .formula = ").append(Arrays.toString(formula.getTokens())).append("\n");
108
        buffer.append("          .formula = ").append(Arrays.toString(formula.getTokens())).append("\n");
(-)src/java/org/apache/poi/hssf/record/chart/AreaFormatRecord.java (-1 / +1 lines)
Lines 61-67 Link Here
61
61
62
    public String toString()
62
    public String toString()
63
    {
63
    {
64
        StringBuffer buffer = new StringBuffer();
64
        StringBuilder buffer = new StringBuilder();
65
65
66
        buffer.append("[AREAFORMAT]\n");
66
        buffer.append("[AREAFORMAT]\n");
67
        buffer.append("    .foregroundColor      = ")
67
        buffer.append("    .foregroundColor      = ")
(-)src/java/org/apache/poi/hssf/record/chart/AreaRecord.java (-1 / +1 lines)
Lines 50-56 Link Here
50
50
51
    public String toString()
51
    public String toString()
52
    {
52
    {
53
        StringBuffer buffer = new StringBuffer();
53
        StringBuilder buffer = new StringBuilder();
54
54
55
        buffer.append("[AREA]\n");
55
        buffer.append("[AREA]\n");
56
        buffer.append("    .formatFlags          = ")
56
        buffer.append("    .formatFlags          = ")
(-)src/java/org/apache/poi/hssf/record/chart/AxisLineFormatRecord.java (-1 / +1 lines)
Lines 48-54 Link Here
48
48
49
    public String toString()
49
    public String toString()
50
    {
50
    {
51
        StringBuffer buffer = new StringBuffer();
51
        StringBuilder buffer = new StringBuilder();
52
52
53
        buffer.append("[AXISLINEFORMAT]\n");
53
        buffer.append("[AXISLINEFORMAT]\n");
54
        buffer.append("    .axisType             = ")
54
        buffer.append("    .axisType             = ")
(-)src/java/org/apache/poi/hssf/record/chart/AxisOptionsRecord.java (-1 / +1 lines)
Lines 72-78 Link Here
72
72
73
    public String toString()
73
    public String toString()
74
    {
74
    {
75
        StringBuffer buffer = new StringBuffer();
75
        StringBuilder buffer = new StringBuilder();
76
76
77
        buffer.append("[AXCEXT]\n");
77
        buffer.append("[AXCEXT]\n");
78
        buffer.append("    .minimumCategory      = ")
78
        buffer.append("    .minimumCategory      = ")
(-)src/java/org/apache/poi/hssf/record/chart/AxisParentRecord.java (-1 / +1 lines)
Lines 54-60 Link Here
54
54
55
    public String toString()
55
    public String toString()
56
    {
56
    {
57
        StringBuffer buffer = new StringBuffer();
57
        StringBuilder buffer = new StringBuilder();
58
58
59
        buffer.append("[AXISPARENT]\n");
59
        buffer.append("[AXISPARENT]\n");
60
        buffer.append("    .axisType             = ")
60
        buffer.append("    .axisType             = ")
(-)src/java/org/apache/poi/hssf/record/chart/AxisRecord.java (-1 / +1 lines)
Lines 55-61 Link Here
55
55
56
    public String toString()
56
    public String toString()
57
    {
57
    {
58
        StringBuffer buffer = new StringBuffer();
58
        StringBuilder buffer = new StringBuilder();
59
59
60
        buffer.append("[AXIS]\n");
60
        buffer.append("[AXIS]\n");
61
        buffer.append("    .axisType             = ")
61
        buffer.append("    .axisType             = ")
(-)src/java/org/apache/poi/hssf/record/chart/AxisUsedRecord.java (-1 / +1 lines)
Lines 44-50 Link Here
44
44
45
    public String toString()
45
    public String toString()
46
    {
46
    {
47
        StringBuffer buffer = new StringBuffer();
47
        StringBuilder buffer = new StringBuilder();
48
48
49
        buffer.append("[AXISUSED]\n");
49
        buffer.append("[AXISUSED]\n");
50
        buffer.append("    .numAxis              = ")
50
        buffer.append("    .numAxis              = ")
(-)src/java/org/apache/poi/hssf/record/chart/BarRecord.java (-1 / +1 lines)
Lines 56-62 Link Here
56
56
57
    public String toString()
57
    public String toString()
58
    {
58
    {
59
        StringBuffer buffer = new StringBuffer();
59
        StringBuilder buffer = new StringBuilder();
60
60
61
        buffer.append("[BAR]\n");
61
        buffer.append("[BAR]\n");
62
        buffer.append("    .barSpace             = ")
62
        buffer.append("    .barSpace             = ")
(-)src/java/org/apache/poi/hssf/record/chart/BeginRecord.java (-1 / +1 lines)
Lines 45-51 Link Here
45
45
46
    public String toString()
46
    public String toString()
47
    {
47
    {
48
        StringBuffer buffer = new StringBuffer();
48
        StringBuilder buffer = new StringBuilder();
49
49
50
        buffer.append("[BEGIN]\n");
50
        buffer.append("[BEGIN]\n");
51
        buffer.append("[/BEGIN]\n");
51
        buffer.append("[/BEGIN]\n");
(-)src/java/org/apache/poi/hssf/record/chart/CatLabRecord.java (-1 / +1 lines)
Lines 75-81 Link Here
75
75
76
	@Override
76
	@Override
77
	public String toString() {
77
	public String toString() {
78
		StringBuffer buffer = new StringBuffer();
78
		StringBuilder buffer = new StringBuilder();
79
79
80
		buffer.append("[CATLAB]\n");
80
		buffer.append("[CATLAB]\n");
81
		buffer.append("    .rt      =").append(HexDump.shortToHex(rt)).append('\n');
81
		buffer.append("    .rt      =").append(HexDump.shortToHex(rt)).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/CategorySeriesAxisRecord.java (-1 / +1 lines)
Lines 57-63 Link Here
57
57
58
    public String toString()
58
    public String toString()
59
    {
59
    {
60
        StringBuffer buffer = new StringBuffer();
60
        StringBuilder buffer = new StringBuilder();
61
61
62
        buffer.append("[CATSERRANGE]\n");
62
        buffer.append("[CATSERRANGE]\n");
63
        buffer.append("    .crossingPoint        = ")
63
        buffer.append("    .crossingPoint        = ")
(-)src/java/org/apache/poi/hssf/record/chart/ChartEndBlockRecord.java (-1 / +1 lines)
Lines 73-79 Link Here
73
73
74
	@Override
74
	@Override
75
	public String toString() {
75
	public String toString() {
76
		StringBuffer buffer = new StringBuffer();
76
		StringBuilder buffer = new StringBuilder();
77
77
78
		buffer.append("[ENDBLOCK]\n");
78
		buffer.append("[ENDBLOCK]\n");
79
		buffer.append("    .rt         =").append(HexDump.shortToHex(rt)).append('\n');
79
		buffer.append("    .rt         =").append(HexDump.shortToHex(rt)).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/ChartEndObjectRecord.java (-1 / +1 lines)
Lines 71-77 Link Here
71
71
72
	@Override
72
	@Override
73
	public String toString() {
73
	public String toString() {
74
		StringBuffer buffer = new StringBuffer();
74
		StringBuilder buffer = new StringBuilder();
75
75
76
		buffer.append("[ENDOBJECT]\n");
76
		buffer.append("[ENDOBJECT]\n");
77
		buffer.append("    .rt         =").append(HexDump.shortToHex(rt)).append('\n');
77
		buffer.append("    .rt         =").append(HexDump.shortToHex(rt)).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/ChartFRTInfoRecord.java (-1 / +1 lines)
Lines 91-97 Link Here
91
91
92
	@Override
92
	@Override
93
	public String toString() {
93
	public String toString() {
94
		StringBuffer buffer = new StringBuffer();
94
		StringBuilder buffer = new StringBuilder();
95
95
96
		buffer.append("[CHARTFRTINFO]\n");
96
		buffer.append("[CHARTFRTINFO]\n");
97
		buffer.append("    .rt           =").append(HexDump.shortToHex(rt)).append('\n');
97
		buffer.append("    .rt           =").append(HexDump.shortToHex(rt)).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/ChartFormatRecord.java (-1 / +1 lines)
Lines 57-63 Link Here
57
    }
57
    }
58
58
59
    public String toString() {
59
    public String toString() {
60
        StringBuffer buffer = new StringBuffer();
60
        StringBuilder buffer = new StringBuilder();
61
61
62
        buffer.append("[CHARTFORMAT]\n");
62
        buffer.append("[CHARTFORMAT]\n");
63
        buffer.append("    .xPosition       = ").append(getXPosition()).append("\n");
63
        buffer.append("    .xPosition       = ").append(getXPosition()).append("\n");
(-)src/java/org/apache/poi/hssf/record/chart/ChartRecord.java (-1 / +1 lines)
Lines 58-64 Link Here
58
    }
58
    }
59
59
60
    public String toString() {
60
    public String toString() {
61
        StringBuffer sb = new StringBuffer();
61
        StringBuilder sb = new StringBuilder();
62
62
63
        sb.append("[CHART]\n");
63
        sb.append("[CHART]\n");
64
        sb.append("    .x     = ").append(getX()).append('\n');
64
        sb.append("    .x     = ").append(getX()).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/ChartStartBlockRecord.java (-1 / +1 lines)
Lines 69-75 Link Here
69
69
70
	public String toString() {
70
	public String toString() {
71
71
72
		StringBuffer buffer = new StringBuffer();
72
		StringBuilder buffer = new StringBuilder();
73
73
74
		buffer.append("[STARTBLOCK]\n");
74
		buffer.append("[STARTBLOCK]\n");
75
		buffer.append("    .rt              =").append(HexDump.shortToHex(rt)).append('\n');
75
		buffer.append("    .rt              =").append(HexDump.shortToHex(rt)).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/ChartStartObjectRecord.java (-1 / +1 lines)
Lines 66-72 Link Here
66
66
67
	public String toString() {
67
	public String toString() {
68
68
69
		StringBuffer buffer = new StringBuffer();
69
		StringBuilder buffer = new StringBuilder();
70
70
71
		buffer.append("[STARTOBJECT]\n");
71
		buffer.append("[STARTOBJECT]\n");
72
		buffer.append("    .rt              =").append(HexDump.shortToHex(rt)).append('\n');
72
		buffer.append("    .rt              =").append(HexDump.shortToHex(rt)).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/ChartTitleFormatRecord.java (-1 / +1 lines)
Lines 102-108 Link Here
102
	}
102
	}
103
	
103
	
104
	public String toString() {
104
	public String toString() {
105
        StringBuffer buffer = new StringBuffer();
105
        StringBuilder buffer = new StringBuilder();
106
106
107
        buffer.append("[CHARTTITLEFORMAT]\n");
107
        buffer.append("[CHARTTITLEFORMAT]\n");
108
        buffer.append("    .format_runs       = ").append(_formats.length).append("\n");
108
        buffer.append("    .format_runs       = ").append(_formats.length).append("\n");
(-)src/java/org/apache/poi/hssf/record/chart/DatRecord.java (-1 / +1 lines)
Lines 50-56 Link Here
50
50
51
    public String toString()
51
    public String toString()
52
    {
52
    {
53
        StringBuffer buffer = new StringBuffer();
53
        StringBuilder buffer = new StringBuilder();
54
54
55
        buffer.append("[DAT]\n");
55
        buffer.append("[DAT]\n");
56
        buffer.append("    .options              = ")
56
        buffer.append("    .options              = ")
(-)src/java/org/apache/poi/hssf/record/chart/DataFormatRecord.java (-1 / +1 lines)
Lines 53-59 Link Here
53
53
54
    public String toString()
54
    public String toString()
55
    {
55
    {
56
        StringBuffer buffer = new StringBuffer();
56
        StringBuilder buffer = new StringBuilder();
57
57
58
        buffer.append("[DATAFORMAT]\n");
58
        buffer.append("[DATAFORMAT]\n");
59
        buffer.append("    .pointNumber          = ")
59
        buffer.append("    .pointNumber          = ")
(-)src/java/org/apache/poi/hssf/record/chart/DataLabelExtensionRecord.java (-1 / +1 lines)
Lines 57-63 Link Here
57
57
58
	@Override
58
	@Override
59
	public String toString() {
59
	public String toString() {
60
		StringBuffer buffer = new StringBuffer();
60
		StringBuilder buffer = new StringBuilder();
61
61
62
		buffer.append("[DATALABEXT]\n");
62
		buffer.append("[DATALABEXT]\n");
63
		buffer.append("    .rt      =").append(HexDump.shortToHex(rt)).append('\n');
63
		buffer.append("    .rt      =").append(HexDump.shortToHex(rt)).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/DefaultDataLabelTextPropertiesRecord.java (-1 / +1 lines)
Lines 45-51 Link Here
45
45
46
    public String toString()
46
    public String toString()
47
    {
47
    {
48
        StringBuffer buffer = new StringBuffer();
48
        StringBuilder buffer = new StringBuilder();
49
49
50
        buffer.append("[DEFAULTTEXT]\n");
50
        buffer.append("[DEFAULTTEXT]\n");
51
        buffer.append("    .categoryDataType     = ")
51
        buffer.append("    .categoryDataType     = ")
(-)src/java/org/apache/poi/hssf/record/chart/EndRecord.java (-1 / +1 lines)
Lines 46-52 Link Here
46
46
47
    public String toString()
47
    public String toString()
48
    {
48
    {
49
        StringBuffer buffer = new StringBuffer();
49
        StringBuilder buffer = new StringBuilder();
50
50
51
        buffer.append("[END]\n");
51
        buffer.append("[END]\n");
52
        buffer.append("[/END]\n");
52
        buffer.append("[/END]\n");
(-)src/java/org/apache/poi/hssf/record/chart/FontBasisRecord.java (-1 / +1 lines)
Lines 50-56 Link Here
50
50
51
    public String toString()
51
    public String toString()
52
    {
52
    {
53
        StringBuffer buffer = new StringBuffer();
53
        StringBuilder buffer = new StringBuilder();
54
54
55
        buffer.append("[FBI]\n");
55
        buffer.append("[FBI]\n");
56
        buffer.append("    .xBasis               = ")
56
        buffer.append("    .xBasis               = ")
(-)src/java/org/apache/poi/hssf/record/chart/FontIndexRecord.java (-1 / +1 lines)
Lines 44-50 Link Here
44
44
45
    public String toString()
45
    public String toString()
46
    {
46
    {
47
        StringBuffer buffer = new StringBuffer();
47
        StringBuilder buffer = new StringBuilder();
48
48
49
        buffer.append("[FONTX]\n");
49
        buffer.append("[FONTX]\n");
50
        buffer.append("    .fontIndex            = ")
50
        buffer.append("    .fontIndex            = ")
(-)src/java/org/apache/poi/hssf/record/chart/FrameRecord.java (-2 / +2 lines)
Lines 52-58 Link Here
52
52
53
    public String toString()
53
    public String toString()
54
    {
54
    {
55
        StringBuffer buffer = new StringBuffer();
55
        StringBuilder buffer = new StringBuilder();
56
56
57
        buffer.append("[FRAME]\n");
57
        buffer.append("[FRAME]\n");
58
        buffer.append("    .borderType           = ")
58
        buffer.append("    .borderType           = ")
Lines 172-175 Link Here
172
    {
172
    {
173
        return autoPosition.isSet(field_2_options);
173
        return autoPosition.isSet(field_2_options);
174
    }
174
    }
175
}
175
}
(-)src/java/org/apache/poi/hssf/record/chart/LegendRecord.java (-1 / +1 lines)
Lines 73-79 Link Here
73
73
74
    public String toString()
74
    public String toString()
75
    {
75
    {
76
        StringBuffer buffer = new StringBuffer();
76
        StringBuilder buffer = new StringBuilder();
77
77
78
        buffer.append("[LEGEND]\n");
78
        buffer.append("[LEGEND]\n");
79
        buffer.append("    .xAxisUpperLeft       = ")
79
        buffer.append("    .xAxisUpperLeft       = ")
(-)src/java/org/apache/poi/hssf/record/chart/LineFormatRecord.java (-1 / +1 lines)
Lines 71-77 Link Here
71
71
72
    public String toString()
72
    public String toString()
73
    {
73
    {
74
        StringBuffer buffer = new StringBuffer();
74
        StringBuilder buffer = new StringBuilder();
75
75
76
        buffer.append("[LINEFORMAT]\n");
76
        buffer.append("[LINEFORMAT]\n");
77
        buffer.append("    .lineColor            = ")
77
        buffer.append("    .lineColor            = ")
(-)src/java/org/apache/poi/hssf/record/chart/LinkedDataRecord.java (-1 / +1 lines)
Lines 66-72 Link Here
66
    }
66
    }
67
67
68
    public String toString() {
68
    public String toString() {
69
        StringBuffer buffer = new StringBuffer();
69
        StringBuilder buffer = new StringBuilder();
70
70
71
        buffer.append("[AI]\n");
71
        buffer.append("[AI]\n");
72
        buffer.append("    .linkType             = ").append(HexDump.byteToHex(getLinkType())).append('\n');
72
        buffer.append("    .linkType             = ").append(HexDump.byteToHex(getLinkType())).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/NumberFormatIndexRecord.java (-1 / +1 lines)
Lines 42-48 Link Here
42
42
43
    public String toString()
43
    public String toString()
44
    {
44
    {
45
        StringBuffer buffer = new StringBuffer();
45
        StringBuilder buffer = new StringBuilder();
46
46
47
        buffer.append("[IFMT]\n");
47
        buffer.append("[IFMT]\n");
48
        buffer.append("    .formatIndex          = ")
48
        buffer.append("    .formatIndex          = ")
(-)src/java/org/apache/poi/hssf/record/chart/ObjectLinkRecord.java (-1 / +1 lines)
Lines 52-58 Link Here
52
52
53
    public String toString()
53
    public String toString()
54
    {
54
    {
55
        StringBuffer buffer = new StringBuffer();
55
        StringBuilder buffer = new StringBuilder();
56
56
57
        buffer.append("[OBJECTLINK]\n");
57
        buffer.append("[OBJECTLINK]\n");
58
        buffer.append("    .anchorId             = ")
58
        buffer.append("    .anchorId             = ")
(-)src/java/org/apache/poi/hssf/record/chart/PlotAreaRecord.java (-1 / +1 lines)
Lines 43-49 Link Here
43
43
44
    public String toString()
44
    public String toString()
45
    {
45
    {
46
        StringBuffer buffer = new StringBuffer();
46
        StringBuilder buffer = new StringBuilder();
47
47
48
        buffer.append("[PLOTAREA]\n");
48
        buffer.append("[PLOTAREA]\n");
49
49
(-)src/java/org/apache/poi/hssf/record/chart/PlotGrowthRecord.java (-1 / +1 lines)
Lines 45-51 Link Here
45
45
46
    public String toString()
46
    public String toString()
47
    {
47
    {
48
        StringBuffer buffer = new StringBuffer();
48
        StringBuilder buffer = new StringBuilder();
49
49
50
        buffer.append("[PLOTGROWTH]\n");
50
        buffer.append("[PLOTGROWTH]\n");
51
        buffer.append("    .horizontalScale      = ")
51
        buffer.append("    .horizontalScale      = ")
(-)src/java/org/apache/poi/hssf/record/chart/SeriesChartGroupIndexRecord.java (-1 / +1 lines)
Lines 42-48 Link Here
42
42
43
    public String toString()
43
    public String toString()
44
    {
44
    {
45
        StringBuffer buffer = new StringBuffer();
45
        StringBuilder buffer = new StringBuilder();
46
46
47
        buffer.append("[SERTOCRT]\n");
47
        buffer.append("[SERTOCRT]\n");
48
        buffer.append("    .chartGroupIndex      = ")
48
        buffer.append("    .chartGroupIndex      = ")
(-)src/java/org/apache/poi/hssf/record/chart/SeriesIndexRecord.java (-1 / +1 lines)
Lines 42-48 Link Here
42
42
43
    public String toString()
43
    public String toString()
44
    {
44
    {
45
        StringBuffer buffer = new StringBuffer();
45
        StringBuilder buffer = new StringBuilder();
46
46
47
        buffer.append("[SINDEX]\n");
47
        buffer.append("[SINDEX]\n");
48
        buffer.append("    .index                = ")
48
        buffer.append("    .index                = ")
(-)src/java/org/apache/poi/hssf/record/chart/SeriesLabelsRecord.java (-1 / +1 lines)
Lines 53-59 Link Here
53
53
54
    public String toString()
54
    public String toString()
55
    {
55
    {
56
        StringBuffer buffer = new StringBuffer();
56
        StringBuilder buffer = new StringBuilder();
57
57
58
        buffer.append("[ATTACHEDLABEL]\n");
58
        buffer.append("[ATTACHEDLABEL]\n");
59
        buffer.append("    .formatFlags          = ")
59
        buffer.append("    .formatFlags          = ")
(-)src/java/org/apache/poi/hssf/record/chart/SeriesListRecord.java (-1 / +1 lines)
Lines 50-56 Link Here
50
    }
50
    }
51
51
52
    public String toString() {
52
    public String toString() {
53
        StringBuffer buffer = new StringBuffer();
53
        StringBuilder buffer = new StringBuilder();
54
        
54
        
55
        buffer.append("[SERIESLIST]\n");
55
        buffer.append("[SERIESLIST]\n");
56
        buffer.append("    .seriesNumbers= ").append(" (").append( Arrays.toString(getSeriesNumbers()) ).append(" )");
56
        buffer.append("    .seriesNumbers= ").append(" (").append( Arrays.toString(getSeriesNumbers()) ).append(" )");
(-)src/java/org/apache/poi/hssf/record/chart/SeriesRecord.java (-1 / +1 lines)
Lines 65-71 Link Here
65
65
66
    public String toString()
66
    public String toString()
67
    {
67
    {
68
        StringBuffer buffer = new StringBuffer();
68
        StringBuilder buffer = new StringBuilder();
69
69
70
        buffer.append("[SERIES]\n");
70
        buffer.append("[SERIES]\n");
71
        buffer.append("    .categoryDataType     = ")
71
        buffer.append("    .categoryDataType     = ")
(-)src/java/org/apache/poi/hssf/record/chart/SeriesTextRecord.java (-1 / +1 lines)
Lines 53-59 Link Here
53
	}
53
	}
54
54
55
	public String toString() {
55
	public String toString() {
56
		StringBuffer sb = new StringBuffer();
56
		StringBuilder sb = new StringBuilder();
57
57
58
		sb.append("[SERIESTEXT]\n");
58
		sb.append("[SERIESTEXT]\n");
59
		sb.append("  .id     =").append(HexDump.shortToHex(getId())).append('\n');
59
		sb.append("  .id     =").append(HexDump.shortToHex(getId())).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/SeriesToChartGroupRecord.java (-1 / +1 lines)
Lines 44-50 Link Here
44
44
45
    public String toString()
45
    public String toString()
46
    {
46
    {
47
        StringBuffer buffer = new StringBuffer();
47
        StringBuilder buffer = new StringBuilder();
48
48
49
        buffer.append("[SeriesToChartGroup]\n");
49
        buffer.append("[SeriesToChartGroup]\n");
50
        buffer.append("    .chartGroupIndex      = ")
50
        buffer.append("    .chartGroupIndex      = ")
(-)src/java/org/apache/poi/hssf/record/chart/SheetPropertiesRecord.java (-1 / +1 lines)
Lines 56-62 Link Here
56
    }
56
    }
57
57
58
    public String toString() {
58
    public String toString() {
59
        StringBuffer buffer = new StringBuffer();
59
        StringBuilder buffer = new StringBuilder();
60
60
61
        buffer.append("[SHTPROPS]\n");
61
        buffer.append("[SHTPROPS]\n");
62
        buffer.append("    .flags                = ").append(HexDump.shortToHex(field_1_flags)).append('\n');
62
        buffer.append("    .flags                = ").append(HexDump.shortToHex(field_1_flags)).append('\n');
(-)src/java/org/apache/poi/hssf/record/chart/TextRecord.java (-1 / +1 lines)
Lines 109-115 Link Here
109
109
110
    public String toString()
110
    public String toString()
111
    {
111
    {
112
        StringBuffer buffer = new StringBuffer();
112
        StringBuilder buffer = new StringBuilder();
113
113
114
        buffer.append("[TEXT]\n");
114
        buffer.append("[TEXT]\n");
115
        buffer.append("    .horizontalAlignment  = ")
115
        buffer.append("    .horizontalAlignment  = ")
(-)src/java/org/apache/poi/hssf/record/chart/TickRecord.java (-1 / +1 lines)
Lines 76-82 Link Here
76
76
77
    public String toString()
77
    public String toString()
78
    {
78
    {
79
        StringBuffer buffer = new StringBuffer();
79
        StringBuilder buffer = new StringBuilder();
80
80
81
        buffer.append("[TICK]\n");
81
        buffer.append("[TICK]\n");
82
        buffer.append("    .majorTickType        = ")
82
        buffer.append("    .majorTickType        = ")
(-)src/java/org/apache/poi/hssf/record/chart/UnitsRecord.java (-1 / +1 lines)
Lines 43-49 Link Here
43
43
44
    public String toString()
44
    public String toString()
45
    {
45
    {
46
        StringBuffer buffer = new StringBuffer();
46
        StringBuilder buffer = new StringBuilder();
47
47
48
        buffer.append("[UNITS]\n");
48
        buffer.append("[UNITS]\n");
49
        buffer.append("    .units                = ")
49
        buffer.append("    .units                = ")
(-)src/java/org/apache/poi/hssf/record/chart/ValueRangeRecord.java (-1 / +1 lines)
Lines 66-72 Link Here
66
66
67
    public String toString()
67
    public String toString()
68
    {
68
    {
69
        StringBuffer buffer = new StringBuffer();
69
        StringBuilder buffer = new StringBuilder();
70
70
71
        buffer.append("[VALUERANGE]\n");
71
        buffer.append("[VALUERANGE]\n");
72
        buffer.append("    .minimumAxisValue     = ")
72
        buffer.append("    .minimumAxisValue     = ")
(-)src/java/org/apache/poi/hssf/record/common/ExtendedColor.java (-2 / +2 lines)
Lines 136-142 Link Here
136
    }
136
    }
137
    
137
    
138
    public String toString() {
138
    public String toString() {
139
        StringBuffer buffer = new StringBuffer();
139
        StringBuilder buffer = new StringBuilder();
140
        buffer.append("    [Extended Color]\n");
140
        buffer.append("    [Extended Color]\n");
141
        buffer.append("          .type  = ").append(type).append("\n");
141
        buffer.append("          .type  = ").append(type).append("\n");
142
        buffer.append("          .tint  = ").append(tint).append("\n");
142
        buffer.append("          .tint  = ").append(tint).append("\n");
Lines 180-183 Link Here
180
        }
180
        }
181
        out.writeDouble(tint);
181
        out.writeDouble(tint);
182
    }
182
    }
183
}
183
}
(-)src/java/org/apache/poi/hssf/record/common/FeatFormulaErr2.java (-1 / +1 lines)
Lines 58-64 Link Here
58
	}
58
	}
59
59
60
	public String toString() {
60
	public String toString() {
61
		StringBuffer buffer = new StringBuffer();
61
		StringBuilder buffer = new StringBuilder();
62
		buffer.append(" [FEATURE FORMULA ERRORS]\n");
62
		buffer.append(" [FEATURE FORMULA ERRORS]\n");
63
		buffer.append("  checkCalculationErrors    = "); 
63
		buffer.append("  checkCalculationErrors    = "); 
64
		buffer.append("  checkEmptyCellRef         = "); 
64
		buffer.append("  checkEmptyCellRef         = "); 
(-)src/java/org/apache/poi/hssf/record/common/FeatProtection.java (-1 / +1 lines)
Lines 65-71 Link Here
65
	}
65
	}
66
66
67
	public String toString() {
67
	public String toString() {
68
		StringBuffer buffer = new StringBuffer();
68
		StringBuilder buffer = new StringBuilder();
69
		buffer.append(" [FEATURE PROTECTION]\n");
69
		buffer.append(" [FEATURE PROTECTION]\n");
70
		buffer.append("   Self Relative = " + fSD); 
70
		buffer.append("   Self Relative = " + fSD); 
71
		buffer.append("   Password Verifier = " + passwordVerifier);
71
		buffer.append("   Password Verifier = " + passwordVerifier);
(-)src/java/org/apache/poi/hssf/record/common/FeatSmartTag.java (-1 / +1 lines)
Lines 46-52 Link Here
46
	}
46
	}
47
47
48
	public String toString() {
48
	public String toString() {
49
		StringBuffer buffer = new StringBuffer();
49
		StringBuilder buffer = new StringBuilder();
50
		buffer.append(" [FEATURE SMART TAGS]\n");
50
		buffer.append(" [FEATURE SMART TAGS]\n");
51
		buffer.append(" [/FEATURE SMART TAGS]\n");
51
		buffer.append(" [/FEATURE SMART TAGS]\n");
52
		return buffer.toString();
52
		return buffer.toString();
(-)src/java/org/apache/poi/hssf/record/common/FtrHeader.java (-2 / +2 lines)
Lines 48-54 Link Here
48
    }
48
    }
49
49
50
    public String toString() {
50
    public String toString() {
51
        StringBuffer buffer = new StringBuffer();
51
        StringBuilder buffer = new StringBuilder();
52
        buffer.append(" [FUTURE HEADER]\n");
52
        buffer.append(" [FUTURE HEADER]\n");
53
        buffer.append("   Type " + recordType);
53
        buffer.append("   Type " + recordType);
54
        buffer.append("   Flags " + grbitFrt);
54
        buffer.append("   Flags " + grbitFrt);
Lines 94-97 Link Here
94
        result.associatedRange = associatedRange.copy();
94
        result.associatedRange = associatedRange.copy();
95
        return result;
95
        return result;
96
    }
96
    }
97
}
97
}
(-)src/java/org/apache/poi/hssf/record/pivottable/DataItemRecord.java (-1 / +1 lines)
Lines 75-81 Link Here
75
75
76
	@Override
76
	@Override
77
	public String toString() {
77
	public String toString() {
78
		StringBuffer buffer = new StringBuffer();
78
		StringBuilder buffer = new StringBuilder();
79
		
79
		
80
		buffer.append("[SXDI]\n");
80
		buffer.append("[SXDI]\n");
81
		buffer.append("  .isxvdData = ").append(HexDump.shortToHex(isxvdData)).append("\n");
81
		buffer.append("  .isxvdData = ").append(HexDump.shortToHex(isxvdData)).append("\n");
(-)src/java/org/apache/poi/hssf/record/pivottable/ExtendedPivotTableViewFieldsRecord.java (-1 / +1 lines)
Lines 111-117 Link Here
111
111
112
	@Override
112
	@Override
113
	public String toString() {
113
	public String toString() {
114
		StringBuffer buffer = new StringBuffer();
114
		StringBuilder buffer = new StringBuilder();
115
115
116
		buffer.append("[SXVDEX]\n");
116
		buffer.append("[SXVDEX]\n");
117
117
(-)src/java/org/apache/poi/hssf/record/pivottable/StreamIDRecord.java (-1 / +1 lines)
Lines 53-59 Link Here
53
53
54
	@Override
54
	@Override
55
	public String toString() {
55
	public String toString() {
56
		StringBuffer buffer = new StringBuffer();
56
		StringBuilder buffer = new StringBuilder();
57
57
58
		buffer.append("[SXIDSTM]\n");
58
		buffer.append("[SXIDSTM]\n");
59
		buffer.append("    .idstm      =").append(HexDump.shortToHex(idstm)).append('\n');
59
		buffer.append("    .idstm      =").append(HexDump.shortToHex(idstm)).append('\n');
(-)src/java/org/apache/poi/hssf/record/pivottable/ViewDefinitionRecord.java (-1 / +1 lines)
Lines 128-134 Link Here
128
128
129
	@Override
129
	@Override
130
	public String toString() {
130
	public String toString() {
131
		StringBuffer buffer = new StringBuffer();
131
		StringBuilder buffer = new StringBuilder();
132
132
133
		buffer.append("[SXVIEW]\n");
133
		buffer.append("[SXVIEW]\n");
134
		buffer.append("    .rwFirst      =").append(HexDump.shortToHex(rwFirst)).append('\n');
134
		buffer.append("    .rwFirst      =").append(HexDump.shortToHex(rwFirst)).append('\n');
(-)src/java/org/apache/poi/hssf/record/pivottable/ViewFieldsRecord.java (-1 / +1 lines)
Lines 103-109 Link Here
103
103
104
	@Override
104
	@Override
105
	public String toString() {
105
	public String toString() {
106
		StringBuffer buffer = new StringBuffer();
106
		StringBuilder buffer = new StringBuilder();
107
		buffer.append("[SXVD]\n");
107
		buffer.append("[SXVD]\n");
108
		buffer.append("    .sxaxis    = ").append(HexDump.shortToHex(_sxaxis)).append('\n');
108
		buffer.append("    .sxaxis    = ").append(HexDump.shortToHex(_sxaxis)).append('\n');
109
		buffer.append("    .cSub      = ").append(HexDump.shortToHex(_cSub)).append('\n');
109
		buffer.append("    .cSub      = ").append(HexDump.shortToHex(_cSub)).append('\n');
(-)src/java/org/apache/poi/hssf/record/pivottable/ViewSourceRecord.java (-1 / +1 lines)
Lines 53-59 Link Here
53
53
54
	@Override
54
	@Override
55
	public String toString() {
55
	public String toString() {
56
		StringBuffer buffer = new StringBuffer();
56
		StringBuilder buffer = new StringBuilder();
57
57
58
		buffer.append("[SXVS]\n");
58
		buffer.append("[SXVS]\n");
59
		buffer.append("    .vs      =").append(HexDump.shortToHex(vs)).append('\n');
59
		buffer.append("    .vs      =").append(HexDump.shortToHex(vs)).append('\n');
(-)src/java/org/apache/poi/hssf/usermodel/FontDetails.java (-1 / +1 lines)
Lines 156-162 Link Here
156
        {
156
        {
157
            if(max != -1 && i == listSize - 1)
157
            if(max != -1 && i == listSize - 1)
158
            {
158
            {
159
                StringBuffer buf = new StringBuffer((text.length() * (listSize - i)) / listSize);
159
                StringBuilder buf = new StringBuilder((text.length() * (listSize - i)) / listSize);
160
                while(tok.hasMoreTokens())
160
                while(tok.hasMoreTokens())
161
                {
161
                {
162
                    buf.append(tok.nextToken());
162
                    buf.append(tok.nextToken());
(-)src/java/org/apache/poi/hssf/usermodel/HSSFPalette.java (-1 / +1 lines)
Lines 214-220 Link Here
214
        @Override
214
        @Override
215
        public String getHexString()
215
        public String getHexString()
216
        {
216
        {
217
            StringBuffer sb = new StringBuffer();
217
            StringBuilder sb = new StringBuilder();
218
            sb.append(getGnumericPart(_red));
218
            sb.append(getGnumericPart(_red));
219
            sb.append(':');
219
            sb.append(':');
220
            sb.append(getGnumericPart(_green));
220
            sb.append(getGnumericPart(_green));
(-)src/java/org/apache/poi/poifs/dev/POIFSViewEngine.java (-2 / +2 lines)
Lines 101-108 Link Here
101
    private static String indent(final int indentLevel,
101
    private static String indent(final int indentLevel,
102
                                 final String indentString, final String data)
102
                                 final String indentString, final String data)
103
    {
103
    {
104
        StringBuffer finalBuffer  = new StringBuffer();
104
        StringBuilder finalBuffer  = new StringBuilder();
105
        StringBuffer indentPrefix = new StringBuffer();
105
        StringBuilder indentPrefix = new StringBuilder();
106
106
107
        for (int j = 0; j < indentLevel; j++)
107
        for (int j = 0; j < indentLevel; j++)
108
        {
108
        {
(-)src/java/org/apache/poi/poifs/filesystem/DocumentDescriptor.java (-1 / +1 lines)
Lines 104-110 Link Here
104
104
105
    public String toString()
105
    public String toString()
106
    {
106
    {
107
        StringBuffer buffer = new StringBuffer(40 * (path.length() + 1));
107
        StringBuilder buffer = new StringBuilder(40 * (path.length() + 1));
108
108
109
        for (int j = 0; j < path.length(); j++)
109
        for (int j = 0; j < path.length(); j++)
110
        {
110
        {
(-)src/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java (-1 / +1 lines)
Lines 284-290 Link Here
284
284
285
    public String toString()
285
    public String toString()
286
    {
286
    {
287
        final StringBuffer b = new StringBuffer();
287
        final StringBuilder b = new StringBuilder();
288
        final int          l = length();
288
        final int          l = length();
289
289
290
        b.append(File.separatorChar);
290
        b.append(File.separatorChar);
(-)src/java/org/apache/poi/ss/format/CellNumberFormatter.java (-1 / +1 lines)
Lines 232-238 Link Here
232
        integerSpecials.addAll(specials.subList(0, integerEnd()));
232
        integerSpecials.addAll(specials.subList(0, integerEnd()));
233
233
234
        if (exponent == null) {
234
        if (exponent == null) {
235
            StringBuffer fmtBuf = new StringBuffer("%");
235
            StringBuilder fmtBuf = new StringBuilder("%");
236
236
237
            int integerPartWidth = calculateIntegerPartWidth();
237
            int integerPartWidth = calculateIntegerPartWidth();
238
            int totalWidth = integerPartWidth + fractionPartWidth;
238
            int totalWidth = integerPartWidth + fractionPartWidth;
(-)src/java/org/apache/poi/ss/format/CellTextFormatter.java (-1 / +1 lines)
Lines 47-53 Link Here
47
        textPos = new int[numPlaces[0]];
47
        textPos = new int[numPlaces[0]];
48
        int pos = desc.length() - 1;
48
        int pos = desc.length() - 1;
49
        for (int i = 0; i < textPos.length; i++) {
49
        for (int i = 0; i < textPos.length; i++) {
50
            textPos[i] = desc.lastIndexOf("\u0000", pos);
50
            textPos[i] = desc.lastIndexOf('\u0000', pos);
51
            pos = textPos[i] - 1;
51
            pos = textPos[i] - 1;
52
        }
52
        }
53
    }
53
    }
(-)src/java/org/apache/poi/ss/formula/CellEvaluationFrame.java (-1 / +1 lines)
Lines 40-46 Link Here
40
	}
40
	}
41
41
42
	public String toString() {
42
	public String toString() {
43
		StringBuffer sb = new StringBuffer(64);
43
		StringBuilder sb = new StringBuilder(64);
44
		sb.append(getClass().getName()).append(" [");
44
		sb.append(getClass().getName()).append(" [");
45
		sb.append("]");
45
		sb.append("]");
46
		return sb.toString();
46
		return sb.toString();
(-)src/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java (-1 / +1 lines)
Lines 175-181 Link Here
175
        }
175
        }
176
        WorkbookEvaluator result = _evaluatorsByName.get(workbookName);
176
        WorkbookEvaluator result = _evaluatorsByName.get(workbookName);
177
        if (result == null) {
177
        if (result == null) {
178
            StringBuffer sb = new StringBuffer(256);
178
            StringBuilder sb = new StringBuilder(256);
179
            sb.append("Could not resolve external workbook name '").append(workbookName).append("'.");
179
            sb.append("Could not resolve external workbook name '").append(workbookName).append("'.");
180
            if (_evaluators.length < 1) {
180
            if (_evaluators.length < 1) {
181
                sb.append(" Workbook environment has not been set up.");
181
                sb.append(" Workbook environment has not been set up.");
(-)src/java/org/apache/poi/ss/formula/FormulaUsedBlankCellSet.java (-1 / +1 lines)
Lines 158-164 Link Here
158
		}
158
		}
159
		@Override
159
		@Override
160
        public String toString() {
160
        public String toString() {
161
			StringBuffer sb = new StringBuffer(64);
161
			StringBuilder sb = new StringBuilder(64);
162
			CellReference crA = new CellReference(_firstRowIndex, _firstColumnIndex, false, false);
162
			CellReference crA = new CellReference(_firstRowIndex, _firstColumnIndex, false, false);
163
			CellReference crB = new CellReference(_lastRowIndex, _lastColumnIndex, false, false);
163
			CellReference crB = new CellReference(_lastRowIndex, _lastColumnIndex, false, false);
164
			sb.append(getClass().getName());
164
			sb.append(getClass().getName());
(-)src/java/org/apache/poi/ss/formula/NameIdentifier.java (-2 / +2 lines)
Lines 32-38 Link Here
32
        return _isQuoted;
32
        return _isQuoted;
33
    }
33
    }
34
    public String toString() {
34
    public String toString() {
35
        StringBuffer sb = new StringBuffer(64);
35
        StringBuilder sb = new StringBuilder(64);
36
        sb.append(getClass().getName());
36
        sb.append(getClass().getName());
37
        sb.append(" [");
37
        sb.append(" [");
38
        if (_isQuoted) {
38
        if (_isQuoted) {
Lines 43-46 Link Here
43
        sb.append("]");
43
        sb.append("]");
44
        return sb.toString();
44
        return sb.toString();
45
    }
45
    }
46
}
46
}
(-)src/java/org/apache/poi/ss/formula/constant/ErrorConstant.java (-1 / +1 lines)
Lines 71-77 Link Here
71
	}
71
	}
72
72
73
	public String toString() {
73
	public String toString() {
74
		StringBuffer sb = new StringBuffer(64);
74
		StringBuilder sb = new StringBuilder(64);
75
		sb.append(getClass().getName()).append(" [");
75
		sb.append(getClass().getName()).append(" [");
76
		sb.append(getText());
76
		sb.append(getText());
77
		sb.append("]");
77
		sb.append("]");
(-)src/java/org/apache/poi/ss/formula/functions/Countif.java (-3 / +3 lines)
Lines 138-144 Link Here
138
        }
138
        }
139
        @Override
139
        @Override
140
        public String toString() {
140
        public String toString() {
141
            StringBuffer sb = new StringBuffer(64);
141
            StringBuilder sb = new StringBuilder(64);
142
            sb.append(getClass().getName());
142
            sb.append(getClass().getName());
143
            sb.append(" [").append(_representation).append("]");
143
            sb.append(" [").append(_representation).append("]");
144
            return sb.toString();
144
            return sb.toString();
Lines 165-171 Link Here
165
        }
165
        }
166
        @Override
166
        @Override
167
        public final String toString() {
167
        public final String toString() {
168
            StringBuffer sb = new StringBuffer(64);
168
            StringBuilder sb = new StringBuilder(64);
169
            sb.append(getClass().getName()).append(" [");
169
            sb.append(getClass().getName()).append(" [");
170
            sb.append(_operator.getRepresentation());
170
            sb.append(_operator.getRepresentation());
171
            sb.append(getValueText());
171
            sb.append(getValueText());
Lines 386-392 Link Here
386
         */
386
         */
387
        public static Pattern getWildCardPattern(String value) {
387
        public static Pattern getWildCardPattern(String value) {
388
            int len = value.length();
388
            int len = value.length();
389
            StringBuffer sb = new StringBuffer(len);
389
            StringBuilder sb = new StringBuilder(len);
390
            boolean hasWildCard = false;
390
            boolean hasWildCard = false;
391
            for(int i=0; i<len; i++) {
391
            for(int i=0; i<len; i++) {
392
                char ch = value.charAt(i);
392
                char ch = value.charAt(i);
(-)src/java/org/apache/poi/ss/formula/functions/Replace.java (-1 / +1 lines)
Lines 58-64 Link Here
58
		if (startNum < 1 || numChars < 0) {
58
		if (startNum < 1 || numChars < 0) {
59
			return ErrorEval.VALUE_INVALID;
59
			return ErrorEval.VALUE_INVALID;
60
		}
60
		}
61
		StringBuffer strBuff = new StringBuffer(oldStr);
61
		StringBuilder strBuff = new StringBuilder(oldStr);
62
		// remove any characters that should be replaced
62
		// remove any characters that should be replaced
63
		if (startNum <= oldStr.length() && numChars != 0) {
63
		if (startNum <= oldStr.length() && numChars != 0) {
64
			strBuff.delete(startNum - 1, startNum - 1 + numChars);
64
			strBuff.delete(startNum - 1, startNum - 1 + numChars);
(-)src/java/org/apache/poi/ss/formula/functions/Rept.java (-1 / +1 lines)
Lines 60-66 Link Here
60
        }
60
        }
61
61
62
        int numberOfTimeInt = (int)numberOfTime;
62
        int numberOfTimeInt = (int)numberOfTime;
63
        StringBuffer strb = new StringBuffer(strText1.length() * numberOfTimeInt);
63
        StringBuilder strb = new StringBuilder(strText1.length() * numberOfTimeInt);
64
        for(int i = 0; i < numberOfTimeInt; i++) {
64
        for(int i = 0; i < numberOfTimeInt; i++) {
65
            strb.append(strText1);
65
            strb.append(strText1);
66
        }
66
        }
(-)src/java/org/apache/poi/ss/formula/functions/Substitute.java (-2 / +2 lines)
Lines 64-70 Link Here
64
	}
64
	}
65
65
66
	private static String replaceAllOccurrences(String oldStr, String searchStr, String newStr) {
66
	private static String replaceAllOccurrences(String oldStr, String searchStr, String newStr) {
67
		StringBuffer sb = new StringBuffer();
67
		StringBuilder sb = new StringBuilder();
68
		int startIndex = 0;
68
		int startIndex = 0;
69
		int nextMatch = -1;
69
		int nextMatch = -1;
70
		while (true) {
70
		while (true) {
Lines 96-102 Link Here
96
			}
96
			}
97
			count++;
97
			count++;
98
			if (count == instanceNumber) {
98
			if (count == instanceNumber) {
99
				StringBuffer sb = new StringBuffer(oldStr.length() + newStr.length());
99
				StringBuilder sb = new StringBuilder(oldStr.length() + newStr.length());
100
				sb.append(oldStr, 0, nextMatch);
100
				sb.append(oldStr, 0, nextMatch);
101
				sb.append(newStr);
101
				sb.append(newStr);
102
				sb.append(oldStr.substring(nextMatch + searchStr.length()));
102
				sb.append(oldStr.substring(nextMatch + searchStr.length()));
(-)src/java/org/apache/poi/ss/formula/ptg/AddPtg.java (-1 / +1 lines)
Lines 44-50 Link Here
44
       
44
       
45
   /** implementation of method from OperationsPtg*/  
45
   /** implementation of method from OperationsPtg*/  
46
    public String toFormulaString(String[] operands) {
46
    public String toFormulaString(String[] operands) {
47
        StringBuffer buffer = new StringBuffer();
47
        StringBuilder buffer = new StringBuilder();
48
48
49
        buffer.append(operands[ 0 ]);
49
        buffer.append(operands[ 0 ]);
50
        buffer.append(ADD);
50
        buffer.append(ADD);
(-)src/java/org/apache/poi/ss/formula/ptg/Area2DPtgBase.java (-1 / +1 lines)
Lines 54-60 Link Here
54
	}
54
	}
55
55
56
	public final String toString() {
56
	public final String toString() {
57
		StringBuffer sb = new StringBuffer();
57
		StringBuilder sb = new StringBuilder();
58
		sb.append(getClass().getName());
58
		sb.append(getClass().getName());
59
		sb.append(" [");
59
		sb.append(" [");
60
		sb.append(formatReferenceAsString());
60
		sb.append(formatReferenceAsString());
(-)src/java/org/apache/poi/ss/formula/ptg/Area3DPtg.java (-1 / +1 lines)
Lines 65-71 Link Here
65
65
66
	@Override
66
	@Override
67
	public String toString() {
67
	public String toString() {
68
		StringBuffer sb = new StringBuffer();
68
		StringBuilder sb = new StringBuilder();
69
		sb.append(getClass().getName());
69
		sb.append(getClass().getName());
70
		sb.append(" [");
70
		sb.append(" [");
71
		sb.append("sheetIx=").append(getExternSheetIndex());
71
		sb.append("sheetIx=").append(getExternSheetIndex());
(-)src/java/org/apache/poi/ss/formula/ptg/Area3DPxg.java (-1 / +1 lines)
Lines 61-67 Link Here
61
61
62
    @Override
62
    @Override
63
    public String toString() {
63
    public String toString() {
64
        StringBuffer sb = new StringBuffer();
64
        StringBuilder sb = new StringBuilder();
65
        sb.append(getClass().getName());
65
        sb.append(getClass().getName());
66
        sb.append(" [");
66
        sb.append(" [");
67
        if (externalWorkbookNumber >= 0) {
67
        if (externalWorkbookNumber >= 0) {
(-)src/java/org/apache/poi/ss/formula/ptg/ArrayPtg.java (-2 / +2 lines)
Lines 107-113 Link Here
107
	}
107
	}
108
108
109
	public String toString() {
109
	public String toString() {
110
		StringBuffer sb = new StringBuffer("[ArrayPtg]\n");
110
		StringBuilder sb = new StringBuilder("[ArrayPtg]\n");
111
111
112
		sb.append("nRows = ").append(getRowCount()).append("\n");
112
		sb.append("nRows = ").append(getRowCount()).append("\n");
113
		sb.append("nCols = ").append(getColumnCount()).append("\n");
113
		sb.append("nCols = ").append(getColumnCount()).append("\n");
Lines 167-173 Link Here
167
	}
167
	}
168
168
169
	public String toFormulaString() {
169
	public String toFormulaString() {
170
		StringBuffer b = new StringBuffer();
170
		StringBuilder b = new StringBuilder();
171
		b.append("{");
171
		b.append("{");
172
		for (int y = 0; y < _nRows; y++) {
172
		for (int y = 0; y < _nRows; y++) {
173
			if (y > 0) {
173
			if (y > 0) {
(-)src/java/org/apache/poi/ss/formula/ptg/AttrPtg.java (-1 / +1 lines)
Lines 168-174 Link Here
168
    }
168
    }
169
169
170
    public String toString() {
170
    public String toString() {
171
        StringBuffer sb = new StringBuffer(64);
171
        StringBuilder sb = new StringBuilder(64);
172
        sb.append(getClass().getName()).append(" [");
172
        sb.append(getClass().getName()).append(" [");
173
173
174
        if(isSemiVolatile()) {
174
        if(isSemiVolatile()) {
(-)src/java/org/apache/poi/ss/formula/ptg/ConcatPtg.java (-1 / +1 lines)
Lines 42-48 Link Here
42
    }
42
    }
43
       
43
       
44
    public String toFormulaString(String[] operands) {
44
    public String toFormulaString(String[] operands) {
45
        StringBuffer buffer = new StringBuffer();
45
        StringBuilder buffer = new StringBuilder();
46
46
47
        buffer.append(operands[ 0 ]);
47
        buffer.append(operands[ 0 ]);
48
        buffer.append(CONCAT);
48
        buffer.append(CONCAT);
(-)src/java/org/apache/poi/ss/formula/ptg/Deleted3DPxg.java (-1 / +1 lines)
Lines 38-44 Link Here
38
    }
38
    }
39
39
40
    public String toString() {
40
    public String toString() {
41
        StringBuffer sb = new StringBuffer();
41
        StringBuilder sb = new StringBuilder();
42
        sb.append(getClass().getName());
42
        sb.append(getClass().getName());
43
        sb.append(" [");
43
        sb.append(" [");
44
        if (externalWorkbookNumber >= 0) {
44
        if (externalWorkbookNumber >= 0) {
(-)src/java/org/apache/poi/ss/formula/ptg/DividePtg.java (-1 / +1 lines)
Lines 40-46 Link Here
40
    }
40
    }
41
41
42
     public String toFormulaString(String[] operands) {
42
     public String toFormulaString(String[] operands) {
43
        StringBuffer buffer = new StringBuffer();
43
        StringBuilder buffer = new StringBuilder();
44
44
45
        buffer.append(operands[ 0 ]);
45
        buffer.append(operands[ 0 ]);
46
        buffer.append("/");
46
        buffer.append("/");
(-)src/java/org/apache/poi/ss/formula/ptg/EqualPtg.java (-1 / +1 lines)
Lines 39-45 Link Here
39
    }
39
    }
40
 
40
 
41
    public String toFormulaString(String[] operands) {
41
    public String toFormulaString(String[] operands) {
42
         StringBuffer buffer = new StringBuffer();
42
         StringBuilder buffer = new StringBuilder();
43
43
44
        
44
        
45
        buffer.append(operands[ 0 ]);
45
        buffer.append(operands[ 0 ]);
(-)src/java/org/apache/poi/ss/formula/ptg/GreaterEqualPtg.java (-1 / +1 lines)
Lines 42-48 Link Here
42
    }
42
    }
43
43
44
    public String toFormulaString(String[] operands) {
44
    public String toFormulaString(String[] operands) {
45
         StringBuffer buffer = new StringBuffer();
45
         StringBuilder buffer = new StringBuilder();
46
46
47
        buffer.append(operands[ 0 ]);
47
        buffer.append(operands[ 0 ]);
48
48
(-)src/java/org/apache/poi/ss/formula/ptg/GreaterThanPtg.java (-1 / +1 lines)
Lines 51-57 Link Here
51
     */  
51
     */  
52
    public String toFormulaString(String[] operands) 
52
    public String toFormulaString(String[] operands) 
53
    {
53
    {
54
        StringBuffer buffer = new StringBuffer();
54
        StringBuilder buffer = new StringBuilder();
55
55
56
        buffer.append(operands[ 0 ]);
56
        buffer.append(operands[ 0 ]);
57
        buffer.append(GREATERTHAN);
57
        buffer.append(GREATERTHAN);
(-)src/java/org/apache/poi/ss/formula/ptg/IntersectionPtg.java (-1 / +1 lines)
Lines 48-54 Link Here
48
	}
48
	}
49
49
50
	public String toFormulaString(String[] operands) {
50
	public String toFormulaString(String[] operands) {
51
		StringBuffer buffer = new StringBuffer();
51
		StringBuilder buffer = new StringBuilder();
52
52
53
		buffer.append(operands[0]);
53
		buffer.append(operands[0]);
54
		buffer.append(" ");
54
		buffer.append(" ");
(-)src/java/org/apache/poi/ss/formula/ptg/LessEqualPtg.java (-1 / +1 lines)
Lines 44-50 Link Here
44
    }
44
    }
45
45
46
    public String toFormulaString(String[] operands) {
46
    public String toFormulaString(String[] operands) {
47
        StringBuffer buffer = new StringBuffer();
47
        StringBuilder buffer = new StringBuilder();
48
        buffer.append( operands[0] );
48
        buffer.append( operands[0] );
49
        buffer.append("<=");
49
        buffer.append("<=");
50
        buffer.append( operands[1] );
50
        buffer.append( operands[1] );
(-)src/java/org/apache/poi/ss/formula/ptg/LessThanPtg.java (-1 / +1 lines)
Lines 55-61 Link Here
55
     */  
55
     */  
56
    public String toFormulaString(String[] operands) 
56
    public String toFormulaString(String[] operands) 
57
    {
57
    {
58
        StringBuffer buffer = new StringBuffer();
58
        StringBuilder buffer = new StringBuilder();
59
        buffer.append(operands[ 0 ]);
59
        buffer.append(operands[ 0 ]);
60
        buffer.append(LESSTHAN);
60
        buffer.append(LESSTHAN);
61
        buffer.append(operands[ 1 ]);
61
        buffer.append(operands[ 1 ]);
(-)src/java/org/apache/poi/ss/formula/ptg/MemAreaPtg.java (-1 / +1 lines)
Lines 65-71 Link Here
65
65
66
	@Override
66
	@Override
67
	public final String toString() {
67
	public final String toString() {
68
		StringBuffer sb = new StringBuffer(64);
68
		StringBuilder sb = new StringBuilder(64);
69
		sb.append(getClass().getName()).append(" [len=");
69
		sb.append(getClass().getName()).append(" [len=");
70
		sb.append(field_2_subex_len);
70
		sb.append(field_2_subex_len);
71
		sb.append("]");
71
		sb.append("]");
(-)src/java/org/apache/poi/ss/formula/ptg/MemFuncPtg.java (-2 / +2 lines)
Lines 66-75 Link Here
66
	}
66
	}
67
	@Override
67
	@Override
68
	public final String toString() {
68
	public final String toString() {
69
		StringBuffer sb = new StringBuffer(64);
69
		StringBuilder sb = new StringBuilder(64);
70
		sb.append(getClass().getName()).append(" [len=");
70
		sb.append(getClass().getName()).append(" [len=");
71
		sb.append(field_1_len_ref_subexpression);
71
		sb.append(field_1_len_ref_subexpression);
72
		sb.append("]");
72
		sb.append("]");
73
		return sb.toString();
73
		return sb.toString();
74
	}
74
	}
75
}
75
}
(-)src/java/org/apache/poi/ss/formula/ptg/MultiplyPtg.java (-1 / +1 lines)
Lines 40-46 Link Here
40
    }
40
    }
41
    
41
    
42
    public String toFormulaString(String[] operands) {
42
    public String toFormulaString(String[] operands) {
43
        StringBuffer buffer = new StringBuffer();
43
        StringBuilder buffer = new StringBuilder();
44
44
45
        buffer.append(operands[ 0 ]);
45
        buffer.append(operands[ 0 ]);
46
        buffer.append("*");
46
        buffer.append("*");
(-)src/java/org/apache/poi/ss/formula/ptg/NameXPxg.java (-1 / +1 lines)
Lines 45-51 Link Here
45
    }
45
    }
46
46
47
    public String toString(){
47
    public String toString(){
48
        StringBuffer sb = new StringBuffer();
48
        StringBuilder sb = new StringBuilder();
49
        sb.append(getClass().getName());
49
        sb.append(getClass().getName());
50
        sb.append(" [");
50
        sb.append(" [");
51
        if (externalWorkbookNumber >= 0) {
51
        if (externalWorkbookNumber >= 0) {
(-)src/java/org/apache/poi/ss/formula/ptg/NotEqualPtg.java (-1 / +1 lines)
Lines 40-46 Link Here
40
    }
40
    }
41
41
42
    public String toFormulaString(String[] operands) {
42
    public String toFormulaString(String[] operands) {
43
        StringBuffer buffer = new StringBuffer();
43
        StringBuilder buffer = new StringBuilder();
44
44
45
        buffer.append( operands[0] );
45
        buffer.append( operands[0] );
46
46
(-)src/java/org/apache/poi/ss/formula/ptg/PercentPtg.java (-1 / +1 lines)
Lines 43-49 Link Here
43
    }
43
    }
44
       
44
       
45
    public String toFormulaString(String[] operands) {
45
    public String toFormulaString(String[] operands) {
46
        StringBuffer buffer = new StringBuffer();
46
        StringBuilder buffer = new StringBuilder();
47
47
48
        buffer.append(operands[ 0 ]);
48
        buffer.append(operands[ 0 ]);
49
        buffer.append(PERCENT);
49
        buffer.append(PERCENT);
(-)src/java/org/apache/poi/ss/formula/ptg/PowerPtg.java (-1 / +1 lines)
Lines 40-46 Link Here
40
    }
40
    }
41
 
41
 
42
    public String toFormulaString(String[] operands) {
42
    public String toFormulaString(String[] operands) {
43
         StringBuffer buffer = new StringBuffer();
43
         StringBuilder buffer = new StringBuilder();
44
44
45
        
45
        
46
        buffer.append(operands[ 0 ]);
46
        buffer.append(operands[ 0 ]);
(-)src/java/org/apache/poi/ss/formula/ptg/RangePtg.java (-1 / +1 lines)
Lines 55-61 Link Here
55
    /** implementation of method from OperationsPtg*/
55
    /** implementation of method from OperationsPtg*/
56
    public String toFormulaString(String[] operands)
56
    public String toFormulaString(String[] operands)
57
    {
57
    {
58
         StringBuffer buffer = new StringBuffer();
58
         StringBuilder buffer = new StringBuilder();
59
59
60
         buffer.append(operands[ 0 ]);
60
         buffer.append(operands[ 0 ]);
61
         buffer.append(":");
61
         buffer.append(":");
(-)src/java/org/apache/poi/ss/formula/ptg/Ref2DPtgBase.java (-1 / +1 lines)
Lines 63-69 Link Here
63
63
64
    @Override
64
    @Override
65
    public final String toString() {
65
    public final String toString() {
66
        StringBuffer sb = new StringBuffer();
66
        StringBuilder sb = new StringBuilder();
67
        sb.append(getClass().getName());
67
        sb.append(getClass().getName());
68
        sb.append(" [");
68
        sb.append(" [");
69
        sb.append(formatReferenceAsString());
69
        sb.append(formatReferenceAsString());
(-)src/java/org/apache/poi/ss/formula/ptg/Ref3DPtg.java (-1 / +1 lines)
Lines 55-61 Link Here
55
    }
55
    }
56
56
57
    public String toString() {
57
    public String toString() {
58
        StringBuffer sb = new StringBuffer();
58
        StringBuilder sb = new StringBuilder();
59
        sb.append(getClass().getName());
59
        sb.append(getClass().getName());
60
        sb.append(" [");
60
        sb.append(" [");
61
        sb.append("sheetIx=").append(getExternSheetIndex());
61
        sb.append("sheetIx=").append(getExternSheetIndex());
(-)src/java/org/apache/poi/ss/formula/ptg/Ref3DPxg.java (-1 / +1 lines)
Lines 59-65 Link Here
59
    }
59
    }
60
60
61
    public String toString() {
61
    public String toString() {
62
        StringBuffer sb = new StringBuffer();
62
        StringBuilder sb = new StringBuilder();
63
        sb.append(getClass().getName());
63
        sb.append(getClass().getName());
64
        sb.append(" [");
64
        sb.append(" [");
65
        if (externalWorkbookNumber >= 0) {
65
        if (externalWorkbookNumber >= 0) {
(-)src/java/org/apache/poi/ss/formula/ptg/ScalarConstantPtg.java (-1 / +1 lines)
Lines 33-39 Link Here
33
	}
33
	}
34
34
35
	public final String toString() {
35
	public final String toString() {
36
		StringBuffer sb = new StringBuffer(64);
36
		StringBuilder sb = new StringBuilder(64);
37
		sb.append(getClass().getName()).append(" [");
37
		sb.append(getClass().getName()).append(" [");
38
		sb.append(toFormulaString());
38
		sb.append(toFormulaString());
39
		sb.append("]");
39
		sb.append("]");
(-)src/java/org/apache/poi/ss/formula/ptg/StringPtg.java (-1 / +1 lines)
Lines 91-97 Link Here
91
    public String toFormulaString() {
91
    public String toFormulaString() {
92
        String value = field_3_string;
92
        String value = field_3_string;
93
        int len = value.length();
93
        int len = value.length();
94
        StringBuffer sb = new StringBuffer(len + 4);
94
        StringBuilder sb = new StringBuilder(len + 4);
95
        sb.append(FORMULA_DELIMITER);
95
        sb.append(FORMULA_DELIMITER);
96
96
97
        for (int i = 0; i < len; i++) {
97
        for (int i = 0; i < len; i++) {
(-)src/java/org/apache/poi/ss/formula/ptg/SubtractPtg.java (-1 / +1 lines)
Lines 40-46 Link Here
40
    }
40
    }
41
       
41
       
42
    public String toFormulaString(String[] operands) {
42
    public String toFormulaString(String[] operands) {
43
        StringBuffer buffer = new StringBuffer();
43
        StringBuilder buffer = new StringBuilder();
44
44
45
        buffer.append(operands[ 0 ]);
45
        buffer.append(operands[ 0 ]);
46
        buffer.append("-");
46
        buffer.append("-");
(-)src/java/org/apache/poi/ss/formula/ptg/TblPtg.java (-1 / +1 lines)
Lines 72-78 Link Here
72
    }
72
    }
73
73
74
    public String toString() {
74
    public String toString() {
75
        StringBuffer buffer = new StringBuffer("[Data Table - Parent cell is an interior cell in a data table]\n");
75
        StringBuilder buffer = new StringBuilder("[Data Table - Parent cell is an interior cell in a data table]\n");
76
        buffer.append("top left row = ").append(getRow()).append("\n");
76
        buffer.append("top left row = ").append(getRow()).append("\n");
77
        buffer.append("top left col = ").append(getColumn()).append("\n");
77
        buffer.append("top left col = ").append(getColumn()).append("\n");
78
        return buffer.toString();
78
        return buffer.toString();
(-)src/java/org/apache/poi/ss/formula/ptg/UnaryMinusPtg.java (-1 / +1 lines)
Lines 43-49 Link Here
43
    
43
    
44
   /** implementation of method from OperationsPtg*/  
44
   /** implementation of method from OperationsPtg*/  
45
    public String toFormulaString(String[] operands) {
45
    public String toFormulaString(String[] operands) {
46
        StringBuffer buffer = new StringBuffer();
46
        StringBuilder buffer = new StringBuilder();
47
        buffer.append(MINUS);
47
        buffer.append(MINUS);
48
        buffer.append(operands[ 0]);
48
        buffer.append(operands[ 0]);
49
        return buffer.toString();
49
        return buffer.toString();
(-)src/java/org/apache/poi/ss/formula/ptg/UnaryPlusPtg.java (-1 / +1 lines)
Lines 43-49 Link Here
43
    
43
    
44
   /** implementation of method from OperationsPtg*/  
44
   /** implementation of method from OperationsPtg*/  
45
    public String toFormulaString(String[] operands) {
45
    public String toFormulaString(String[] operands) {
46
        StringBuffer buffer = new StringBuffer();
46
        StringBuilder buffer = new StringBuilder();
47
        buffer.append(ADD);
47
        buffer.append(ADD);
48
        buffer.append(operands[ 0]);
48
        buffer.append(operands[ 0]);
49
        return buffer.toString();
49
        return buffer.toString();
(-)src/java/org/apache/poi/ss/formula/ptg/UnionPtg.java (-1 / +1 lines)
Lines 54-60 Link Here
54
    /** implementation of method from OperationsPtg*/
54
    /** implementation of method from OperationsPtg*/
55
    public String toFormulaString(String[] operands)
55
    public String toFormulaString(String[] operands)
56
    {
56
    {
57
         StringBuffer buffer = new StringBuffer();
57
         StringBuilder buffer = new StringBuilder();
58
58
59
         buffer.append(operands[ 0 ]);
59
         buffer.append(operands[ 0 ]);
60
         buffer.append(",");
60
         buffer.append(",");
(-)src/java/org/apache/poi/ss/util/CellRangeAddress.java (-1 / +1 lines)
Lines 121-127 Link Here
121
     *            column range (e.g. "C:F")
121
     *            column range (e.g. "C:F")
122
     */
122
     */
123
    public static CellRangeAddress valueOf(String ref) {
123
    public static CellRangeAddress valueOf(String ref) {
124
        int sep = ref.indexOf(":");
124
        int sep = ref.indexOf(':');
125
        CellReference a;
125
        CellReference a;
126
        CellReference b;
126
        CellReference b;
127
        if (sep == -1) {
127
        if (sep == -1) {
(-)src/ooxml/java/org/apache/poi/openxml4j/opc/ContentTypes.java (-1 / +1 lines)
Lines 111-117 Link Here
111
	public static final String EXTENSION_XML = "xml";
111
	public static final String EXTENSION_XML = "xml";
112
112
113
	public static String getContentTypeFromFileExtension(String filename) {
113
	public static String getContentTypeFromFileExtension(String filename) {
114
		String extension = filename.substring(filename.lastIndexOf(".") + 1)
114
		String extension = filename.substring(filename.lastIndexOf('.') + 1)
115
				.toLowerCase(Locale.ROOT);
115
				.toLowerCase(Locale.ROOT);
116
		if (extension.equals(EXTENSION_JPG_1)
116
		if (extension.equals(EXTENSION_JPG_1)
117
				|| extension.equals(EXTENSION_JPG_2))
117
				|| extension.equals(EXTENSION_JPG_2))
(-)src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java (-1 / +1 lines)
Lines 517-523 Link Here
517
                    + filename);
517
                    + filename);
518
        } catch (InvalidFormatException e) {
518
        } catch (InvalidFormatException e) {
519
            String partName = "/docProps/thumbnail" +
519
            String partName = "/docProps/thumbnail" +
520
                    filename.substring(filename.lastIndexOf(".") + 1);
520
                    filename.substring(filename.lastIndexOf('.') + 1);
521
            try {
521
            try {
522
                thumbnailPartName = PackagingURIHelper.createPartName(partName);
522
                thumbnailPartName = PackagingURIHelper.createPartName(partName);
523
            } catch (InvalidFormatException e2) {
523
            } catch (InvalidFormatException e2) {
(-)src/ooxml/java/org/apache/poi/openxml4j/opc/PackagePartName.java (-1 / +1 lines)
Lines 422-428 Link Here
422
	public String getExtension() {
422
	public String getExtension() {
423
		String fragment = this.partNameURI.getPath();
423
		String fragment = this.partNameURI.getPath();
424
		if (fragment.length() > 0) {
424
		if (fragment.length() > 0) {
425
			int i = fragment.lastIndexOf(".");
425
			int i = fragment.lastIndexOf('.');
426
			if (i > -1) {
426
			if (i > -1) {
427
                return fragment.substring(i + 1);
427
                return fragment.substring(i + 1);
428
            }
428
            }
(-)src/ooxml/java/org/apache/poi/openxml4j/opc/PackagingURIHelper.java (-1 / +1 lines)
Lines 193-199 Link Here
193
     */
193
     */
194
    public static String getFilenameWithoutExtension(URI uri) {
194
    public static String getFilenameWithoutExtension(URI uri) {
195
        String filename = getFilename(uri);
195
        String filename = getFilename(uri);
196
        int dotIndex = filename.lastIndexOf(".");
196
        int dotIndex = filename.lastIndexOf('.');
197
        if (dotIndex == -1)
197
        if (dotIndex == -1)
198
            return filename;
198
            return filename;
199
        return filename.substring(0, dotIndex);
199
        return filename.substring(0, dotIndex);
(-)src/ooxml/java/org/apache/poi/xdgf/util/Util.java (-1 / +1 lines)
Lines 22-28 Link Here
22
    public static int countLines(String str) {
22
    public static int countLines(String str) {
23
        int lines = 1;
23
        int lines = 1;
24
        int pos = 0;
24
        int pos = 0;
25
        while ((pos = str.indexOf("\n", pos) + 1) != 0) {
25
        while ((pos = str.indexOf('\n', pos) + 1) != 0) {
26
            lines++;
26
            lines++;
27
        }
27
        }
28
        return lines;
28
        return lines;
(-)src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java (-1 / +1 lines)
Lines 941-947 Link Here
941
        assertEquals(text, cell.getStringCellValue());
941
        assertEquals(text, cell.getStringCellValue());
942
942
943
        // Now add a 2nd, and check again
943
        // Now add a 2nd, and check again
944
        int fontAt = text.indexOf("\n", 6);
944
        int fontAt = text.indexOf('\n', 6);
945
        cell.getRichStringCellValue().applyFont(10, fontAt + 1, font2);
945
        cell.getRichStringCellValue().applyFont(10, fontAt + 1, font2);
946
        assertEquals(text, cell.getStringCellValue());
946
        assertEquals(text, cell.getStringCellValue());
947
947
(-)src/scratchpad/src/org/apache/poi/hmef/attribute/TNEFProperty.java (-1 / +1 lines)
Lines 201-207 Link Here
201
   }
201
   }
202
   
202
   
203
   public String toString() {
203
   public String toString() {
204
      StringBuffer str = new StringBuffer();
204
      StringBuilder str = new StringBuilder();
205
      str.append(name);
205
      str.append(name);
206
      str.append(" [");
206
      str.append(" [");
207
      str.append(id);
207
      str.append(id);
(-)src/scratchpad/src/org/apache/poi/hpbf/dev/HPBFDumper.java (-1 / +1 lines)
Lines 61-67 Link Here
61
	 *  two chars
61
	 *  two chars
62
	 */
62
	 */
63
	private String dumpBytes(byte[] data, int offset, int len) {
63
	private String dumpBytes(byte[] data, int offset, int len) {
64
		StringBuffer ret = new StringBuffer();
64
		StringBuilder ret = new StringBuilder();
65
		for(int i=0; i<len; i++) {
65
		for(int i=0; i<len; i++) {
66
			int j = i + offset;
66
			int j = i + offset;
67
			int b = data[j];
67
			int b = data[j];
(-)src/scratchpad/src/org/apache/poi/hpbf/extractor/PublisherTextExtractor.java (-1 / +1 lines)
Lines 61-67 Link Here
61
61
62
62
63
	public String getText() {
63
	public String getText() {
64
		StringBuffer text = new StringBuffer();
64
		StringBuilder text = new StringBuilder();
65
65
66
		// Get the text from the Quill Contents
66
		// Get the text from the Quill Contents
67
		QCBit[] bits = doc.getQuillContents().getBits();
67
		QCBit[] bits = doc.getQuillContents().getBits();
(-)src/scratchpad/src/org/apache/poi/hslf/extractor/QuickButCruddyTextExtractor.java (-1 / +1 lines)
Lines 121-127 Link Here
121
	 * Fetches the ALL the text of the powerpoint file, as a single string
121
	 * Fetches the ALL the text of the powerpoint file, as a single string
122
	 */
122
	 */
123
	public String getTextAsString() {
123
	public String getTextAsString() {
124
		StringBuffer ret = new StringBuffer();
124
		StringBuilder ret = new StringBuilder();
125
		List<String> textV = getTextAsVector();
125
		List<String> textV = getTextAsVector();
126
		for(String text : textV) {
126
		for(String text : textV) {
127
			ret.append(text);
127
			ret.append(text);
(-)src/scratchpad/src/org/apache/poi/hslf/record/AnimationInfoAtom.java (-1 / +1 lines)
Lines 282-288 Link Here
282
    }
282
    }
283
283
284
    public String toString(){
284
    public String toString(){
285
        StringBuffer buf = new StringBuffer();
285
        StringBuilder buf = new StringBuilder();
286
        buf.append("AnimationInfoAtom\n");
286
        buf.append("AnimationInfoAtom\n");
287
        buf.append("\tDimColor: " + getDimColor() + "\n");
287
        buf.append("\tDimColor: " + getDimColor() + "\n");
288
        int mask = getMask();
288
        int mask = getMask();
(-)src/scratchpad/src/org/apache/poi/hslf/record/ExMediaAtom.java (-1 / +1 lines)
Lines 170-176 Link Here
170
    }
170
    }
171
171
172
    public String toString(){
172
    public String toString(){
173
        StringBuffer buf = new StringBuffer();
173
        StringBuilder buf = new StringBuilder();
174
        buf.append("ExMediaAtom\n");
174
        buf.append("ExMediaAtom\n");
175
        buf.append("\tObjectId: " + getObjectId() + "\n");
175
        buf.append("\tObjectId: " + getObjectId() + "\n");
176
        buf.append("\tMask    : " + getMask() + "\n");
176
        buf.append("\tMask    : " + getMask() + "\n");
(-)src/scratchpad/src/org/apache/poi/hslf/record/ExOleObjAtom.java (-1 / +1 lines)
Lines 342-348 Link Here
342
    }
342
    }
343
343
344
    public String toString(){
344
    public String toString(){
345
        StringBuffer buf = new StringBuffer();
345
        StringBuilder buf = new StringBuilder();
346
        buf.append("ExOleObjAtom\n");
346
        buf.append("ExOleObjAtom\n");
347
        buf.append("  drawAspect: " + getDrawAspect() + "\n");
347
        buf.append("  drawAspect: " + getDrawAspect() + "\n");
348
        buf.append("  type: " + getType() + "\n");
348
        buf.append("  type: " + getType() + "\n");
(-)src/scratchpad/src/org/apache/poi/hslf/record/HeadersFootersAtom.java (-1 / +1 lines)
Lines 246-252 Link Here
246
    }
246
    }
247
247
248
    public String toString(){
248
    public String toString(){
249
        StringBuffer buf = new StringBuffer();
249
        StringBuilder buf = new StringBuilder();
250
        buf.append("HeadersFootersAtom\n");
250
        buf.append("HeadersFootersAtom\n");
251
        buf.append("\tFormatId: " + getFormatId() + "\n");
251
        buf.append("\tFormatId: " + getFormatId() + "\n");
252
        buf.append("\tMask    : " + getMask() + "\n");
252
        buf.append("\tMask    : " + getMask() + "\n");
(-)src/scratchpad/src/org/apache/poi/hslf/record/StyleTextPropAtom.java (-1 / +1 lines)
Lines 375-381 Link Here
375
     */
375
     */
376
    @Override
376
    @Override
377
    public String toString(){
377
    public String toString(){
378
        StringBuffer out = new StringBuffer();
378
        StringBuilder out = new StringBuilder();
379
379
380
        out.append("StyleTextPropAtom:\n");
380
        out.append("StyleTextPropAtom:\n");
381
        if (!initialised) {
381
        if (!initialised) {
(-)src/scratchpad/src/org/apache/poi/hslf/record/TextBytesAtom.java (-1 / +1 lines)
Lines 114-120 Link Here
114
	 */
114
	 */
115
	@Override
115
	@Override
116
    public String toString() {
116
    public String toString() {
117
        StringBuffer out = new StringBuffer();
117
        StringBuilder out = new StringBuilder();
118
        out.append( "TextBytesAtom:\n");
118
        out.append( "TextBytesAtom:\n");
119
		out.append( HexDump.dump(_text, 0, 0) );
119
		out.append( HexDump.dump(_text, 0, 0) );
120
		return out.toString();
120
		return out.toString();
(-)src/scratchpad/src/org/apache/poi/hslf/record/TextCharsAtom.java (-1 / +1 lines)
Lines 110-116 Link Here
110
	 */
110
	 */
111
	@Override
111
	@Override
112
    public String toString() {
112
    public String toString() {
113
        StringBuffer out = new StringBuffer();
113
        StringBuilder out = new StringBuilder();
114
        out.append( "TextCharsAtom:\n");
114
        out.append( "TextCharsAtom:\n");
115
		out.append( HexDump.dump(_text, 0, 0) );
115
		out.append( HexDump.dump(_text, 0, 0) );
116
		return out.toString();
116
		return out.toString();
(-)src/scratchpad/src/org/apache/poi/hsmf/datatypes/ByteChunk.java (-1 / +1 lines)
Lines 81-87 Link Here
81
            return "(Null Byte Array)";
81
            return "(Null Byte Array)";
82
        }
82
        }
83
83
84
        StringBuffer text = new StringBuffer();
84
        StringBuilder text = new StringBuilder();
85
        text.append("Bytes len=").append(value.length);
85
        text.append("Bytes len=").append(value.length);
86
        text.append(" [");
86
        text.append(" [");
87
87
(-)src/scratchpad/src/org/apache/poi/hsmf/datatypes/MAPIProperty.java (-1 / +1 lines)
Lines 1075-1081 Link Here
1075
1075
1076
    @Override
1076
    @Override
1077
    public String toString() {
1077
    public String toString() {
1078
        StringBuffer str = new StringBuffer();
1078
        StringBuilder str = new StringBuilder();
1079
        str.append(name);
1079
        str.append(name);
1080
        str.append(" [");
1080
        str.append(" [");
1081
        str.append(id);
1081
        str.append(id);
(-)src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordUtils.java (-1 / +1 lines)
Lines 227-233 Link Here
227
    public static String getBulletText( NumberingState numberingState,
227
    public static String getBulletText( NumberingState numberingState,
228
            HWPFList list, char level )
228
            HWPFList list, char level )
229
    {
229
    {
230
        StringBuffer bulletBuffer = new StringBuffer();
230
        StringBuilder bulletBuffer = new StringBuilder();
231
        char[] xst = list.getNumberText( level ).toCharArray();
231
        char[] xst = list.getNumberText( level ).toCharArray();
232
        for ( char element : xst )
232
        for ( char element : xst )
233
        {
233
        {
(-)src/scratchpad/src/org/apache/poi/hwpf/extractor/Word6Extractor.java (-1 / +1 lines)
Lines 123-129 Link Here
123
        catch ( Exception exc )
123
        catch ( Exception exc )
124
        {
124
        {
125
            // fall-back
125
            // fall-back
126
            StringBuffer text = new StringBuffer();
126
            StringBuilder text = new StringBuilder();
127
127
128
            for ( String t : getParagraphText() )
128
            for ( String t : getParagraphText() )
129
            {
129
            {
(-)src/scratchpad/src/org/apache/poi/hwpf/model/EscherRecordHolder.java (-1 / +1 lines)
Lines 63-69 Link Here
63
	}
63
	}
64
64
65
	public String toString() {
65
	public String toString() {
66
		StringBuffer buffer = new StringBuffer();
66
		StringBuilder buffer = new StringBuilder();
67
67
68
		if (escherRecords.size() == 0) {
68
		if (escherRecords.size() == 0) {
69
			buffer.append("No Escher Records Decoded").append("\n");
69
			buffer.append("No Escher Records Decoded").append("\n");
(-)src/scratchpad/src/org/apache/poi/hwpf/model/FSPATable.java (-1 / +1 lines)
Lines 89-95 Link Here
89
89
90
    public String toString()
90
    public String toString()
91
    {
91
    {
92
        StringBuffer buf = new StringBuffer();
92
        StringBuilder buf = new StringBuilder();
93
        buf.append( "[FPSA PLC size=" ).append( _byStart.size() )
93
        buf.append( "[FPSA PLC size=" ).append( _byStart.size() )
94
                .append( "]\n" );
94
                .append( "]\n" );
95
95
(-)src/scratchpad/src/org/apache/poi/hwpf/model/types/FLDAbstractType.java (-1 / +1 lines)
Lines 68-74 Link Here
68
68
69
    public String toString()
69
    public String toString()
70
    {
70
    {
71
        StringBuffer buffer = new StringBuffer();
71
        StringBuilder buffer = new StringBuilder();
72
72
73
        buffer.append( "[FLD]\n" );
73
        buffer.append( "[FLD]\n" );
74
74
(-)src/scratchpad/src/org/apache/poi/hwpf/model/types/TLPAbstractType.java (-1 / +1 lines)
Lines 66-72 Link Here
66
66
67
    public String toString()
67
    public String toString()
68
    {
68
    {
69
        StringBuffer buffer = new StringBuffer();
69
        StringBuilder buffer = new StringBuilder();
70
70
71
        buffer.append( "[TLP]\n" );
71
        buffer.append( "[TLP]\n" );
72
72
(-)src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java (-1 / +1 lines)
Lines 215-221 Link Here
215
        if ( isEmpty() )
215
        if ( isEmpty() )
216
            return "[BRC] EMPTY";
216
            return "[BRC] EMPTY";
217
217
218
        StringBuffer buffer = new StringBuffer();
218
        StringBuilder buffer = new StringBuilder();
219
219
220
        buffer.append( "[BRC]\n" );
220
        buffer.append( "[BRC]\n" );
221
221
(-)src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug46610.java (-1 / +1 lines)
Lines 47-53 Link Here
47
47
48
	private static String runExtract(String sampleName) throws Exception {
48
	private static String runExtract(String sampleName) throws Exception {
49
		HWPFDocument doc = HWPFTestDataSamples.openSampleFile(sampleName);
49
		HWPFDocument doc = HWPFTestDataSamples.openSampleFile(sampleName);
50
		StringBuffer out = new StringBuffer();
50
		StringBuilder out = new StringBuilder();
51
51
52
		Range globalRange = doc.getRange();
52
		Range globalRange = doc.getRange();
53
		for (int i = 0; i < globalRange.numParagraphs(); i++) {
53
		for (int i = 0; i < globalRange.numParagraphs(); i++) {
(-)src/testcases/org/apache/poi/hssf/record/TestStringRecord.java (-1 / +1 lines)
Lines 67-73 Link Here
67
		int MAX_BIFF_DATA = RecordInputStream.MAX_RECORD_DATA_SIZE;
67
		int MAX_BIFF_DATA = RecordInputStream.MAX_RECORD_DATA_SIZE;
68
		int TEXT_LEN = MAX_BIFF_DATA + 1000; // deliberately over-size
68
		int TEXT_LEN = MAX_BIFF_DATA + 1000; // deliberately over-size
69
		String textChunk = "ABCDEGGHIJKLMNOP"; // 16 chars
69
		String textChunk = "ABCDEGGHIJKLMNOP"; // 16 chars
70
		StringBuffer sb = new StringBuffer(16384);
70
		StringBuilder sb = new StringBuilder(16384);
71
		while (sb.length() < TEXT_LEN) {
71
		while (sb.length() < TEXT_LEN) {
72
			sb.append(textChunk);
72
			sb.append(textChunk);
73
		}
73
		}
(-)src/testcases/org/apache/poi/hssf/record/TestTextObjectRecord.java (-1 / +1 lines)
Lines 109-115 Link Here
109
    public void testLongRecords() {
109
    public void testLongRecords() {
110
        int[] lengths = {1024, 2048, 4096, 8192, 16384}; //test against strings of different length
110
        int[] lengths = {1024, 2048, 4096, 8192, 16384}; //test against strings of different length
111
        for (int length : lengths) {
111
        for (int length : lengths) {
112
            StringBuffer buff = new StringBuffer(length);
112
            StringBuilder buff = new StringBuilder(length);
113
            for (int j = 0; j < length; j++) {
113
            for (int j = 0; j < length; j++) {
114
                buff.append("x");
114
                buff.append("x");
115
            }
115
            }
(-)src/testcases/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java (-1 / +1 lines)
Lines 111-117 Link Here
111
			_isVolatile = isVolatile;
111
			_isVolatile = isVolatile;
112
		}
112
		}
113
		private static String convertSpecialChars(String ss) {
113
		private static String convertSpecialChars(String ss) {
114
			StringBuffer sb = new StringBuffer(ss.length() + 4);
114
			StringBuilder sb = new StringBuilder(ss.length() + 4);
115
			for(int i=0; i<ss.length(); i++) {
115
			for(int i=0; i<ss.length(); i++) {
116
				char c = ss.charAt(i);
116
				char c = ss.charAt(i);
117
				if (isSimpleAscii(c)) {
117
				if (isSimpleAscii(c)) {
(-)src/testcases/org/apache/poi/ss/formula/functions/TestIrr.java (-1 / +1 lines)
Lines 90-96 Link Here
90
        HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("IrrNpvTestCaseData.xls");
90
        HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("IrrNpvTestCaseData.xls");
91
        HSSFSheet sheet = wb.getSheet("IRR-NPV");
91
        HSSFSheet sheet = wb.getSheet("IRR-NPV");
92
        HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
92
        HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
93
        StringBuffer failures = new StringBuffer();
93
        StringBuilder failures = new StringBuilder();
94
        int failureCount = 0;
94
        int failureCount = 0;
95
        // TODO YK: Formulas in rows 16 and 17 operate with ArrayPtg which isn't yet supported
95
        // TODO YK: Formulas in rows 16 and 17 operate with ArrayPtg which isn't yet supported
96
        // FormulaEvaluator as of r1041407 throws "Unexpected ptg class (org.apache.poi.ss.formula.ptg.ArrayPtg)"
96
        // FormulaEvaluator as of r1041407 throws "Unexpected ptg class (org.apache.poi.ss.formula.ptg.ArrayPtg)"
(-)src/testcases/org/apache/poi/ss/formula/functions/TestNpv.java (-1 / +1 lines)
Lines 71-77 Link Here
71
        HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("IrrNpvTestCaseData.xls");
71
        HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("IrrNpvTestCaseData.xls");
72
        HSSFSheet sheet = wb.getSheet("IRR-NPV");
72
        HSSFSheet sheet = wb.getSheet("IRR-NPV");
73
        HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
73
        HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
74
        StringBuffer failures = new StringBuffer();
74
        StringBuilder failures = new StringBuilder();
75
        int failureCount = 0;
75
        int failureCount = 0;
76
        // TODO YK: Formulas in rows 16 and 17 operate with ArrayPtg which isn't yet supported
76
        // TODO YK: Formulas in rows 16 and 17 operate with ArrayPtg which isn't yet supported
77
        // FormulaEvaluator as of r1041407 throws "Unexpected ptg class (org.apache.poi.ss.formula.ptg.ArrayPtg)"
77
        // FormulaEvaluator as of r1041407 throws "Unexpected ptg class (org.apache.poi.ss.formula.ptg.ArrayPtg)"

Return to bug 63805