Browse Source

#61943 - SL Common: narrow generics definition because of tighter java9 checks

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1819709 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_4_0_0_FINAL
Andreas Beeker 6 years ago
parent
commit
cdab1a4511
24 changed files with 25 additions and 25 deletions
  1. 1
    1
      src/java/org/apache/poi/sl/usermodel/AutoShape.java
  2. 1
    1
      src/java/org/apache/poi/sl/usermodel/Background.java
  3. 1
    1
      src/java/org/apache/poi/sl/usermodel/ConnectorShape.java
  4. 1
    1
      src/java/org/apache/poi/sl/usermodel/FreeformShape.java
  5. 1
    1
      src/java/org/apache/poi/sl/usermodel/GraphicalFrame.java
  6. 1
    1
      src/java/org/apache/poi/sl/usermodel/GroupShape.java
  7. 1
    1
      src/java/org/apache/poi/sl/usermodel/Hyperlink.java
  8. 1
    1
      src/java/org/apache/poi/sl/usermodel/Line.java
  9. 1
    1
      src/java/org/apache/poi/sl/usermodel/MasterSheet.java
  10. 1
    1
      src/java/org/apache/poi/sl/usermodel/Notes.java
  11. 1
    1
      src/java/org/apache/poi/sl/usermodel/PictureShape.java
  12. 1
    1
      src/java/org/apache/poi/sl/usermodel/PlaceableShape.java
  13. 1
    1
      src/java/org/apache/poi/sl/usermodel/Shadow.java
  14. 1
    1
      src/java/org/apache/poi/sl/usermodel/Shape.java
  15. 1
    1
      src/java/org/apache/poi/sl/usermodel/ShapeContainer.java
  16. 1
    1
      src/java/org/apache/poi/sl/usermodel/Sheet.java
  17. 1
    1
      src/java/org/apache/poi/sl/usermodel/SimpleShape.java
  18. 1
    1
      src/java/org/apache/poi/sl/usermodel/Slide.java
  19. 1
    1
      src/java/org/apache/poi/sl/usermodel/SlideShow.java
  20. 1
    1
      src/java/org/apache/poi/sl/usermodel/TableCell.java
  21. 1
    1
      src/java/org/apache/poi/sl/usermodel/TableShape.java
  22. 1
    1
      src/java/org/apache/poi/sl/usermodel/TextBox.java
  23. 2
    2
      src/java/org/apache/poi/sl/usermodel/TextShape.java
  24. 1
    1
      src/ooxml/testcases/org/apache/poi/sl/TestFonts.java

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/AutoShape.java View File

@@ -19,6 +19,6 @@ package org.apache.poi.sl.usermodel;

public interface AutoShape<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends TextShape<S,P> {
}

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/Background.java View File

@@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;

public interface Background<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Shape<S,P> {
FillStyle getFillStyle();
}

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/ConnectorShape.java View File

@@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;

public interface ConnectorShape<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends SimpleShape<S,P> {

}

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/FreeformShape.java View File

@@ -21,7 +21,7 @@ import java.awt.geom.Path2D;

