From eddef8c7f8cb97a8043c2e92dd578de6ddd5238f Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 24 Jul 2014 16:22:28 +0000 Subject: [PATCH] Fix inconsistent whitespace git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613174 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/hssf/usermodel/HSSFOptimiser.java | 235 +++++++++--------- 1 file changed, 117 insertions(+), 118 deletions(-) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java b/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java index 7c0851a42e..d05480dbf1 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java @@ -163,122 +163,121 @@ public class HSSFOptimiser { } } - /** - * Goes through the Wokrbook, optimising the cell styles - * by removing duplicate ones, and ones that aren't used. - * For best results, optimise the fonts via a call to - * {@link #optimiseFonts(HSSFWorkbook)} first. - * @param workbook The workbook in which to optimise the cell styles - */ - public static void optimiseCellStyles(HSSFWorkbook workbook) { - // Where each style has ended up, and if we need to - // delete the record for it. Start off with no change - short[] newPos = - new short[workbook.getWorkbook().getNumExFormats()]; - boolean[] isUsed = new boolean[newPos.length]; - boolean[] zapRecords = new boolean[newPos.length]; - for(int i=0; i