diff options
author | Dominik Stadler <centic@apache.org> | 2016-02-15 08:33:12 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2016-02-15 08:33:12 +0000 |
commit | e156c3d6910752dfa6fd10250038da1c08c58530 (patch) | |
tree | 7acf4b3e07ece21bfbee2d5a0aec86c7b517b9d5 | |
parent | 6979efe4745da5825bbc77a8e15428abd4bbc407 (diff) | |
download | poi-e156c3d6910752dfa6fd10250038da1c08c58530.tar.gz poi-e156c3d6910752dfa6fd10250038da1c08c58530.zip |
Seems we need a cast here to compile with some newer JDKs, at least IntelliJ complains for me
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1730464 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/poi/sl/draw/DrawTextShape.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/sl/draw/DrawTextShape.java b/src/java/org/apache/poi/sl/draw/DrawTextShape.java index 77af128d29..06b57dab26 100644 --- a/src/java/org/apache/poi/sl/draw/DrawTextShape.java +++ b/src/java/org/apache/poi/sl/draw/DrawTextShape.java @@ -60,7 +60,7 @@ public class DrawTextShape extends DrawSimpleShape { 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 DrawSimpleShape { 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();
|