Author: onealj
Date: Wed Jun 15 04:08:56 2016
New Revision: 1748491

URL: http://svn.apache.org/viewvc?rev=1748491&view=rev
Log:
add @Override annotations

Modified:
    
poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java

Modified: 
poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java?rev=1748491&r1=1748490&r2=1748491&view=diff
==============================================================================
--- 
poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java 
(original)
+++ 
poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFontFormatting.java 
Wed Jun 15 04:08:56 2016
@@ -46,6 +46,7 @@ public class XSSFFontFormatting implemen
      * @see #SS_SUPER
      * @see #SS_SUB
      */
+    @Override
     public short getEscapementType(){
         if(_font.sizeOfVertAlignArray() == 0) return SS_NONE;
 
@@ -61,6 +62,7 @@ public class XSSFFontFormatting implemen
      * @see #SS_SUPER
      * @see #SS_SUB
      */
+    @Override
     public void setEscapementType(short escapementType){
         _font.setVertAlignArray(null);
         if(escapementType != SS_NONE){
@@ -71,6 +73,7 @@ public class XSSFFontFormatting implemen
     /**
      * @return font color index
      */
+    @Override
     public short getFontColorIndex(){
         if(_font.sizeOfColorArray() == 0) return -1;
 
@@ -83,6 +86,7 @@ public class XSSFFontFormatting implemen
     /**
      * @param color font color index
      */
+    @Override
     public void setFontColorIndex(short color){
         _font.setColorArray(null);
         if(color != -1){
@@ -90,12 +94,14 @@ public class XSSFFontFormatting implemen
         }
     }
 
+    @Override
     public XSSFColor getFontColor() {
         if(_font.sizeOfColorArray() == 0) return null;
 
         return new XSSFColor(_font.getColorArray(0));
     }
 
+    @Override
     public void setFontColor(Color color) {
         XSSFColor xcolor = XSSFColor.toXSSFColor(color);
         if (xcolor == null) {
@@ -117,6 +123,7 @@ public class XSSFFontFormatting implemen
      *
      * @return fontheight (in points/20); or -1 if not modified
      */
+    @Override
     public int getFontHeight(){
         if(_font.sizeOfSzArray() == 0) return -1;
 
@@ -129,6 +136,7 @@ public class XSSFFontFormatting implemen
      *
      * @param height the height in twips (in points/20)
      */
+    @Override
     public void setFontHeight(int height){
         _font.setSzArray(null);
         if(height != -1){
@@ -147,6 +155,7 @@ public class XSSFFontFormatting implemen
      * @see #U_SINGLE_ACCOUNTING
      * @see #U_DOUBLE_ACCOUNTING
      */
+    @Override
     public short getUnderlineType(){
         if(_font.sizeOfUArray() == 0) return U_NONE;
         CTUnderlineProperty u = _font.getUArray(0);
@@ -170,6 +179,7 @@ public class XSSFFontFormatting implemen
      * @see #U_SINGLE_ACCOUNTING
      * @see #U_DOUBLE_ACCOUNTING
      */
+    @Override
     public void setUnderlineType(short underlineType){
         _font.setUArray(null);
         if(underlineType != U_NONE){
@@ -184,6 +194,7 @@ public class XSSFFontFormatting implemen
      *
      * @return bold - whether the font is bold or not
      */
+    @Override
     public boolean isBold(){
         return _font.sizeOfBArray() == 1 && _font.getBArray(0).getVal();
     }
@@ -191,6 +202,7 @@ public class XSSFFontFormatting implemen
     /**
      * @return true if font style was set to <i>italic</i>
      */
+    @Override
     public boolean isItalic(){
         return _font.sizeOfIArray() == 1 && _font.getIArray(0).getVal();
     }
@@ -201,6 +213,7 @@ public class XSSFFontFormatting implemen
      * @param italic - if true, set posture style to italic, otherwise to 
normal
      * @param bold if true, set font weight to bold, otherwise to normal
      */
+    @Override
     public void setFontStyle(boolean italic, boolean bold){
         _font.setIArray(null);
         _font.setBArray(null);
@@ -211,6 +224,7 @@ public class XSSFFontFormatting implemen
     /**
      * set font style options to default values (non-italic, non-bold)
      */
+    @Override
     public void resetFontStyle(){
         _font.set(CTFont.Factory.newInstance());
     }



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

Reply via email to