diff options
author | Sebastian Bazley <sebb@apache.org> | 2015-08-13 00:53:25 +0000 |
---|---|---|
committer | Sebastian Bazley <sebb@apache.org> | 2015-08-13 00:53:25 +0000 |
commit | 8627a297d18f459902bea7283683a432b1caa0e0 (patch) | |
tree | 9fb2bf9ff0fa3eb52d787732e15765d9e60646a7 /src/test | |
parent | 66a105eeb194b73ebb656eb0ebe647b37aa3f6c3 (diff) | |
download | apache-commons-bcel-8627a297d18f459902bea7283683a432b1caa0e0.tar.gz |
Avoid unused warning from Findbugs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/bcel/trunk@1695638 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/apache/commons/bcel6/EnclosingMethodAttributeTestCase.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/org/apache/commons/bcel6/EnclosingMethodAttributeTestCase.java b/src/test/java/org/apache/commons/bcel6/EnclosingMethodAttributeTestCase.java index 502fbb21..a44b3377 100644 --- a/src/test/java/org/apache/commons/bcel6/EnclosingMethodAttributeTestCase.java +++ b/src/test/java/org/apache/commons/bcel6/EnclosingMethodAttributeTestCase.java @@ -26,6 +26,7 @@ import org.apache.commons.bcel6.classfile.ConstantPool; import org.apache.commons.bcel6.classfile.EnclosingMethod; import org.apache.commons.bcel6.classfile.JavaClass; import org.apache.commons.bcel6.util.SyntheticRepository; +import org.junit.Assert; public class EnclosingMethodAttributeTestCase extends AbstractTestCase { @@ -92,8 +93,8 @@ public class EnclosingMethodAttributeTestCase extends AbstractTestCase clazz.dump(tfile); // Read in the new version and check it is OK SyntheticRepository repos2 = createRepos("."); - @SuppressWarnings("unused") JavaClass clazz2 = repos2.loadClass("AttributeTestClassEM02$1"); + Assert.assertNotNull(clazz2); // Use the variable to avoid a warning EnclosingMethod em = (EnclosingMethod) encMethodAttrs[0]; String enclosingClassName = em.getEnclosingClass().getBytes(pool); assertTrue( |