Sfoglia il codice sorgente

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 anni fa
parent
commit
d66307cb67

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

} }


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;
} }

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

* *
* @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() {
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(); return mbs.getShape();
} }
} }

Loading…
Annulla
Salva