You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2016/02/15 09:33:12 UTC
svn commit: r1730464 -
/poi/trunk/src/java/org/apache/poi/sl/draw/DrawTextShape.java
Author: centic
Date: Mon Feb 15 08:33:12 2016
New Revision: 1730464
URL: http://svn.apache.org/viewvc?rev=1730464&view=rev
Log:
Seems we need a cast here to compile with some newer JDKs, at least IntelliJ complains for me
Modified:
poi/trunk/src/java/org/apache/poi/sl/draw/DrawTextShape.java
Modified: poi/trunk/src/java/org/apache/poi/sl/draw/DrawTextShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/sl/draw/DrawTextShape.java?rev=1730464&r1=1730463&r2=1730464&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/sl/draw/DrawTextShape.java (original)
+++ poi/trunk/src/java/org/apache/poi/sl/draw/DrawTextShape.java Mon Feb 15 08:33:12 2016
@@ -60,7 +60,7 @@ public class DrawTextShape extends DrawS
vertFlip ^= ps.getFlipVertical();
horzFlip ^= ps.getFlipHorizontal();
sc = ps.getParent();
- };
+ }
// Horizontal flipping applies only to shape outline and not to the text in the shape.
// Applying flip second time restores the original not-flipped transform
@@ -109,8 +109,9 @@ public class DrawTextShape extends DrawS
DrawFactory fact = DrawFactory.getInstance(graphics);
double y0 = y;
- Iterator<? extends TextParagraph<?,?,? extends TextRun>> paragraphs = getShape().iterator();
-
+ //noinspection RedundantCast
+ Iterator<? extends TextParagraph<?,?,? extends TextRun>> paragraphs = (Iterator<? extends TextParagraph<?, ?, ? extends TextRun>>) getShape().iterator();
+
boolean isFirstLine = true;
for (int autoNbrIdx=0; paragraphs.hasNext(); autoNbrIdx++){
TextParagraph<?,?,? extends TextRun> p = paragraphs.next();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org