Browse Source

My version of Java 6 chokes on Generics here

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802633 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_17_FINAL
Dominik Stadler 7 years ago
parent
commit
7b8e1c9150
1 changed files with 3 additions and 6 deletions
  1. 3
    6
      src/java/org/apache/poi/sl/draw/DrawFreeformShape.java

+ 3
- 6
src/java/org/apache/poi/sl/draw/DrawFreeformShape.java View 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;
}
}

Loading…
Cancel
Save