From d8597d7fb7419d826e1359312b20980532769f4e Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Wed, 11 Nov 2015 07:41:54 +0000 Subject: #58597: Remove setAccessible (more coming soon) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1713770 13f79535-47bb-0310-9956-ffa450edef68 --- src/testcases/org/apache/poi/hssf/usermodel/HSSFTestHelper.java | 2 +- src/testcases/org/apache/poi/hssf/usermodel/TestCloneSheet.java | 4 ++-- src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java | 4 ++-- src/testcases/org/apache/poi/hssf/usermodel/TestPatriarch.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/testcases/org/apache') diff --git a/src/testcases/org/apache/poi/hssf/usermodel/HSSFTestHelper.java b/src/testcases/org/apache/poi/hssf/usermodel/HSSFTestHelper.java index d6b2657858..4abebc866a 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/HSSFTestHelper.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/HSSFTestHelper.java @@ -72,7 +72,7 @@ public class HSSFTestHelper { } public static EscherAggregate getEscherAggregate(HSSFPatriarch patriarch){ - return patriarch._getBoundAggregate(); + return patriarch.getBoundAggregate(); } public static int allocateNewShapeId(HSSFPatriarch patriarch){ diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestCloneSheet.java b/src/testcases/org/apache/poi/hssf/usermodel/TestCloneSheet.java index 6813baaa9f..3bcd66bd47 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestCloneSheet.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestCloneSheet.java @@ -85,13 +85,13 @@ public final class TestCloneSheet extends TestCase { HSSFSheet s = b.createSheet("Test"); HSSFPatriarch patriarch = s.createDrawingPatriarch(); - EscherAggregate agg1 = patriarch._getBoundAggregate(); + EscherAggregate agg1 = patriarch.getBoundAggregate(); HSSFSheet s2 = s.cloneSheet(b); patriarch = s2.getDrawingPatriarch(); - EscherAggregate agg2 = patriarch._getBoundAggregate(); + EscherAggregate agg2 = patriarch.getBoundAggregate(); EscherSpRecord sp1 = (EscherSpRecord) agg1.getEscherContainer().getChild(1).getChild(0).getChild(1); EscherSpRecord sp2 = (EscherSpRecord) agg2.getEscherContainer().getChild(1).getChild(0).getChild(1); diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java index 4fa9865a61..c60823ee8e 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java @@ -940,8 +940,8 @@ public final class TestHSSFSheet extends BaseTestSheet { HSSFSheet sheet2 = wb2.getSheetAt(1); //check that id of the drawing group was updated - EscherDgRecord dg1 = (EscherDgRecord)sheet1.getDrawingPatriarch()._getBoundAggregate().findFirstWithId(EscherDgRecord.RECORD_ID); - EscherDgRecord dg2 = (EscherDgRecord)sheet2.getDrawingPatriarch()._getBoundAggregate().findFirstWithId(EscherDgRecord.RECORD_ID); + EscherDgRecord dg1 = (EscherDgRecord)sheet1.getDrawingPatriarch().getBoundAggregate().findFirstWithId(EscherDgRecord.RECORD_ID); + EscherDgRecord dg2 = (EscherDgRecord)sheet2.getDrawingPatriarch().getBoundAggregate().findFirstWithId(EscherDgRecord.RECORD_ID); int dg_id_1 = dg1.getOptions() >> 4; int dg_id_2 = dg2.getOptions() >> 4; assertEquals(dg_id_1 + 1, dg_id_2); diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestPatriarch.java b/src/testcases/org/apache/poi/hssf/usermodel/TestPatriarch.java index d9eba84bd7..49cbaeec02 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestPatriarch.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestPatriarch.java @@ -40,7 +40,7 @@ public class TestPatriarch extends TestCase { assertSame(patriarch, sh.getDrawingPatriarch()); - EscherAggregate agg = patriarch._getBoundAggregate(); + EscherAggregate agg = patriarch.getBoundAggregate(); EscherDgRecord dg = agg.getEscherContainer().getChildById(EscherDgRecord.RECORD_ID); int lastId = dg.getLastMSOSPID(); @@ -50,7 +50,7 @@ public class TestPatriarch extends TestCase { wb = HSSFTestDataSamples.writeOutAndReadBack(wb); sh = wb.getSheetAt(0); patriarch = sh.createDrawingPatriarch(); - dg = patriarch._getBoundAggregate().getEscherContainer().getChildById(EscherDgRecord.RECORD_ID); + dg = patriarch.getBoundAggregate().getEscherContainer().getChildById(EscherDgRecord.RECORD_ID); assertEquals(lastId, dg.getLastMSOSPID()); } -- cgit v1.2.3