<changes>
<release version="3.8-beta1" date="2010-??-??">
+ <action dev="POI-DEVELOPERS" type="add">50446 - Code cleanup and optimizations to keep some IDE quiet</action>
<action dev="POI-DEVELOPERS" type="add">50437 - Support passing ranges to NPV()</action>
<action dev="POI-DEVELOPERS" type="add">50409 - Added implementation for IRR()</action>
<action dev="poi-developers" type="add">47405 - Improved performance of RowRecordsAggregate.getStartRowNumberForBlock / getEndRowNumberForBlock</action>
private final int[] bucketAbsoluteOffsets;
/** Offsets relative the start of the current SST or continue record */
private final int[] bucketRelativeOffsets;
- int startOfSST, startOfRecord;
public SSTSerializer( IntMapper<UnicodeString> strings, int numStrings, int numUniqueStrings )
{
ext.formattingFontIndex = formattingFontIndex;
ext.formattingOptions = formattingOptions;
ext.numberOfRuns = numberOfRuns;
- ext.phoneticText = new String(phoneticText);
+ ext.phoneticText = phoneticText;
ext.phRuns = new PhRun[phRuns.length];
for(int i=0; i<ext.phRuns.length; i++) {
ext.phRuns[i] = new PhRun(
public void drawString(AttributedCharacterIterator attributedcharacteriterator, int x, int y)
{
- drawString(attributedcharacteriterator, x, y);
+ getEscherGraphics().drawString(attributedcharacteriterator, x, y);
}
public void fill(Shape shape)
public void addChar( char c, int width )
{
- charWidths.put(new Character(c), Integer.valueOf(width));
+ charWidths.put(Character.valueOf(c), Integer.valueOf(width));
}
/**
*/
public int getCharWidth( char c )
{
- Integer widthInteger = charWidths.get(new Character(c));
+ Integer widthInteger = charWidths.get(Character.valueOf(c));
if (widthInteger == null && c != 'W') {
return getCharWidth('W');
}
{
for ( int i = 0; i < characters.length; i++ )
{
- charWidths.put( new Character(characters[i]), Integer.valueOf(widths[i]));
+ charWidths.put( Character.valueOf(characters[i]), Integer.valueOf(widths[i]));
}
}
gbm.setAccessible(true);
for(int i=0; i<Math.min(16, data_blocks.blockCount()); i++) {
- ListManagedBlock block = (ListManagedBlock)gbm.invoke(data_blocks, new Integer(i));
+ ListManagedBlock block = (ListManagedBlock)gbm.invoke(data_blocks, Integer.valueOf(i));
byte[] data = new byte[Math.min(48, block.getData().length)];
System.arraycopy(block.getData(), 0, data, 0, data.length);
for (int j = 0; j < array.length; j++)
{
- results.add(new Character(array[ j ]));
+ results.add(Character.valueOf(array[ j ]));
}
}
else if (object instanceof short [])
j += 33;
// System.out.println(j);
sb.append(">");
- sb.append(new Character(j));
+ sb.append(Character.valueOf(j));
sb.append("=");
sb.append(umlaute[rand.nextInt(umlaute.length)]);
sb.append("<");
j += 33;
// System.out.println(j);
sb.append(">");
- sb.append(new Character(j));
+ sb.append(Character.valueOf(j));
sb.append("=");
sb.append(umlaute[rand.nextInt(umlaute.length)]);
sb.append("<");
public void addTestRow(long rawBits, String expectedExcelRendering) {
writeDataRow(_sheet, _rowIndex++, rawBits, expectedExcelRendering);
if(Double.isNaN(Double.longBitsToDouble(rawBits))) {
- _replacementNaNs.add(new Long(rawBits));
+ _replacementNaNs.add(Long.valueOf(rawBits));
}
}
public void initialize(String cat) {}
public void log(int level, Object obj1) {
- logged.add(new String(level + " - " + obj1));
+ logged.add(level + " - " + obj1);
}
public void log(int level, Object obj1, Throwable exception) {
- logged.add(new String(level + " - " + obj1 + " - " + exception));
+ logged.add(level + " - " + obj1 + " - " + exception);
}
}