poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1691871 - in /poi/trunk/src: java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java
Date Mon, 20 Jul 2015 04:56:05 GMT
Author: nick
Date: Mon Jul 20 04:56:05 2015
New Revision: 1691871

URL: http://svn.apache.org/r1691871
Log:
Fix inconsistent whitespace/indents

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

Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java?rev=1691871&r1=1691870&r2=1691871&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFCreationHelper.java Mon Jul 20 04:56:05
2015
@@ -21,48 +21,48 @@ import org.apache.poi.hssf.record.common
 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 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 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();
+    }
 }

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java?rev=1691871&r1=1691870&r2=1691871&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCreationHelper.java Mon Jul
20 04:56:05 2015
@@ -20,24 +20,24 @@ import org.apache.poi.ss.usermodel.Creat
 import org.apache.poi.ss.usermodel.Hyperlink;
 
 public class XSSFCreationHelper implements CreationHelper {
-	private XSSFWorkbook workbook;
+    private XSSFWorkbook workbook;
 
-	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;
-	}
-
-	public XSSFDataFormat createDataFormat() {
-		return workbook.createDataFormat();
-	}
+    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;
+    }
+
+    public XSSFDataFormat createDataFormat() {
+        return workbook.createDataFormat();
+    }
 
     public XSSFColor createExtendedColor() {
         return new XSSFColor();
@@ -48,27 +48,27 @@ public class XSSFCreationHelper implemen
      *
      * @param type - the type of hyperlink to create, see {@link Hyperlink}
      */
-	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 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();
-	}
+    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 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();
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message