diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2017-07-09 15:27:29 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2017-07-09 15:27:29 +0000 |
commit | 236678598e1d13968868e090b54fc876c8d5dab6 (patch) | |
tree | 314e08656bdd559875b10ed9eeaa85b9ad7b6dbf /src/java/org | |
parent | 8c6e00d62647d0cb233d6af284e21a139d14814b (diff) | |
download | poi-236678598e1d13968868e090b54fc876c8d5dab6.tar.gz poi-236678598e1d13968868e090b54fc876c8d5dab6.zip |
Rollback of r1801368 because of a generics bug with self-referenced types in Java6
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1801373 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
23 files changed, 24 insertions, 24 deletions
diff --git a/src/java/org/apache/poi/sl/usermodel/AutoShape.java b/src/java/org/apache/poi/sl/usermodel/AutoShape.java index bea0502135..5a77bdae4c 100644 --- a/src/java/org/apache/poi/sl/usermodel/AutoShape.java +++ b/src/java/org/apache/poi/sl/usermodel/AutoShape.java @@ -19,6 +19,6 @@ package org.apache.poi.sl.usermodel; public interface AutoShape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends TextShape<S,P> { } diff --git a/src/java/org/apache/poi/sl/usermodel/Background.java b/src/java/org/apache/poi/sl/usermodel/Background.java index 879879a209..64f3b36a5f 100644 --- a/src/java/org/apache/poi/sl/usermodel/Background.java +++ b/src/java/org/apache/poi/sl/usermodel/Background.java @@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel; public interface Background< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Shape<S,P> { FillStyle getFillStyle(); } diff --git a/src/java/org/apache/poi/sl/usermodel/ConnectorShape.java b/src/java/org/apache/poi/sl/usermodel/ConnectorShape.java index 2b580daeb8..e10c7507dd 100644 --- a/src/java/org/apache/poi/sl/usermodel/ConnectorShape.java +++ b/src/java/org/apache/poi/sl/usermodel/ConnectorShape.java @@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel; public interface ConnectorShape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends SimpleShape<S,P> { } diff --git a/src/java/org/apache/poi/sl/usermodel/FreeformShape.java b/src/java/org/apache/poi/sl/usermodel/FreeformShape.java index 2a1580a7da..c8ada26f22 100644 --- a/src/java/org/apache/poi/sl/usermodel/FreeformShape.java +++ b/src/java/org/apache/poi/sl/usermodel/FreeformShape.java @@ -21,7 +21,7 @@ import java.awt.geom.Path2D; public interface FreeformShape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends AutoShape<S,P> { /** * Gets the shape path. diff --git a/src/java/org/apache/poi/sl/usermodel/GraphicalFrame.java b/src/java/org/apache/poi/sl/usermodel/GraphicalFrame.java index def24d9597..f8ba1e2c9d 100644 --- a/src/java/org/apache/poi/sl/usermodel/GraphicalFrame.java +++ b/src/java/org/apache/poi/sl/usermodel/GraphicalFrame.java @@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel; public interface GraphicalFrame< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Shape<S,P>, PlaceableShape<S,P> { /** diff --git a/src/java/org/apache/poi/sl/usermodel/GroupShape.java b/src/java/org/apache/poi/sl/usermodel/GroupShape.java index 31f5be5345..a7545a4d4d 100644 --- a/src/java/org/apache/poi/sl/usermodel/GroupShape.java +++ b/src/java/org/apache/poi/sl/usermodel/GroupShape.java @@ -21,7 +21,7 @@ import java.awt.geom.Rectangle2D; public interface GroupShape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Shape<S,P>, ShapeContainer<S,P>, PlaceableShape<S,P> { /** diff --git a/src/java/org/apache/poi/sl/usermodel/Hyperlink.java b/src/java/org/apache/poi/sl/usermodel/Hyperlink.java index 381c928995..3c2a9fc286 100644 --- a/src/java/org/apache/poi/sl/usermodel/Hyperlink.java +++ b/src/java/org/apache/poi/sl/usermodel/Hyperlink.java @@ -23,7 +23,7 @@ package org.apache.poi.sl.usermodel; */ public interface Hyperlink< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends org.apache.poi.common.usermodel.Hyperlink { /** * Link to an email diff --git a/src/java/org/apache/poi/sl/usermodel/Line.java b/src/java/org/apache/poi/sl/usermodel/Line.java index d2c2134e52..e9325c55bf 100644 --- a/src/java/org/apache/poi/sl/usermodel/Line.java +++ b/src/java/org/apache/poi/sl/usermodel/Line.java @@ -27,7 +27,7 @@ import org.apache.poi.util.Internal; @Internal public interface Line< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends AutoShape<S,P> { } diff --git a/src/java/org/apache/poi/sl/usermodel/MasterSheet.java b/src/java/org/apache/poi/sl/usermodel/MasterSheet.java index ac23bc3bba..fdfcf43808 100644 --- a/src/java/org/apache/poi/sl/usermodel/MasterSheet.java +++ b/src/java/org/apache/poi/sl/usermodel/MasterSheet.java @@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel; public interface MasterSheet< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Sheet<S,P> { } diff --git a/src/java/org/apache/poi/sl/usermodel/Notes.java b/src/java/org/apache/poi/sl/usermodel/Notes.java index 377ad24c40..d156e98a7d 100644 --- a/src/java/org/apache/poi/sl/usermodel/Notes.java +++ b/src/java/org/apache/poi/sl/usermodel/Notes.java @@ -21,7 +21,7 @@ import java.util.List; public interface Notes< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Sheet<S,P> { List<? extends List<P>> getTextParagraphs(); } diff --git a/src/java/org/apache/poi/sl/usermodel/PictureShape.java b/src/java/org/apache/poi/sl/usermodel/PictureShape.java index c7fb629410..671a439467 100644 --- a/src/java/org/apache/poi/sl/usermodel/PictureShape.java +++ b/src/java/org/apache/poi/sl/usermodel/PictureShape.java @@ -21,7 +21,7 @@ import java.awt.Insets; public interface PictureShape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends SimpleShape<S,P> { /** * Returns the picture data for this picture. diff --git a/src/java/org/apache/poi/sl/usermodel/PlaceableShape.java b/src/java/org/apache/poi/sl/usermodel/PlaceableShape.java index 80d9f0fa52..da1981a04d 100644 --- a/src/java/org/apache/poi/sl/usermodel/PlaceableShape.java +++ b/src/java/org/apache/poi/sl/usermodel/PlaceableShape.java @@ -21,7 +21,7 @@ import java.awt.geom.Rectangle2D; public interface PlaceableShape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > { ShapeContainer<S,P> getParent(); diff --git a/src/java/org/apache/poi/sl/usermodel/Shadow.java b/src/java/org/apache/poi/sl/usermodel/Shadow.java index de462f9132..2c99f32b64 100644 --- a/src/java/org/apache/poi/sl/usermodel/Shadow.java +++ b/src/java/org/apache/poi/sl/usermodel/Shadow.java @@ -23,7 +23,7 @@ import org.apache.poi.sl.usermodel.PaintStyle.SolidPaint; public interface Shadow< S extends Shape<S,P>, -P extends TextParagraph<S,P,? extends TextRun> +P extends TextParagraph<S,P,?> > { SimpleShape<S,P> getShadowParent(); diff --git a/src/java/org/apache/poi/sl/usermodel/Shape.java b/src/java/org/apache/poi/sl/usermodel/Shape.java index 8afc26fcfd..0115f8b9a7 100644 --- a/src/java/org/apache/poi/sl/usermodel/Shape.java +++ b/src/java/org/apache/poi/sl/usermodel/Shape.java @@ -22,7 +22,7 @@ import java.awt.geom.Rectangle2D; public interface Shape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > { ShapeContainer<S,P> getParent(); diff --git a/src/java/org/apache/poi/sl/usermodel/ShapeContainer.java b/src/java/org/apache/poi/sl/usermodel/ShapeContainer.java index ba02e4b05e..086501b4c0 100644 --- a/src/java/org/apache/poi/sl/usermodel/ShapeContainer.java +++ b/src/java/org/apache/poi/sl/usermodel/ShapeContainer.java @@ -22,7 +22,7 @@ import java.util.List; public interface ShapeContainer< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Iterable<S> { /** * Returns an list containing all of the elements in this container in proper diff --git a/src/java/org/apache/poi/sl/usermodel/Sheet.java b/src/java/org/apache/poi/sl/usermodel/Sheet.java index 923dac3781..cd2a6f18c3 100644 --- a/src/java/org/apache/poi/sl/usermodel/Sheet.java +++ b/src/java/org/apache/poi/sl/usermodel/Sheet.java @@ -25,7 +25,7 @@ import java.awt.Graphics2D; */ public interface Sheet< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends ShapeContainer<S,P> { SlideShow<S,P> getSlideShow(); diff --git a/src/java/org/apache/poi/sl/usermodel/SimpleShape.java b/src/java/org/apache/poi/sl/usermodel/SimpleShape.java index 7bbbddfd09..aee69fb735 100644 --- a/src/java/org/apache/poi/sl/usermodel/SimpleShape.java +++ b/src/java/org/apache/poi/sl/usermodel/SimpleShape.java @@ -25,7 +25,7 @@ import org.apache.poi.sl.draw.geom.IAdjustableShape; public interface SimpleShape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Shape<S,P>, IAdjustableShape, PlaceableShape<S,P> { FillStyle getFillStyle(); diff --git a/src/java/org/apache/poi/sl/usermodel/Slide.java b/src/java/org/apache/poi/sl/usermodel/Slide.java index 81d84e2f77..1f77ba6e5d 100644 --- a/src/java/org/apache/poi/sl/usermodel/Slide.java +++ b/src/java/org/apache/poi/sl/usermodel/Slide.java @@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel; public interface Slide< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Sheet<S,P> { Notes<S,P> getNotes(); void setNotes(Notes<S,P> notes); diff --git a/src/java/org/apache/poi/sl/usermodel/SlideShow.java b/src/java/org/apache/poi/sl/usermodel/SlideShow.java index 90d81df3b8..228925d1c4 100644 --- a/src/java/org/apache/poi/sl/usermodel/SlideShow.java +++ b/src/java/org/apache/poi/sl/usermodel/SlideShow.java @@ -29,7 +29,7 @@ import org.apache.poi.sl.usermodel.PictureData.PictureType; public interface SlideShow< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Closeable { Slide<S,P> createSlide() throws IOException; diff --git a/src/java/org/apache/poi/sl/usermodel/TableCell.java b/src/java/org/apache/poi/sl/usermodel/TableCell.java index 4bc5e33278..1543148d77 100644 --- a/src/java/org/apache/poi/sl/usermodel/TableCell.java +++ b/src/java/org/apache/poi/sl/usermodel/TableCell.java @@ -24,7 +24,7 @@ import org.apache.poi.sl.usermodel.StrokeStyle.LineDash; public interface TableCell< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends TextShape<S,P> { enum BorderEdge { bottom, left, top, right } diff --git a/src/java/org/apache/poi/sl/usermodel/TableShape.java b/src/java/org/apache/poi/sl/usermodel/TableShape.java index 20f2dc3d76..7dbb13f00c 100644 --- a/src/java/org/apache/poi/sl/usermodel/TableShape.java +++ b/src/java/org/apache/poi/sl/usermodel/TableShape.java @@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel; public interface TableShape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends Shape<S,P>, PlaceableShape<S,P> { /** * Return the maximum number of columns. diff --git a/src/java/org/apache/poi/sl/usermodel/TextBox.java b/src/java/org/apache/poi/sl/usermodel/TextBox.java index 1405722b85..bc6951103a 100644 --- a/src/java/org/apache/poi/sl/usermodel/TextBox.java +++ b/src/java/org/apache/poi/sl/usermodel/TextBox.java @@ -26,6 +26,6 @@ package org.apache.poi.sl.usermodel; */ public interface TextBox< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends AutoShape<S,P> { } diff --git a/src/java/org/apache/poi/sl/usermodel/TextShape.java b/src/java/org/apache/poi/sl/usermodel/TextShape.java index 9342607434..e480e5645e 100644 --- a/src/java/org/apache/poi/sl/usermodel/TextShape.java +++ b/src/java/org/apache/poi/sl/usermodel/TextShape.java @@ -23,7 +23,7 @@ import java.util.List; public interface TextShape< S extends Shape<S,P>, - P extends TextParagraph<S,P,? extends TextRun> + P extends TextParagraph<S,P,?> > extends SimpleShape<S,P>, Iterable<P> { /** * Vertical Text Types @@ -159,7 +159,7 @@ public interface TextShape< /** * @return the TextParagraphs for this text box */ - List<P> getTextParagraphs(); + List<? extends TextParagraph<S,P,?>> getTextParagraphs(); /** * @return text shape margin |