Browse Source

Generics fix for metro shapes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782722 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_16_FINAL
Andreas Beeker 7 years ago
parent
commit
d66307cb67

+ 1
- 1
src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java View File

@@ -444,7 +444,7 @@ public final class HSLFTextRun implements TextRun {
}

if (ts.getSheet() instanceof MasterSheet) {
TextShape<?,? extends TextParagraph<?,?,TextRun>> ms = ts.getMetroShape();
TextShape<?,? extends TextParagraph<?,?,? extends TextRun>> ms = ts.getMetroShape();
if (ms == null) {
return null;
}

+ 2
- 2
src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java View File

@@ -927,8 +927,8 @@ implements TextShape<HSLFShape,HSLFTextParagraph> {
*
* @return null, if there's no alternative representation, otherwise the text shape
*/
public TextShape<?,? extends TextParagraph<?,?,TextRun>> getMetroShape() {
HSLFMetroShape<TextShape<?,? extends TextParagraph<?,?,TextRun>>> mbs = new HSLFMetroShape<TextShape<?,? extends TextParagraph<?,?,TextRun>>>(this);
public TextShape<?,? extends TextParagraph<?,?,? extends TextRun>> getMetroShape() {
HSLFMetroShape<TextShape<?,? extends TextParagraph<?,?,? extends TextRun>>> mbs = new HSLFMetroShape<TextShape<?,? extends TextParagraph<?,?,? extends TextRun>>>(this);
return mbs.getShape();
}
}

Loading…
Cancel
Save