You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ta...@apache.org on 2017/01/20 12:10:29 UTC

svn commit: r1779613 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java

Author: tallison
Date: Fri Jan 20 12:10:29 2017
New Revision: 1779613

URL: http://svn.apache.org/viewvc?rev=1779613&view=rev
Log:
Bug 60608 -- improve charset handling in Hwmf -- remove deprecated drawString(String...

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java?rev=1779613&r1=1779612&r2=1779613&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/draw/HwmfGraphics.java Fri Jan 20 12:10:29 2017
@@ -316,30 +316,10 @@ public class HwmfGraphics {
         }
     }
 
-    /**
-     *
-     * @param text
-     * @param bounds
-     * @deprecated use {@link #drawString(byte[], Rectangle2D)}
-     */
-    public void drawString(String text, Rectangle2D bounds) {
-        drawString(text, bounds, null);
-    }
-
     public void drawString(byte[] text, Rectangle2D bounds) {
         drawString(text, bounds, null);
     }
 
-    /**
-     *
-     * @param text
-     * @param bounds
-     * @deprecated use {@link #drawString(byte[], Rectangle2D, int[])}
-     */
-    public void drawString(String text, Rectangle2D bounds, int dx[]) {
-        drawString(text.getBytes(DEFAULT_CHARSET), bounds, dx);
-    }
-
     public void drawString(byte[] text, Rectangle2D bounds, int dx[]) {
         HwmfFont font = prop.getFont();
         if (font == null || text == null || text.length == 0) {



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