]> source.dussan.org Git - poi.git/commitdiff
My version of Java 6 chokes on Generics here
authorDominik Stadler <centic@apache.org>
Fri, 21 Jul 2017 18:19:29 +0000 (18:19 +0000)
committerDominik Stadler <centic@apache.org>
Fri, 21 Jul 2017 18:19:29 +0000 (18:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802633 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/sl/draw/DrawFreeformShape.java

index d0025cb4fde1f73d671c91f227f6f1cdd2face80..cecf2e9c668fdeb7629ae8dc8044b0837d49e04b 100644 (file)
@@ -26,10 +26,7 @@ import java.util.List;
 
 import org.apache.poi.sl.draw.geom.Outline;
 import org.apache.poi.sl.draw.geom.Path;
-import org.apache.poi.sl.usermodel.FillStyle;
-import org.apache.poi.sl.usermodel.FreeformShape;
-import org.apache.poi.sl.usermodel.StrokeStyle;
-import org.apache.poi.sl.usermodel.TextShape;
+import org.apache.poi.sl.usermodel.*;
 
 public class DrawFreeformShape extends DrawAutoShape {
     public DrawFreeformShape(FreeformShape<?,?> shape) {
@@ -56,7 +53,7 @@ public class DrawFreeformShape extends DrawAutoShape {
     }
 
     @Override
-    protected TextShape<?,?> getShape() {
-        return (TextShape<?,?>)shape;
+    protected TextShape<?,? extends TextParagraph<?,?,? extends TextRun>> getShape() {
+        return (TextShape<?,? extends TextParagraph<?,?,? extends TextRun>>)shape;
     }
 }