From d74cfc4df5cc01077f5c5ffe9a0859bb598adf39 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Mon, 13 Feb 2017 06:46:59 +0000 Subject: [PATCH] Generics fix for metro shapes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782722 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hslf/usermodel/HSLFTextRun.java | 2 +- .../src/org/apache/poi/hslf/usermodel/HSLFTextShape.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java index 7af81ce2f2..540c92eb2e 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextRun.java @@ -444,7 +444,7 @@ public final class HSLFTextRun implements TextRun { } if (ts.getSheet() instanceof MasterSheet) { - TextShape> ms = ts.getMetroShape(); + TextShape> ms = ts.getMetroShape(); if (ms == null) { return null; } diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java index 6756e9ec96..d7b4e27734 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFTextShape.java @@ -927,8 +927,8 @@ implements TextShape { * * @return null, if there's no alternative representation, otherwise the text shape */ - public TextShape> getMetroShape() { - HSLFMetroShape>> mbs = new HSLFMetroShape>>(this); + public TextShape> getMetroShape() { + HSLFMetroShape>> mbs = new HSLFMetroShape>>(this); return mbs.getShape(); } } \ No newline at end of file -- 2.39.5