poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1742869 - in /poi/trunk/src: java/org/apache/poi/hssf/usermodel/HSSFComment.java ooxml/java/org/apache/poi/xssf/usermodel/XSSFComment.java
Date Mon, 09 May 2016 03:53:55 GMT
Author: onealj
Date: Mon May  9 03:53:55 2016
New Revision: 1742869

URL: http://svn.apache.org/viewvc?rev=1742869&view=rev
Log:
whitespace

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFComment.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java?rev=1742869&r1=1742868&r2=1742869&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java Mon May  9 03:53:55
2016
@@ -132,9 +132,9 @@ public class HSSFComment extends HSSFTex
 
     @Override
     void setShapeId(int shapeId) {
-    	if(shapeId > 65535) {
-    		throw new IllegalArgumentException("Cannot add more than " + 65535 + " shapes");
-    	}
+        if(shapeId > 65535) {
+            throw new IllegalArgumentException("Cannot add more than " + 65535 + " shapes");
+        }
         super.setShapeId(shapeId);
         CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord) getObjRecord().getSubRecords().get(0);
         cod.setObjectId(shapeId);

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFComment.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFComment.java?rev=1742869&r1=1742868&r2=1742869&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFComment.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFComment.java Mon May  9 03:53:55
2016
@@ -32,9 +32,9 @@ import org.openxmlformats.schemas.spread
 import com.microsoft.schemas.vml.CTShape;
 
 public class XSSFComment implements Comment {
-	
-	private final CTComment _comment;
-	private final CommentsTable _comments;
+    
+    private final CTComment _comment;
+    private final CommentsTable _comments;
     private final CTShape _vmlShape;
 
     /**
@@ -43,12 +43,12 @@ public class XSSFComment implements Comm
     private XSSFRichTextString _str;
 
     /**
-	 * Creates a new XSSFComment, associated with a given
-	 *  low level comment object.
-	 */
-	public XSSFComment(CommentsTable comments, CTComment comment, CTShape vmlShape) {
-		_comment = comment;
-		_comments = comments;
+     * Creates a new XSSFComment, associated with a given
+     *  low level comment object.
+     */
+    public XSSFComment(CommentsTable comments, CTComment comment, CTShape vmlShape) {
+        _comment = comment;
+        _comments = comments;
         _vmlShape = vmlShape;
 
         // we potentially need to adjust the column/row information in the shape
@@ -66,15 +66,15 @@ public class XSSFComment implements Comm
             // This call seems to fix them again... See bug #50795
             vmlShape.getClientDataList().toString();
         }
-	}
+    }
 
     /**
      *
      * @return Name of the original comment author. Default value is blank.
      */
     public String getAuthor() {
-		return _comments.getAuthor((int) _comment.getAuthorId());
-	}
+        return _comments.getAuthor((int) _comment.getAuthorId());
+    }
 
     /**
      * Name of the original comment author. Default value is blank.
@@ -90,16 +90,16 @@ public class XSSFComment implements Comm
     /**
      * @return the 0-based column of the cell that the comment is associated with.
      */
-	public int getColumn() {
-		return new CellReference(_comment.getRef()).getCol();
-	}
+    public int getColumn() {
+        return new CellReference(_comment.getRef()).getCol();
+    }
 
     /**
      * @return the 0-based row index of the cell that the comment is associated with.
      */
-	public int getRow() {
-		return new CellReference(_comment.getRef()).getRow();
-	}
+    public int getRow() {
+        return new CellReference(_comment.getRef()).getRow();
+    }
 
     /**
      * @return whether the comment is visible
@@ -110,8 +110,8 @@ public class XSSFComment implements Comm
             String style = _vmlShape.getStyle();
             visible = style != null && style.indexOf("visibility:visible") != -1;
         }
-		return visible;
-	}
+        return visible;
+    }
 
     /**
      * @param visible whether the comment is visible
@@ -147,24 +147,24 @@ public class XSSFComment implements Comm
            // This call seems to fix them again... See bug #50795
            _vmlShape.getClientDataList().toString();
         }
-	}
+    }
 
     /**
      * Set the row of the cell that contains the comment
      *
      * @param row the 0-based row of the cell that contains the comment
      */
-	public void setRow(int row) {
-	   CellAddress oldRef = new CellAddress(_comment.getRef());
-	   
-		CellAddress ref = new CellAddress(row, getColumn());
-		_comment.setRef(ref.formatAsString());
-		_comments.referenceUpdated(oldRef, _comment);
+    public void setRow(int row) {
+       CellAddress oldRef = new CellAddress(_comment.getRef());
+       
+        CellAddress ref = new CellAddress(row, getColumn());
+        _comment.setRef(ref.formatAsString());
+        _comments.referenceUpdated(oldRef, _comment);
       
         if(_vmlShape != null) {
-        	_vmlShape.getClientDataArray(0).setRowArray(0, 
-        			new BigInteger(String.valueOf(row)));
-        	
+            _vmlShape.getClientDataArray(0).setRowArray(0, 
+                    new BigInteger(String.valueOf(row)));
+            
             // There is a very odd xmlbeans bug when changing the row
             //  arrays which can lead to corrupt pointer
             // This call seems to fix them again... See bug #50795
@@ -175,30 +175,30 @@ public class XSSFComment implements Comm
     /**
      * @return the rich text string of the comment
      */
-	public XSSFRichTextString getString() {
-		if(_str == null) {
+    public XSSFRichTextString getString() {
+        if(_str == null) {
             CTRst rst = _comment.getText();
             if(rst != null) _str = new XSSFRichTextString(_comment.getText());
         }
         return _str;
-	}
+    }
 
     /**
      * Sets the rich text string used by this comment.
      *
      * @param string  the XSSFRichTextString used by this object.
      */
-	public void setString(RichTextString string) {
+    public void setString(RichTextString string) {
         if(!(string instanceof XSSFRichTextString)){
             throw new IllegalArgumentException("Only XSSFRichTextString argument is supported");
         }
         _str = (XSSFRichTextString)string;
         _comment.setText(_str.getCTRst());
-	}
-	
-	public void setString(String string) {
-		setString(new XSSFRichTextString(string));
-	}
+    }
+    
+    public void setString(String string) {
+        setString(new XSSFRichTextString(string));
+    }
 
     @Override
     public ClientAnchor getClientAnchor() {



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


Mime
View raw message