From: Dominik Stadler Date: Mon, 15 Feb 2016 08:33:12 +0000 (+0000) Subject: Seems we need a cast here to compile with some newer JDKs, at least IntelliJ complain... X-Git-Tag: REL_3_14_FINAL~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e156c3d6910752dfa6fd10250038da1c08c58530;p=poi.git 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 --- 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> paragraphs = getShape().iterator(); - + //noinspection RedundantCast + Iterator> paragraphs = (Iterator>) getShape().iterator(); + boolean isFirstLine = true; for (int autoNbrIdx=0; paragraphs.hasNext(); autoNbrIdx++){ TextParagraph p = paragraphs.next();