diff --git a/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFChartData.java b/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFChartData.java index 1dc47d47a4..983ef4f138 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFChartData.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xddf/usermodel/chart/XDDFChartData.java @@ -28,7 +28,6 @@ import org.apache.poi.logging.PoiLogManager; import org.apache.poi.ss.util.CellReference; import org.apache.poi.util.Beta; import org.apache.poi.util.Internal; -import org.apache.poi.util.Removal; import org.apache.poi.xddf.usermodel.XDDFFillProperties; import org.apache.poi.xddf.usermodel.XDDFLineProperties; import org.apache.poi.xddf.usermodel.XDDFShapeProperties; @@ -85,27 +84,6 @@ public abstract class XDDFChartData { return valueAxes; } - /** - * Calls to {@code getSeries().add(series)} or to {@code getSeries().remove(series)} - * may corrupt the workbook. - * - *
- * Instead, use the following methods: - *
- * This used to corrupt the workbook but the returned List is unmodifiable.
- */
- @Test
- void testRemoveSeries0() {
- procName = "testRemoveSeries0";
- fileName = procName + ".xlsx";
-
- assertThrows(UnsupportedOperationException.class, () -> chartData.getSeries().remove(0));
- assertEquals(2, chartData.getSeriesCount());
- }
-
+
/**
* Remove the first series by calling chartData.removeSeries(0).
*