You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2021/10/22 21:34:27 UTC

svn commit: r1894495 - /poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java

Author: fanningpj
Date: Fri Oct 22 21:34:27 2021
New Revision: 1894495

URL: http://svn.apache.org/viewvc?rev=1894495&view=rev
Log:
remove deprecated methods on XSSFColor

Modified:
    poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java

Modified: poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java?rev=1894495&r1=1894494&r2=1894495&view=diff
==============================================================================
--- poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java (original)
+++ poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFColor.java Fri Oct 22 21:34:27 2021
@@ -41,44 +41,12 @@ public class XSSFColor extends ExtendedC
         return color == null ? null : new XSSFColor(color, map);
     }
 
-    /**
-     * Create an instance of XSSFColor from the supplied XML bean, with default color indexes
-     * @param color The {@link CTColor} to use as color-value.
-     * @deprecated 3.17 beta 1 - pass the workbook styles indexed color map, if any
-     */
-    @Deprecated
-    @Removal(version="4.2")
-    public XSSFColor(CTColor color) {
-        this(color, new DefaultIndexedColorMap());
-    }
-
-    /**
-     * Create an instance of XSSFColor from the supplied XML bean, with the given color indexes
-     * @param color The {@link CTColor} to use as color-value.
-     * @param map The IndexedColorMap to use instead of the default one
-     * @deprecated 4.0.0 - use the factory {@link #from(CTColor, IndexedColorMap)} method instead to check for null CTColor instances.  Make private eventually
-     */
-    @Deprecated
-    @Removal(version = "4.2")
-    public XSSFColor(CTColor color, IndexedColorMap map) {
+    private XSSFColor(CTColor color, IndexedColorMap map) {
         this.ctColor = color;
         this.indexedColorMap = map;
     }
 
     /**
-     * Create an new instance of XSSFColor, without knowledge of any custom indexed colors.
-     * This is OK for just transiently setting indexes, etc. but is discouraged in read/get uses
-     * @deprecated as of 4.0.0, we want to have the indexed map, and all calling contexts have access to it.
-     * @see #XSSFColor(IndexedColorMap)
-     * @see #from(CTColor, IndexedColorMap)
-     */
-    @Deprecated
-    @Removal(version="4.2")
-    public XSSFColor() {
-        this(CTColor.Factory.newInstance(), new DefaultIndexedColorMap());
-    }
-
-    /**
      * new color with the given indexed color map
      * @param colorMap The IndexedColorMap to use instead of the default one
      */
@@ -87,17 +55,6 @@ public class XSSFColor extends ExtendedC
     }
 
     /**
-     * Create an instance of XSSFColor from the awt Color
-     * @param clr awt Color
-     * @deprecated 3.17 beta 1 - pass the workbook styles indexed color map, if any
-     */
-    @Deprecated
-    @Removal(version="4.2")
-    public XSSFColor(java.awt.Color clr) {
-        this(clr, new DefaultIndexedColorMap());
-    }
-
-    /**
      * TEST ONLY
      * @param clr awt Color
      * @param map The IndexedColorMap to use instead of the default one



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