checkstyle fix ups
This commit is contained in:
parent
b4dbb90f17
commit
2cb113cf96
|
@ -42,15 +42,14 @@ import static org.junit.Assert.fail;
|
||||||
* utility class to use in bytecode enhancement tests
|
* utility class to use in bytecode enhancement tests
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
|
* @author Luis Barreiro
|
||||||
*/
|
*/
|
||||||
public abstract class EnhancerTestUtils extends BaseUnitTestCase {
|
public abstract class EnhancerTestUtils extends BaseUnitTestCase {
|
||||||
|
private static final CoreMessageLogger log = CoreLogging.messageLogger( EnhancerTestUtils.class );
|
||||||
|
|
||||||
private static EnhancementContext enhancementContext = new EnhancerTestContext();
|
private static EnhancementContext enhancementContext = new EnhancerTestContext();
|
||||||
|
|
||||||
private static String workingDir = System.getProperty( "java.io.tmpdir" );
|
private static String workingDir = System.getProperty( "java.io.tmpdir" );
|
||||||
|
|
||||||
private static final CoreMessageLogger log = CoreLogging.messageLogger( EnhancerTestUtils.class );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* method that performs the enhancement of a class
|
* method that performs the enhancement of a class
|
||||||
* also checks the signature of enhanced entities methods using 'javap' decompiler
|
* also checks the signature of enhanced entities methods using 'javap' decompiler
|
||||||
|
@ -126,6 +125,7 @@ public abstract class EnhancerTestUtils extends BaseUnitTestCase {
|
||||||
|
|
||||||
private static ClassLoader getEnhancerClassLoader(final String packageName) {
|
private static ClassLoader getEnhancerClassLoader(final String packageName) {
|
||||||
return new ClassLoader() {
|
return new ClassLoader() {
|
||||||
|
@SuppressWarnings("ResultOfMethodCallIgnored")
|
||||||
@Override
|
@Override
|
||||||
public Class<?> loadClass(String name) throws ClassNotFoundException {
|
public Class<?> loadClass(String name) throws ClassNotFoundException {
|
||||||
if ( !name.startsWith( packageName ) ) {
|
if ( !name.startsWith( packageName ) ) {
|
||||||
|
@ -158,11 +158,12 @@ public abstract class EnhancerTestUtils extends BaseUnitTestCase {
|
||||||
}
|
}
|
||||||
catch (Throwable t) {
|
catch (Throwable t) {
|
||||||
throw new ClassNotFoundException( name + " not found", t );
|
throw new ClassNotFoundException( name + " not found", t );
|
||||||
} finally {
|
}
|
||||||
|
finally {
|
||||||
try {
|
try {
|
||||||
is.close();
|
is.close();
|
||||||
}
|
}
|
||||||
catch (IOException e) { // ignore
|
catch (IOException ignore) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue