Remove unnecessary warning suppressions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1708921 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e9d0e9cc12
commit
bb18031ac7
@ -240,7 +240,6 @@ public class TestSignatureInfo {
|
|||||||
public void testManipulation() throws Exception {
|
public void testManipulation() throws Exception {
|
||||||
// sign & validate
|
// sign & validate
|
||||||
String testFile = "hello-world-unsigned.xlsx";
|
String testFile = "hello-world-unsigned.xlsx";
|
||||||
@SuppressWarnings("resource")
|
|
||||||
OPCPackage pkg = OPCPackage.open(copy(testdata.getFile(testFile)), PackageAccess.READ_WRITE);
|
OPCPackage pkg = OPCPackage.open(copy(testdata.getFile(testFile)), PackageAccess.READ_WRITE);
|
||||||
sign(pkg, "Test", "CN=Test", 1);
|
sign(pkg, "Test", "CN=Test", 1);
|
||||||
|
|
||||||
@ -289,7 +288,6 @@ public class TestSignatureInfo {
|
|||||||
pkg.close();
|
pkg.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("resource")
|
|
||||||
@Test
|
@Test
|
||||||
public void testSignEnvelopingDocument() throws Exception {
|
public void testSignEnvelopingDocument() throws Exception {
|
||||||
String testFile = "hello-world-unsigned.xlsx";
|
String testFile = "hello-world-unsigned.xlsx";
|
||||||
|
Loading…
Reference in New Issue
Block a user