Generics fix for metro shapes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f316a0f115
commit
d74cfc4df5
@ -444,7 +444,7 @@ public final class HSLFTextRun implements TextRun {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ts.getSheet() instanceof MasterSheet) {
|
if (ts.getSheet() instanceof MasterSheet) {
|
||||||
TextShape<?,? extends TextParagraph<?,?,TextRun>> ms = ts.getMetroShape();
|
TextShape<?,? extends TextParagraph<?,?,? extends TextRun>> ms = ts.getMetroShape();
|
||||||
if (ms == null) {
|
if (ms == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -927,8 +927,8 @@ implements TextShape<HSLFShape,HSLFTextParagraph> {
|
|||||||
*
|
*
|
||||||
* @return null, if there's no alternative representation, otherwise the text shape
|
* @return null, if there's no alternative representation, otherwise the text shape
|
||||||
*/
|
*/
|
||||||
public TextShape<?,? extends TextParagraph<?,?,TextRun>> getMetroShape() {
|
public TextShape<?,? extends TextParagraph<?,?,? extends TextRun>> getMetroShape() {
|
||||||
HSLFMetroShape<TextShape<?,? extends TextParagraph<?,?,TextRun>>> mbs = new HSLFMetroShape<TextShape<?,? extends TextParagraph<?,?,TextRun>>>(this);
|
HSLFMetroShape<TextShape<?,? extends TextParagraph<?,?,? extends TextRun>>> mbs = new HSLFMetroShape<TextShape<?,? extends TextParagraph<?,?,? extends TextRun>>>(this);
|
||||||
return mbs.getShape();
|
return mbs.getShape();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user