]> source.dussan.org Git - poi.git/commitdiff
Fix inconsistent whitespace/indents
authorNick Burch <nick@apache.org>
Mon, 20 Jul 2015 04:56:05 +0000 (04:56 +0000)
committerNick Burch <nick@apache.org>
Mon, 20 Jul 2015 04:56:05 +0000 (04:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691871 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java

index 6dc1bcfa8808ff64974e7d945f0bd32acc3bb6af..89f496fcf402631be7d0dc07b2396d4bd2271c67 100644 (file)
@@ -21,48 +21,48 @@ import org.apache.poi.hssf.record.common.ExtendedColor;
 import org.apache.poi.ss.usermodel.CreationHelper;
 
 public class HSSFCreationHelper implements CreationHelper {
-       private HSSFWorkbook workbook;
-       private HSSFDataFormat dataFormat;
+    private HSSFWorkbook workbook;
+    private HSSFDataFormat dataFormat;
 
-       HSSFCreationHelper(HSSFWorkbook wb) {
-               workbook = wb;
+    HSSFCreationHelper(HSSFWorkbook wb) {
+        workbook = wb;
 
-               // Create the things we only ever need one of
-               dataFormat = new HSSFDataFormat(workbook.getWorkbook());
-       }
+        // Create the things we only ever need one of
+        dataFormat = new HSSFDataFormat(workbook.getWorkbook());
+    }
 
-       public HSSFRichTextString createRichTextString(String text) {
-               return new HSSFRichTextString(text);
-       }
+    public HSSFRichTextString createRichTextString(String text) {
+        return new HSSFRichTextString(text);
+    }
 
-       public HSSFDataFormat createDataFormat() {
-               return dataFormat;
-       }
+    public HSSFDataFormat createDataFormat() {
+        return dataFormat;
+    }
 
-       public HSSFHyperlink createHyperlink(int type) {
-               return new HSSFHyperlink(type);
-       }
+    public HSSFHyperlink createHyperlink(int type) {
+        return new HSSFHyperlink(type);
+    }
 
-       public HSSFExtendedColor createExtendedColor() {
+    public HSSFExtendedColor createExtendedColor() {
         return new HSSFExtendedColor(new ExtendedColor());
     }
 
     /**
-        * Creates a HSSFFormulaEvaluator, the object that evaluates formula cells.
-        *
-        * @return a HSSFFormulaEvaluator instance
-        */
-       public HSSFFormulaEvaluator createFormulaEvaluator(){
-               return new HSSFFormulaEvaluator(workbook);
-       }
+     * Creates a HSSFFormulaEvaluator, the object that evaluates formula cells.
+     *
+     * @return a HSSFFormulaEvaluator instance
+     */
+    public HSSFFormulaEvaluator createFormulaEvaluator(){
+        return new HSSFFormulaEvaluator(workbook);
+    }
 
-       /**
-        * Creates a HSSFClientAnchor. Use this object to position drawing object in a sheet
-        *
-        * @return a HSSFClientAnchor instance
-        * @see org.apache.poi.ss.usermodel.Drawing
-        */
-       public HSSFClientAnchor createClientAnchor(){
-               return new HSSFClientAnchor();
-       }
+    /**
+     * Creates a HSSFClientAnchor. Use this object to position drawing object in a sheet
+     *
+     * @return a HSSFClientAnchor instance
+     * @see org.apache.poi.ss.usermodel.Drawing
+     */
+    public HSSFClientAnchor createClientAnchor(){
+        return new HSSFClientAnchor();
+    }
 }
index 154fec6ff43a8457adba96a38adf37fd64e6799b..086311494554acd639401ac3e8f59eb278ae9773 100644 (file)
@@ -20,24 +20,24 @@ import org.apache.poi.ss.usermodel.CreationHelper;
 import org.apache.poi.ss.usermodel.Hyperlink;
 
 public class XSSFCreationHelper implements CreationHelper {
-       private XSSFWorkbook workbook;
+    private XSSFWorkbook workbook;
 
-       XSSFCreationHelper(XSSFWorkbook wb) {
-               workbook = wb;
-       }
+    XSSFCreationHelper(XSSFWorkbook wb) {
+        workbook = wb;
+    }
 
-       /**
-        * Creates a new XSSFRichTextString for you.
-        */
-       public XSSFRichTextString createRichTextString(String text) {
-               XSSFRichTextString rt = new XSSFRichTextString(text);
-               rt.setStylesTableReference(workbook.getStylesSource());
-               return rt;
-       }
+    /**
+     * Creates a new XSSFRichTextString for you.
+     */
+    public XSSFRichTextString createRichTextString(String text) {
+        XSSFRichTextString rt = new XSSFRichTextString(text);
+        rt.setStylesTableReference(workbook.getStylesSource());
+        return rt;
+    }
 
-       public XSSFDataFormat createDataFormat() {
-               return workbook.createDataFormat();
-       }
+    public XSSFDataFormat createDataFormat() {
+        return workbook.createDataFormat();
+    }
 
     public XSSFColor createExtendedColor() {
         return new XSSFColor();
@@ -48,27 +48,27 @@ public class XSSFCreationHelper implements CreationHelper {
      *
      * @param type - the type of hyperlink to create, see {@link Hyperlink}
      */
-       public XSSFHyperlink createHyperlink(int type) {
-               return new XSSFHyperlink(type);
-       }
+    public XSSFHyperlink createHyperlink(int type) {
+        return new XSSFHyperlink(type);
+    }
 
-       /**
-        * Creates a XSSFFormulaEvaluator, the object that evaluates formula cells.
-        *
-        * @return a XSSFFormulaEvaluator instance
-        */
-       public XSSFFormulaEvaluator createFormulaEvaluator() {
-               return new XSSFFormulaEvaluator(workbook);
-       }
+    /**
+     * Creates a XSSFFormulaEvaluator, the object that evaluates formula cells.
+     *
+     * @return a XSSFFormulaEvaluator instance
+     */
+    public XSSFFormulaEvaluator createFormulaEvaluator() {
+        return new XSSFFormulaEvaluator(workbook);
+    }
 
-       /**
-        * Creates a XSSFClientAnchor. Use this object to position drawing object in
-        * a sheet
-        *
-        * @return a XSSFClientAnchor instance
-        * @see org.apache.poi.ss.usermodel.Drawing
-        */
-       public XSSFClientAnchor createClientAnchor() {
-               return new XSSFClientAnchor();
-       }
+    /**
+     * Creates a XSSFClientAnchor. Use this object to position drawing object in
+     * a sheet
+     *
+     * @return a XSSFClientAnchor instance
+     * @see org.apache.poi.ss.usermodel.Drawing
+     */
+    public XSSFClientAnchor createClientAnchor() {
+        return new XSSFClientAnchor();
+    }
 }