Return-Path: X-Original-To: apmail-poi-commits-archive@minotaur.apache.org Delivered-To: apmail-poi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3169A11841 for ; Thu, 24 Jul 2014 16:22:54 +0000 (UTC) Received: (qmail 31865 invoked by uid 500); 24 Jul 2014 16:22:54 -0000 Delivered-To: apmail-poi-commits-archive@poi.apache.org Received: (qmail 31825 invoked by uid 500); 24 Jul 2014 16:22:54 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 31813 invoked by uid 99); 24 Jul 2014 16:22:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 16:22:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 16:22:54 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0E09D23889B9; Thu, 24 Jul 2014 16:22:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1613174 - /poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java Date: Thu, 24 Jul 2014 16:22:28 -0000 To: commits@poi.apache.org From: nick@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140724162229.0E09D23889B9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: nick Date: Thu Jul 24 16:22:28 2014 New Revision: 1613174 URL: http://svn.apache.org/r1613174 Log: Fix inconsistent whitespace Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java?rev=1613174&r1=1613173&r2=1613174&view=diff ============================================================================== --- poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java (original) +++ poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFOptimiser.java Thu Jul 24 16:22:28 2014 @@ -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