Browse Source

Sonar Fixes - The diamond operator ("<>") should be used

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876064 13f79535-47bb-0310-9956-ffa450edef68
tags/before_ooxml_3rd_edition
Andreas Beeker 4 years ago
parent
commit
3f7d718a67
60 changed files with 683 additions and 675 deletions
  1. 12
    11
      src/java/org/apache/poi/sl/draw/binding/CTAdjustHandleList.java
  2. 12
    11
      src/java/org/apache/poi/sl/draw/binding/CTColorMRU.java
  3. 12
    11
      src/java/org/apache/poi/sl/draw/binding/CTConnectionSiteList.java
  4. 12
    11
      src/java/org/apache/poi/sl/draw/binding/CTGeomGuideList.java
  5. 18
    17
      src/java/org/apache/poi/sl/draw/binding/CTHslColor.java
  6. 12
    11
      src/java/org/apache/poi/sl/draw/binding/CTOfficeArtExtensionList.java
  7. 32
    31
      src/java/org/apache/poi/sl/draw/binding/CTPath2D.java
  8. 12
    11
      src/java/org/apache/poi/sl/draw/binding/CTPath2DCubicBezierTo.java
  9. 12
    11
      src/java/org/apache/poi/sl/draw/binding/CTPath2DList.java
  10. 12
    11
      src/java/org/apache/poi/sl/draw/binding/CTPath2DQuadBezierTo.java
  11. 16
    15
      src/java/org/apache/poi/sl/draw/binding/CTPresetColor.java
  12. 16
    15
      src/java/org/apache/poi/sl/draw/binding/CTSRgbColor.java
  13. 18
    17
      src/java/org/apache/poi/sl/draw/binding/CTScRgbColor.java
  14. 16
    15
      src/java/org/apache/poi/sl/draw/binding/CTSchemeColor.java
  15. 20
    19
      src/java/org/apache/poi/sl/draw/binding/CTSystemColor.java
  16. 403
    402
      src/java/org/apache/poi/sl/draw/binding/ObjectFactory.java
  17. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/BlackWhiteMode.java
  18. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/CompoundLine.java
  19. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/LineCap.java
  20. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndLength.java
  21. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndType.java
  22. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndWidth.java
  23. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/PathShadeType.java
  24. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/PenAlignment.java
  25. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/PresetColor.java
  26. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/PresetGeometry.java
  27. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/PresetLineDash.java
  28. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/PresetPattern.java
  29. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/RectangleAlignment.java
  30. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/SchemeColor.java
  31. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/SystemColor.java
  32. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/TileFlipMode.java
  33. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrossBetween.java
  34. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrosses.java
  35. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisLabelAlignment.java
  36. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisOrientation.java
  37. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisPosition.java
  38. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickLabelPosition.java
  39. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickMark.java
  40. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarDirection.java
  41. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarGrouping.java
  42. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutMode.java
  43. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutTarget.java
  44. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LegendPosition.java
  45. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/MarkerStyle.java
  46. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/RadarStyle.java
  47. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ScatterStyle.java
  48. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/text/AnchorType.java
  49. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/text/AutonumberScheme.java
  50. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/text/CapsType.java
  51. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/text/FontAlignment.java
  52. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/text/StrikeType.java
  53. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/text/TabAlignment.java
  54. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/text/TextAlignment.java
  55. 1
    1
      src/ooxml/java/org/apache/poi/xddf/usermodel/text/UnderlineType.java
  56. 1
    5
      src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFLineChartData.java
  57. 1
    5
      src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFScatterChartData.java
  58. 5
    5
      src/ooxml/java/org/apache/poi/xwpf/usermodel/FootnoteEndnoteIdManager.java
  59. 1
    1
      src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFEndnotes.java
  60. 1
    1
      src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFFootnotes.java