public interface FreeformShape<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends AutoShape<S,P> {
/**
* Gets the shape path.

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/GraphicalFrame.java View File

@@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;

public interface GraphicalFrame<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Shape<S,P>, PlaceableShape<S,P> {

/**

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/GroupShape.java View File

@@ -21,7 +21,7 @@ import java.awt.geom.Rectangle2D;

public interface GroupShape<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Shape<S,P>, ShapeContainer<S,P>, PlaceableShape<S,P> {

/**

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/Hyperlink.java View File

@@ -23,7 +23,7 @@ package org.apache.poi.sl.usermodel;
*/
public interface Hyperlink<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends org.apache.poi.common.usermodel.Hyperlink {
/**
* Link to an email

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/Line.java View File

@@ -27,7 +27,7 @@ import org.apache.poi.util.Internal;
@Internal
public interface Line<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends AutoShape<S,P> {

}

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/MasterSheet.java View File

@@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;

public interface MasterSheet<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Sheet<S,P> {

}

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/Notes.java View File

@@ -21,7 +21,7 @@ import java.util.List;

public interface Notes<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Sheet<S,P> {
List<? extends List<P>> getTextParagraphs();
}

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/PictureShape.java View File

@@ -21,7 +21,7 @@ import java.awt.Insets;

public interface PictureShape<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends SimpleShape<S,P> {
/**
* Returns the picture data for this picture.

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/PlaceableShape.java View File

@@ -21,7 +21,7 @@ import java.awt.geom.Rectangle2D;

public interface PlaceableShape<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> {
ShapeContainer<S,P> getParent();

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/Shadow.java View File

@@ -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,?>
P extends TextParagraph<S,P,? extends TextRun>
> {
SimpleShape<S,P> getShadowParent();

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/Shape.java View File

@@ -22,7 +22,7 @@ import java.awt.geom.Rectangle2D;

public interface Shape<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> {
ShapeContainer<S,P> getParent();


+ 1
- 1
src/java/org/apache/poi/sl/usermodel/ShapeContainer.java View File

@@ -22,7 +22,7 @@ import java.util.List;

public interface ShapeContainer<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Iterable<S> {
/**
* Returns an list containing all of the elements in this container in proper

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/Sheet.java View File

@@ -25,7 +25,7 @@ import java.awt.Graphics2D;
*/
public interface Sheet<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends ShapeContainer<S,P> {
SlideShow<S,P> getSlideShow();


+ 1
- 1
src/java/org/apache/poi/sl/usermodel/SimpleShape.java View File

@@ -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,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Shape<S,P>, IAdjustableShape, PlaceableShape<S,P> {

FillStyle getFillStyle();

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/Slide.java View File

@@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;

public interface Slide<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Sheet<S,P> {
Notes<S,P> getNotes();
void setNotes(Notes<S,P> notes);

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/SlideShow.java View File

@@ -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,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Closeable {
Slide<S,P> createSlide() throws IOException;


+ 1
- 1
src/java/org/apache/poi/sl/usermodel/TableCell.java View File

@@ -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,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends TextShape<S,P> {
enum BorderEdge { bottom, left, top, right }


+ 1
- 1
src/java/org/apache/poi/sl/usermodel/TableShape.java View File

@@ -19,7 +19,7 @@ package org.apache.poi.sl.usermodel;

public interface TableShape<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends Shape<S,P>, PlaceableShape<S,P> {
/**
* Return the maximum number of columns.

+ 1
- 1
src/java/org/apache/poi/sl/usermodel/TextBox.java View File

@@ -26,6 +26,6 @@ package org.apache.poi.sl.usermodel;
*/
public interface TextBox<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends AutoShape<S,P> {
}

+ 2
- 2
src/java/org/apache/poi/sl/usermodel/TextShape.java View File

@@ -23,7 +23,7 @@ import java.util.List;

public interface TextShape<
S extends Shape<S,P>,
P extends TextParagraph<S,P,?>
P extends TextParagraph<S,P,? extends TextRun>
> extends SimpleShape<S,P>, Iterable<P> {
/**
* Vertical Text Types
@@ -159,7 +159,7 @@ public interface TextShape<
/**
* @return the TextParagraphs for this text box
*/
List<? extends TextParagraph<S,P,?>> getTextParagraphs();
List<P> getTextParagraphs();

/**
* @return text shape margin

+ 1
- 1
src/ooxml/testcases/org/apache/poi/sl/TestFonts.java View File

@@ -147,7 +147,7 @@ public class TestFonts {
// TODO: set east asian font family - MS Office uses "MS Mincho" or "MS Gothic" as a fallback
// see https://stackoverflow.com/questions/26063828 for good explanation about the font metrics
// differences on different environments
for (TextParagraph<?,?,?> p : tb.getTextParagraphs()) {
for (TextParagraph<?,?,? extends TextRun> p : tb.getTextParagraphs()) {
for (TextRun r : p.getTextRuns()) {
r.setFontFamily(fontFamily, fontGroup);
}

Loading…
Cancel
Save