From: Dominik Stadler Date: Sat, 22 Jun 2019 06:12:12 +0000 (+0000) Subject: Fix IDE warnings X-Git-Tag: REL_4_1_1~67 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=16779b96e54ce1b8f8e770979278728b0cb52167;p=poi.git Fix IDE warnings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861818 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTable.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTable.java index de86246835..0b3e7da219 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTable.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFTable.java @@ -39,7 +39,6 @@ import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; public final class TestXSSFTable { @@ -218,6 +217,7 @@ public final class TestXSSFTable { public void getNumberOfMappedColumns() throws IOException { try (XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("StructuredReferences.xlsx")) { XSSFTable table = wb.getTable("\\_Prime.1"); + //noinspection deprecation assertEquals(3, table.getNumberOfMappedColumns()); } }