+ 12
- 11
src/java/org/apache/poi/sl/draw/binding/CTAdjustHandleList.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@@ -28,9 +29,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_AdjustHandleList complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_AdjustHandleList"&gt;
* &lt;complexContent&gt;
@@ -43,8 +44,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_AdjustHandleList", propOrder = {
@@ -60,30 +61,30 @@ public class CTAdjustHandleList {

/**
* Gets the value of the ahXYOrAhPolar property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ahXYOrAhPolar property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAhXYOrAhPolar().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CTXYAdjustHandle }
* {@link CTPolarAdjustHandle }
*
*
*
*
*/
public List<Object> getAhXYOrAhPolar() {
if (ahXYOrAhPolar == null) {
ahXYOrAhPolar = new ArrayList<Object>();
ahXYOrAhPolar = new ArrayList<>();
}
return this.ahXYOrAhPolar;
}

+ 12
- 11
src/java/org/apache/poi/sl/draw/binding/CTColorMRU.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@@ -28,9 +29,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_ColorMRU complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_ColorMRU"&gt;
* &lt;complexContent&gt;
@@ -42,8 +43,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_ColorMRU", propOrder = {
@@ -63,20 +64,20 @@ public class CTColorMRU {

/**
* Gets the value of the egColorChoice property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the egColorChoice property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEGColorChoice().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CTScRgbColor }
@@ -85,12 +86,12 @@ public class CTColorMRU {
* {@link CTSystemColor }
* {@link CTSchemeColor }
* {@link CTPresetColor }
*
*
*
*
*/
public List<Object> getEGColorChoice() {
if (egColorChoice == null) {
egColorChoice = new ArrayList<Object>();
egColorChoice = new ArrayList<>();
}
return this.egColorChoice;
}

+ 12
- 11
src/java/org/apache/poi/sl/draw/binding/CTConnectionSiteList.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
@@ -26,9 +27,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_ConnectionSiteList complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_ConnectionSiteList"&gt;
* &lt;complexContent&gt;
@@ -40,8 +41,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_ConnectionSiteList", propOrder = {
@@ -53,29 +54,29 @@ public class CTConnectionSiteList {

/**
* Gets the value of the cxn property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the cxn property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCxn().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CTConnectionSite }
*
*
*
*
*/
public List<CTConnectionSite> getCxn() {
if (cxn == null) {
cxn = new ArrayList<CTConnectionSite>();
cxn = new ArrayList<>();
}
return this.cxn;
}

+ 12
- 11
src/java/org/apache/poi/sl/draw/binding/CTGeomGuideList.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
@@ -26,9 +27,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_GeomGuideList complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_GeomGuideList"&gt;
* &lt;complexContent&gt;
@@ -40,8 +41,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_GeomGuideList", propOrder = {
@@ -53,29 +54,29 @@ public class CTGeomGuideList {

/**
* Gets the value of the gd property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the gd property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getGd().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CTGeomGuide }
*
*
*
*
*/
public List<CTGeomGuide> getGd() {
if (gd == null) {
gd = new ArrayList<CTGeomGuide>();
gd = new ArrayList<>();
}
return this.gd;
}

+ 18
- 17
src/java/org/apache/poi/sl/draw/binding/CTHslColor.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@@ -30,9 +31,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_HslColor complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_HslColor"&gt;
* &lt;complexContent&gt;
@@ -47,8 +48,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_HslColor", propOrder = {
@@ -96,20 +97,20 @@ public class CTHslColor {

/**
* Gets the value of the egColorTransform property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the egColorTransform property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEGColorTransform().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
@@ -140,12 +141,12 @@ public class CTHslColor {
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
*
*
*
*
*/
public List<JAXBElement<?>> getEGColorTransform() {
if (egColorTransform == null) {
egColorTransform = new ArrayList<JAXBElement<?>>();
egColorTransform = new ArrayList<>();
}
return this.egColorTransform;
}
@@ -160,7 +161,7 @@ public class CTHslColor {

/**
* Gets the value of the hue property.
*
*
*/
public int getHue() {
return hue;
@@ -168,7 +169,7 @@ public class CTHslColor {

/**
* Sets the value of the hue property.
*
*
*/
public void setHue(int value) {
this.hue = value;
@@ -180,7 +181,7 @@ public class CTHslColor {

/**
* Gets the value of the sat property.
*
*
*/
public int getSat() {
return sat;
@@ -188,7 +189,7 @@ public class CTHslColor {

/**
* Sets the value of the sat property.
*
*
*/
public void setSat(int value) {
this.sat = value;
@@ -200,7 +201,7 @@ public class CTHslColor {

/**
* Gets the value of the lum property.
*
*
*/
public int getLum() {
return lum;
@@ -208,7 +209,7 @@ public class CTHslColor {

/**
* Sets the value of the lum property.
*
*
*/
public void setLum(int value) {
this.lum = value;

+ 12
- 11
src/java/org/apache/poi/sl/draw/binding/CTOfficeArtExtensionList.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
@@ -26,9 +27,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_OfficeArtExtensionList complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_OfficeArtExtensionList"&gt;
* &lt;complexContent&gt;
@@ -40,8 +41,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_OfficeArtExtensionList", propOrder = {
@@ -53,29 +54,29 @@ public class CTOfficeArtExtensionList {

/**
* Gets the value of the ext property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ext property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExt().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CTOfficeArtExtension }
*
*
*
*
*/
public List<CTOfficeArtExtension> getExt() {
if (ext == null) {
ext = new ArrayList<CTOfficeArtExtension>();
ext = new ArrayList<>();
}
return this.ext;
}

+ 32
- 31
src/java/org/apache/poi/sl/draw/binding/CTPath2D.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
@@ -29,9 +30,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_Path2D complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_Path2D"&gt;
* &lt;complexContent&gt;
@@ -53,8 +54,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_Path2D", propOrder = {
@@ -84,20 +85,20 @@ public class CTPath2D {

/**
* Gets the value of the closeOrMoveToOrLnTo property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the closeOrMoveToOrLnTo property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCloseOrMoveToOrLnTo().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CTPath2DClose }
@@ -106,12 +107,12 @@ public class CTPath2D {
* {@link CTPath2DArcTo }
* {@link CTPath2DQuadBezierTo }
* {@link CTPath2DCubicBezierTo }
*
*
*
*
*/
public List<Object> getCloseOrMoveToOrLnTo() {
if (closeOrMoveToOrLnTo == null) {
closeOrMoveToOrLnTo = new ArrayList<Object>();
closeOrMoveToOrLnTo = new ArrayList<>();
}
return this.closeOrMoveToOrLnTo;
}
@@ -126,11 +127,11 @@ public class CTPath2D {

/**
* Gets the value of the w property.
*
*
* @return
* possible object is
* {@link Long }
*
*
*/
public long getW() {
if (w == null) {
@@ -142,11 +143,11 @@ public class CTPath2D {

/**
* Sets the value of the w property.
*
*
* @param value
* allowed object is
* {@link Long }
*
*
*/
public void setW(long value) {
this.w = value;
@@ -162,11 +163,11 @@ public class CTPath2D {

/**
* Gets the value of the h property.
*
*
* @return
* possible object is
* {@link Long }
*
*
*/
public long getH() {
if (h == null) {
@@ -178,11 +179,11 @@ public class CTPath2D {

/**
* Sets the value of the h property.
*
*
* @param value
* allowed object is
* {@link Long }
*
*
*/
public void setH(long value) {
this.h = value;
@@ -198,11 +199,11 @@ public class CTPath2D {

/**
* Gets the value of the fill property.
*
*
* @return
* possible object is
* {@link STPathFillMode }
*
*
*/
public STPathFillMode getFill() {
if (fill == null) {
@@ -214,11 +215,11 @@ public class CTPath2D {

/**
* Sets the value of the fill property.
*
*
* @param value
* allowed object is
* {@link STPathFillMode }
*
*
*/
public void setFill(STPathFillMode value) {
this.fill = value;
@@ -230,11 +231,11 @@ public class CTPath2D {

/**
* Gets the value of the stroke property.
*
*
* @return
* possible object is
* {@link Boolean }
*
*
*/
public boolean isStroke() {
if (stroke == null) {
@@ -246,11 +247,11 @@ public class CTPath2D {

/**
* Sets the value of the stroke property.
*
*
* @param value
* allowed object is
* {@link Boolean }
*
*
*/
public void setStroke(boolean value) {
this.stroke = value;
@@ -266,11 +267,11 @@ public class CTPath2D {

/**
* Gets the value of the extrusionOk property.
*
*
* @return
* possible object is
* {@link Boolean }
*
*
*/
public boolean isExtrusionOk() {
if (extrusionOk == null) {
@@ -282,11 +283,11 @@ public class CTPath2D {

/**
* Sets the value of the extrusionOk property.
*
*
* @param value
* allowed object is
* {@link Boolean }
*
*
*/
public void setExtrusionOk(boolean value) {
this.extrusionOk = value;

+ 12
- 11
src/java/org/apache/poi/sl/draw/binding/CTPath2DCubicBezierTo.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@@ -27,9 +28,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_Path2DCubicBezierTo complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_Path2DCubicBezierTo"&gt;
* &lt;complexContent&gt;
@@ -41,8 +42,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_Path2DCubicBezierTo", propOrder = {
@@ -55,29 +56,29 @@ public class CTPath2DCubicBezierTo {

/**
* Gets the value of the pt property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the pt property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPt().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CTAdjPoint2D }
*
*
*
*
*/
public List<CTAdjPoint2D> getPt() {
if (pt == null) {
pt = new ArrayList<CTAdjPoint2D>();
pt = new ArrayList<>();
}
return this.pt;
}

+ 12
- 11
src/java/org/apache/poi/sl/draw/binding/CTPath2DList.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
@@ -26,9 +27,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_Path2DList complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_Path2DList"&gt;
* &lt;complexContent&gt;
@@ -40,8 +41,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_Path2DList", propOrder = {
@@ -53,29 +54,29 @@ public class CTPath2DList {

/**
* Gets the value of the path property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the path property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPath().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CTPath2D }
*
*
*
*
*/
public List<CTPath2D> getPath() {
if (path == null) {
path = new ArrayList<CTPath2D>();
path = new ArrayList<>();
}
return this.path;
}

+ 12
- 11
src/java/org/apache/poi/sl/draw/binding/CTPath2DQuadBezierTo.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@@ -27,9 +28,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_Path2DQuadBezierTo complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_Path2DQuadBezierTo"&gt;
* &lt;complexContent&gt;
@@ -41,8 +42,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_Path2DQuadBezierTo", propOrder = {
@@ -55,29 +56,29 @@ public class CTPath2DQuadBezierTo {

/**
* Gets the value of the pt property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the pt property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPt().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CTAdjPoint2D }
*
*
*
*
*/
public List<CTAdjPoint2D> getPt() {
if (pt == null) {
pt = new ArrayList<CTAdjPoint2D>();
pt = new ArrayList<>();
}
return this.pt;
}

+ 16
- 15
src/java/org/apache/poi/sl/draw/binding/CTPresetColor.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@@ -30,9 +31,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_PresetColor complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_PresetColor"&gt;
* &lt;complexContent&gt;
@@ -45,8 +46,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_PresetColor", propOrder = {
@@ -90,20 +91,20 @@ public class CTPresetColor {

/**
* Gets the value of the egColorTransform property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the egColorTransform property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEGColorTransform().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
@@ -134,12 +135,12 @@ public class CTPresetColor {
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
*
*
*
*
*/
public List<JAXBElement<?>> getEGColorTransform() {
if (egColorTransform == null) {
egColorTransform = new ArrayList<JAXBElement<?>>();
egColorTransform = new ArrayList<>();
}
return this.egColorTransform;
}
@@ -154,11 +155,11 @@ public class CTPresetColor {

/**
* Gets the value of the val property.
*
*
* @return
* possible object is
* {@link STPresetColorVal }
*
*
*/
public STPresetColorVal getVal() {
return val;
@@ -166,11 +167,11 @@ public class CTPresetColor {

/**
* Sets the value of the val property.
*
*
* @param value
* allowed object is
* {@link STPresetColorVal }
*
*
*/
public void setVal(STPresetColorVal value) {
this.val = value;

+ 16
- 15
src/java/org/apache/poi/sl/draw/binding/CTSRgbColor.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@@ -32,9 +33,9 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
* <p>Java class for CT_SRgbColor complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_SRgbColor"&gt;
* &lt;complexContent&gt;
@@ -47,8 +48,8 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_SRgbColor", propOrder = {
@@ -93,20 +94,20 @@ public class CTSRgbColor {

/**
* Gets the value of the egColorTransform property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the egColorTransform property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEGColorTransform().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
@@ -137,12 +138,12 @@ public class CTSRgbColor {
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
*
*
*
*
*/
public List<JAXBElement<?>> getEGColorTransform() {
if (egColorTransform == null) {
egColorTransform = new ArrayList<JAXBElement<?>>();
egColorTransform = new ArrayList<>();
}
return this.egColorTransform;
}
@@ -157,11 +158,11 @@ public class CTSRgbColor {

/**
* Gets the value of the val property.
*
*
* @return
* possible object is
* {@link String }
*
*
*/
public byte[] getVal() {
return val;
@@ -169,11 +170,11 @@ public class CTSRgbColor {

/**
* Sets the value of the val property.
*
*
* @param value
* allowed object is
* {@link String }
*
*
*/
public void setVal(byte[] value) {
this.val = value;

+ 18
- 17
src/java/org/apache/poi/sl/draw/binding/CTScRgbColor.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@@ -30,9 +31,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_ScRgbColor complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_ScRgbColor"&gt;
* &lt;complexContent&gt;
@@ -47,8 +48,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_ScRgbColor", propOrder = {
@@ -96,20 +97,20 @@ public class CTScRgbColor {

/**
* Gets the value of the egColorTransform property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the egColorTransform property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEGColorTransform().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
@@ -140,12 +141,12 @@ public class CTScRgbColor {
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
*
*
*
*
*/
public List<JAXBElement<?>> getEGColorTransform() {
if (egColorTransform == null) {
egColorTransform = new ArrayList<JAXBElement<?>>();
egColorTransform = new ArrayList<>();
}
return this.egColorTransform;
}
@@ -160,7 +161,7 @@ public class CTScRgbColor {

/**
* Gets the value of the r property.
*
*
*/
public int getR() {
return r;
@@ -168,7 +169,7 @@ public class CTScRgbColor {

/**
* Sets the value of the r property.
*
*
*/
public void setR(int value) {
this.r = value;
@@ -180,7 +181,7 @@ public class CTScRgbColor {

/**
* Gets the value of the g property.
*
*
*/
public int getG() {
return g;
@@ -188,7 +189,7 @@ public class CTScRgbColor {

/**
* Sets the value of the g property.
*
*
*/
public void setG(int value) {
this.g = value;
@@ -200,7 +201,7 @@ public class CTScRgbColor {

/**
* Gets the value of the b property.
*
*
*/
public int getB() {
return b;
@@ -208,7 +209,7 @@ public class CTScRgbColor {

/**
* Sets the value of the b property.
*
*
*/
public void setB(int value) {
this.b = value;

+ 16
- 15
src/java/org/apache/poi/sl/draw/binding/CTSchemeColor.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@@ -30,9 +31,9 @@ import javax.xml.bind.annotation.XmlType;

/**
* <p>Java class for CT_SchemeColor complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_SchemeColor"&gt;
* &lt;complexContent&gt;
@@ -45,8 +46,8 @@ import javax.xml.bind.annotation.XmlType;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_SchemeColor", propOrder = {
@@ -90,20 +91,20 @@ public class CTSchemeColor {

/**
* Gets the value of the egColorTransform property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the egColorTransform property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEGColorTransform().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
@@ -134,12 +135,12 @@ public class CTSchemeColor {
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
*
*
*
*
*/
public List<JAXBElement<?>> getEGColorTransform() {
if (egColorTransform == null) {
egColorTransform = new ArrayList<JAXBElement<?>>();
egColorTransform = new ArrayList<>();
}
return this.egColorTransform;
}
@@ -154,11 +155,11 @@ public class CTSchemeColor {

/**
* Gets the value of the val property.
*
*
* @return
* possible object is
* {@link STSchemeColorVal }
*
*
*/
public STSchemeColorVal getVal() {
return val;
@@ -166,11 +167,11 @@ public class CTSchemeColor {

/**
* Sets the value of the val property.
*
*
* @param value
* allowed object is
* {@link STSchemeColorVal }
*
*
*/
public void setVal(STSchemeColorVal value) {
this.val = value;

+ 20
- 19
src/java/org/apache/poi/sl/draw/binding/CTSystemColor.java View File

@@ -19,6 +19,7 @@ package org.apache.poi.sl.draw.binding;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@@ -33,9 +34,9 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
* <p>Java class for CT_SystemColor complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>
* &lt;complexType name="CT_SystemColor"&gt;
* &lt;complexContent&gt;
@@ -49,8 +50,8 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_SystemColor", propOrder = {
@@ -98,20 +99,20 @@ public class CTSystemColor {

/**
* Gets the value of the egColorTransform property.
*
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the egColorTransform property.
*
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getEGColorTransform().add(newItem);
* </pre>
*
*
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
@@ -142,12 +143,12 @@ public class CTSystemColor {
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
*
*
*
*
*/
public List<JAXBElement<?>> getEGColorTransform() {
if (egColorTransform == null) {
egColorTransform = new ArrayList<JAXBElement<?>>();
egColorTransform = new ArrayList<>();
}
return this.egColorTransform;
}
@@ -162,11 +163,11 @@ public class CTSystemColor {

/**
* Gets the value of the val property.
*
*
* @return
* possible object is
* {@link String }
*
*
*/
public String getVal() {
return val;
@@ -174,11 +175,11 @@ public class CTSystemColor {

/**
* Sets the value of the val property.
*
*
* @param value
* allowed object is
* {@link String }
*
*
*/
public void setVal(String value) {
this.val = value;
@@ -190,11 +191,11 @@ public class CTSystemColor {

/**
* Gets the value of the lastClr property.
*
*
* @return
* possible object is
* {@link String }
*
*
*/
public byte[] getLastClr() {
return lastClr;
@@ -202,11 +203,11 @@ public class CTSystemColor {

/**
* Sets the value of the lastClr property.
*
*
* @param value
* allowed object is
* {@link String }
*
*
*/
public void setLastClr(byte[] value) {
this.lastClr = value;

+ 403
- 402
src/java/org/apache/poi/sl/draw/binding/ObjectFactory.java
File diff suppressed because it is too large
View File


+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/BlackWhiteMode.java View File

@@ -33,7 +33,7 @@ public enum BlackWhiteMode {
this.underlying = mode;
}

private final static HashMap<STBlackWhiteMode.Enum, BlackWhiteMode> reverse = new HashMap<STBlackWhiteMode.Enum, BlackWhiteMode>();
private final static HashMap<STBlackWhiteMode.Enum, BlackWhiteMode> reverse = new HashMap<>();
static {
for (BlackWhiteMode value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/CompoundLine.java View File

@@ -34,7 +34,7 @@ public enum CompoundLine {
this.underlying = line;
}

private final static HashMap<STCompoundLine.Enum, CompoundLine> reverse = new HashMap<STCompoundLine.Enum, CompoundLine>();
private final static HashMap<STCompoundLine.Enum, CompoundLine> reverse = new HashMap<>();
static {
for (CompoundLine value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/LineCap.java View File

@@ -32,7 +32,7 @@ public enum LineCap {
this.underlying = line;
}

private final static HashMap<STLineCap.Enum, LineCap> reverse = new HashMap<STLineCap.Enum, LineCap>();
private final static HashMap<STLineCap.Enum, LineCap> reverse = new HashMap<>();
static {
for (LineCap value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndLength.java View File

@@ -32,7 +32,7 @@ public enum LineEndLength {
this.underlying = lineEnd;
}

private final static HashMap<STLineEndLength.Enum, LineEndLength> reverse = new HashMap<STLineEndLength.Enum, LineEndLength>();
private final static HashMap<STLineEndLength.Enum, LineEndLength> reverse = new HashMap<>();
static {
for (LineEndLength value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndType.java View File

@@ -35,7 +35,7 @@ public enum LineEndType {
this.underlying = lineEnd;
}

private final static HashMap<STLineEndType.Enum, LineEndType> reverse = new HashMap<STLineEndType.Enum, LineEndType>();
private final static HashMap<STLineEndType.Enum, LineEndType> reverse = new HashMap<>();
static {
for (LineEndType value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/LineEndWidth.java View File

@@ -32,7 +32,7 @@ public enum LineEndWidth {
this.underlying = lineEnd;
}

private final static HashMap<STLineEndWidth.Enum, LineEndWidth> reverse = new HashMap<STLineEndWidth.Enum, LineEndWidth>();
private final static HashMap<STLineEndWidth.Enum, LineEndWidth> reverse = new HashMap<>();
static {
for (LineEndWidth value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/PathShadeType.java View File

@@ -32,7 +32,7 @@ public enum PathShadeType {
this.underlying = pathShadeType;
}

private final static HashMap<STPathShadeType.Enum, PathShadeType> reverse = new HashMap<STPathShadeType.Enum, PathShadeType>();
private final static HashMap<STPathShadeType.Enum, PathShadeType> reverse = new HashMap<>();
static {
for (PathShadeType value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/PenAlignment.java View File

@@ -31,7 +31,7 @@ public enum PenAlignment {
this.underlying = alignment;
}

private final static HashMap<STPenAlignment.Enum, PenAlignment> reverse = new HashMap<STPenAlignment.Enum, PenAlignment>();
private final static HashMap<STPenAlignment.Enum, PenAlignment> reverse = new HashMap<>();
static {
for (PenAlignment value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/PresetColor.java View File

@@ -167,7 +167,7 @@ public enum PresetColor {
this.underlying = color;
}

private final static HashMap<STPresetColorVal.Enum, PresetColor> reverse = new HashMap<STPresetColorVal.Enum, PresetColor>();
private final static HashMap<STPresetColorVal.Enum, PresetColor> reverse = new HashMap<>();
static {
for (PresetColor value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/PresetGeometry.java View File

@@ -217,7 +217,7 @@ public enum PresetGeometry {
this.underlying = shape;
}

private final static HashMap<STShapeType.Enum, PresetGeometry> reverse = new HashMap<STShapeType.Enum, PresetGeometry>();
private final static HashMap<STShapeType.Enum, PresetGeometry> reverse = new HashMap<>();
static {
for (PresetGeometry value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/PresetLineDash.java View File

@@ -40,7 +40,7 @@ public enum PresetLineDash {
this.underlying = dash;
}

private final static HashMap<STPresetLineDashVal.Enum, PresetLineDash> reverse = new HashMap<STPresetLineDashVal.Enum, PresetLineDash>();
private final static HashMap<STPresetLineDashVal.Enum, PresetLineDash> reverse = new HashMap<>();
static {
for (PresetLineDash value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/PresetPattern.java View File

@@ -83,7 +83,7 @@ public enum PresetPattern {
this.underlying = pattern;
}

private final static HashMap<STPresetPatternVal.Enum, PresetPattern> reverse = new HashMap<STPresetPatternVal.Enum, PresetPattern>();
private final static HashMap<STPresetPatternVal.Enum, PresetPattern> reverse = new HashMap<>();
static {
for (PresetPattern value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/RectangleAlignment.java View File

@@ -38,7 +38,7 @@ public enum RectangleAlignment {
this.underlying = alignment;
}

private final static HashMap<STRectAlignment.Enum, RectangleAlignment> reverse = new HashMap<STRectAlignment.Enum, RectangleAlignment>();
private final static HashMap<STRectAlignment.Enum, RectangleAlignment> reverse = new HashMap<>();
static {
for (RectangleAlignment value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/SchemeColor.java View File

@@ -46,7 +46,7 @@ public enum SchemeColor {
this.underlying = color;
}

private final static HashMap<STSchemeColorVal.Enum, SchemeColor> reverse = new HashMap<STSchemeColorVal.Enum, SchemeColor>();
private final static HashMap<STSchemeColorVal.Enum, SchemeColor> reverse = new HashMap<>();
static {
for (SchemeColor value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/SystemColor.java View File

@@ -59,7 +59,7 @@ public enum SystemColor {
this.underlying = color;
}

private final static HashMap<STSystemColorVal.Enum, SystemColor> reverse = new HashMap<STSystemColorVal.Enum, SystemColor>();
private final static HashMap<STSystemColorVal.Enum, SystemColor> reverse = new HashMap<>();
static {
for (SystemColor value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/TileFlipMode.java View File

@@ -33,7 +33,7 @@ public enum TileFlipMode {
this.underlying = mode;
}

private final static HashMap<STTileFlipMode.Enum, TileFlipMode> reverse = new HashMap<STTileFlipMode.Enum, TileFlipMode>();
private final static HashMap<STTileFlipMode.Enum, TileFlipMode> reverse = new HashMap<>();
static {
for (TileFlipMode value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrossBetween.java View File

@@ -31,7 +31,7 @@ public enum AxisCrossBetween {
this.underlying = crossBetween;
}

private final static HashMap<STCrossBetween.Enum, AxisCrossBetween> reverse = new HashMap<STCrossBetween.Enum, AxisCrossBetween>();
private final static HashMap<STCrossBetween.Enum, AxisCrossBetween> reverse = new HashMap<>();
static {
for (AxisCrossBetween value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisCrosses.java View File

@@ -32,7 +32,7 @@ public enum AxisCrosses {
this.underlying = crosses;
}

private final static HashMap<STCrosses.Enum, AxisCrosses> reverse = new HashMap<STCrosses.Enum, AxisCrosses>();
private final static HashMap<STCrosses.Enum, AxisCrosses> reverse = new HashMap<>();
static {
for (AxisCrosses value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisLabelAlignment.java View File

@@ -32,7 +32,7 @@ public enum AxisLabelAlignment {
this.underlying = alignment;
}

private final static HashMap<STLblAlgn.Enum, AxisLabelAlignment> reverse = new HashMap<STLblAlgn.Enum, AxisLabelAlignment>();
private final static HashMap<STLblAlgn.Enum, AxisLabelAlignment> reverse = new HashMap<>();
static {
for (AxisLabelAlignment value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisOrientation.java View File

@@ -31,7 +31,7 @@ public enum AxisOrientation {
this.underlying = orientation;
}

private final static HashMap<STOrientation.Enum, AxisOrientation> reverse = new HashMap<STOrientation.Enum, AxisOrientation>();
private final static HashMap<STOrientation.Enum, AxisOrientation> reverse = new HashMap<>();
static {
for (AxisOrientation value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisPosition.java View File

@@ -33,7 +33,7 @@ public enum AxisPosition {
this.underlying = position;
}

private final static HashMap<STAxPos.Enum, AxisPosition> reverse = new HashMap<STAxPos.Enum, AxisPosition>();
private final static HashMap<STAxPos.Enum, AxisPosition> reverse = new HashMap<>();
static {
for (AxisPosition value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickLabelPosition.java View File

@@ -33,7 +33,7 @@ public enum AxisTickLabelPosition {
this.underlying = position;
}

private final static HashMap<STTickLblPos.Enum, AxisTickLabelPosition> reverse = new HashMap<STTickLblPos.Enum, AxisTickLabelPosition>();
private final static HashMap<STTickLblPos.Enum, AxisTickLabelPosition> reverse = new HashMap<>();
static {
for (AxisTickLabelPosition value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/AxisTickMark.java View File

@@ -33,7 +33,7 @@ public enum AxisTickMark {
this.underlying = tickMark;
}

private final static HashMap<STTickMark.Enum, AxisTickMark> reverse = new HashMap<STTickMark.Enum, AxisTickMark>();
private final static HashMap<STTickMark.Enum, AxisTickMark> reverse = new HashMap<>();
static {
for (AxisTickMark value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarDirection.java View File

@@ -31,7 +31,7 @@ public enum BarDirection {
this.underlying = direction;
}

private final static HashMap<STBarDir.Enum, BarDirection> reverse = new HashMap<STBarDir.Enum, BarDirection>();
private final static HashMap<STBarDir.Enum, BarDirection> reverse = new HashMap<>();
static {
for (BarDirection value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/BarGrouping.java View File

@@ -33,7 +33,7 @@ public enum BarGrouping {
this.underlying = grouping;
}

private final static HashMap<STBarGrouping.Enum, BarGrouping> reverse = new HashMap<STBarGrouping.Enum, BarGrouping>();
private final static HashMap<STBarGrouping.Enum, BarGrouping> reverse = new HashMap<>();
static {
for (BarGrouping value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutMode.java View File

@@ -31,7 +31,7 @@ public enum LayoutMode {
this.underlying = layoutMode;
}

private final static HashMap<STLayoutMode.Enum, LayoutMode> reverse = new HashMap<STLayoutMode.Enum, LayoutMode>();
private final static HashMap<STLayoutMode.Enum, LayoutMode> reverse = new HashMap<>();
static {
for (LayoutMode value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LayoutTarget.java View File

@@ -31,7 +31,7 @@ public enum LayoutTarget {
this.underlying = layoutTarget;
}

private final static HashMap<STLayoutTarget.Enum, LayoutTarget> reverse = new HashMap<STLayoutTarget.Enum, LayoutTarget>();
private final static HashMap<STLayoutTarget.Enum, LayoutTarget> reverse = new HashMap<>();
static {
for (LayoutTarget value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/LegendPosition.java View File

@@ -34,7 +34,7 @@ public enum LegendPosition {
this.underlying = position;
}

private final static HashMap<STLegendPos.Enum, LegendPosition> reverse = new HashMap<STLegendPos.Enum, LegendPosition>();
private final static HashMap<STLegendPos.Enum, LegendPosition> reverse = new HashMap<>();
static {
for (LegendPosition value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/MarkerStyle.java View File

@@ -40,7 +40,7 @@ public enum MarkerStyle {
this.underlying = style;
}

private final static HashMap<STMarkerStyle.Enum, MarkerStyle> reverse = new HashMap<STMarkerStyle.Enum, MarkerStyle>();
private final static HashMap<STMarkerStyle.Enum, MarkerStyle> reverse = new HashMap<>();
static {
for (MarkerStyle value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/RadarStyle.java View File

@@ -32,7 +32,7 @@ public enum RadarStyle {
this.underlying = style;
}

private final static HashMap<STRadarStyle.Enum, RadarStyle> reverse = new HashMap<STRadarStyle.Enum, RadarStyle>();
private final static HashMap<STRadarStyle.Enum, RadarStyle> reverse = new HashMap<>();
static {
for (RadarStyle value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/chart/ScatterStyle.java View File

@@ -35,7 +35,7 @@ public enum ScatterStyle {
this.underlying = style;
}

private final static HashMap<STScatterStyle.Enum, ScatterStyle> reverse = new HashMap<STScatterStyle.Enum, ScatterStyle>();
private final static HashMap<STScatterStyle.Enum, ScatterStyle> reverse = new HashMap<>();
static {
for (ScatterStyle value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/text/AnchorType.java View File

@@ -34,7 +34,7 @@ public enum AnchorType {
this.underlying = caps;
}

private final static HashMap<STTextAnchoringType.Enum, AnchorType> reverse = new HashMap<STTextAnchoringType.Enum, AnchorType>();
private final static HashMap<STTextAnchoringType.Enum, AnchorType> reverse = new HashMap<>();
static {
for (AnchorType value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/text/AutonumberScheme.java View File

@@ -70,7 +70,7 @@ public enum AutonumberScheme {
this.underlying = scheme;
}

private final static HashMap<STTextAutonumberScheme.Enum, AutonumberScheme> reverse = new HashMap<STTextAutonumberScheme.Enum, AutonumberScheme>();
private final static HashMap<STTextAutonumberScheme.Enum, AutonumberScheme> reverse = new HashMap<>();
static {
for (AutonumberScheme value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/text/CapsType.java View File

@@ -32,7 +32,7 @@ public enum CapsType {
this.underlying = caps;
}

private final static HashMap<STTextCapsType.Enum, CapsType> reverse = new HashMap<STTextCapsType.Enum, CapsType>();
private final static HashMap<STTextCapsType.Enum, CapsType> reverse = new HashMap<>();
static {
for (CapsType value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/text/FontAlignment.java View File

@@ -34,7 +34,7 @@ public enum FontAlignment {
this.underlying = align;
}

private final static HashMap<STTextFontAlignType.Enum, FontAlignment> reverse = new HashMap<STTextFontAlignType.Enum, FontAlignment>();
private final static HashMap<STTextFontAlignType.Enum, FontAlignment> reverse = new HashMap<>();
static {
for (FontAlignment value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/text/StrikeType.java View File

@@ -32,7 +32,7 @@ public enum StrikeType {
this.underlying = strike;
}

private final static HashMap<STTextStrikeType.Enum, StrikeType> reverse = new HashMap<STTextStrikeType.Enum, StrikeType>();
private final static HashMap<STTextStrikeType.Enum, StrikeType> reverse = new HashMap<>();
static {
for (StrikeType value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/text/TabAlignment.java View File

@@ -33,7 +33,7 @@ public enum TabAlignment {
this.underlying = align;
}

private final static HashMap<STTextTabAlignType.Enum, TabAlignment> reverse = new HashMap<STTextTabAlignType.Enum, TabAlignment>();
private final static HashMap<STTextTabAlignType.Enum, TabAlignment> reverse = new HashMap<>();
static {
for (TabAlignment value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/text/TextAlignment.java View File

@@ -36,7 +36,7 @@ public enum TextAlignment {
this.underlying = align;
}

private final static HashMap<STTextAlignType.Enum, TextAlignment> reverse = new HashMap<STTextAlignType.Enum, TextAlignment>();
private final static HashMap<STTextAlignType.Enum, TextAlignment> reverse = new HashMap<>();
static {
for (TextAlignment value : values()) {
reverse.put(value.underlying, value);

+ 1
- 1
src/ooxml/java/org/apache/poi/xddf/usermodel/text/UnderlineType.java View File

@@ -47,7 +47,7 @@ public enum UnderlineType {
this.underlying = underline;
}

private final static HashMap<STTextUnderlineType.Enum, UnderlineType> reverse = new HashMap<STTextUnderlineType.Enum, UnderlineType>();
private final static HashMap<STTextUnderlineType.Enum, UnderlineType> reverse = new HashMap<>();
static {
for (UnderlineType value : values()) {
reverse.put(value.underlying, value);

+ 1
- 5
src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFLineChartData.java View File

@@ -47,11 +47,7 @@ public class XSSFLineChartData implements LineChartData {
/**
* List of all data series.
*/
private List<Series> series;

public XSSFLineChartData() {
series = new ArrayList<Series>();
}
private final List<Series> series = new ArrayList<>();

static class Series extends AbstractXSSFChartSeries implements LineChartSeries {
private int id;

+ 1
- 5
src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFScatterChartData.java View File

@@ -49,11 +49,7 @@ public class XSSFScatterChartData implements ScatterChartData {
/**
* List of all data series.
*/
private List<Series> series;

public XSSFScatterChartData() {
series = new ArrayList<Series>();
}
private final List<Series> series = new ArrayList<>();

/**
* Package private ScatterChartSerie implementation.

+ 5
- 5
src/ooxml/java/org/apache/poi/xwpf/usermodel/FootnoteEndnoteIdManager.java View File

@@ -27,7 +27,7 @@ import java.util.List;
*/
public class FootnoteEndnoteIdManager {

private XWPFDocument document;
private XWPFDocument document;

public FootnoteEndnoteIdManager(XWPFDocument document) {
this.document = document;
@@ -39,8 +39,8 @@ public class FootnoteEndnoteIdManager {
* @return ID number to use.
*/
public BigInteger nextId() {
List<BigInteger> ids = new ArrayList<BigInteger>();
List<BigInteger> ids = new ArrayList<>();
for (XWPFAbstractFootnoteEndnote note : document.getFootnotes()) {
ids.add(note.getId());
}
@@ -52,8 +52,8 @@ public class FootnoteEndnoteIdManager {
while (ids.contains(newId)) {
cand++;
newId = BigInteger.valueOf(cand);
}
}
return newId;
}


+ 1
- 1
src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFEndnotes.java View File

@@ -174,7 +174,7 @@ public class XWPFEndnotes extends XWPFAbstractFootnotesEndnotes {
* @return List, possibly empty, of end notes.
*/
public List<XWPFEndnote> getEndnotesList() {
List<XWPFEndnote> resultList = new ArrayList<XWPFEndnote>();
List<XWPFEndnote> resultList = new ArrayList<>();
for (XWPFAbstractFootnoteEndnote note : listFootnote) {
resultList.add((XWPFEndnote)note);
}

+ 1
- 1
src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFFootnotes.java View File

@@ -164,7 +164,7 @@ public class XWPFFootnotes extends XWPFAbstractFootnotesEndnotes {
* @return List, possibly empty, of footnotes.
*/
public List<XWPFFootnote> getFootnotesList() {
List<XWPFFootnote> resultList = new ArrayList<XWPFFootnote>();
List<XWPFFootnote> resultList = new ArrayList<>();
for (XWPFAbstractFootnoteEndnote note : listFootnote) {
resultList.add((XWPFFootnote)note);
}

Loading…
Cancel
Save