Skip to content

Commit 2cb113c

Browse files
committed
checkstyle fix ups
1 parent b4dbb90 commit 2cb113c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

hibernate-testing/src/main/java/org/hibernate/testing/bytecode/enhancement/EnhancerTestUtils.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,14 @@
4242
* utility class to use in bytecode enhancement tests
4343
*
4444
* @author Steve Ebersole
45+
* @author Luis Barreiro
4546
*/
4647
public abstract class EnhancerTestUtils extends BaseUnitTestCase {
48+
private static final CoreMessageLogger log = CoreLogging.messageLogger( EnhancerTestUtils.class );
4749

4850
private static EnhancementContext enhancementContext = new EnhancerTestContext();
49-
5051
private static String workingDir = System.getProperty( "java.io.tmpdir" );
5152

52-
private static final CoreMessageLogger log = CoreLogging.messageLogger( EnhancerTestUtils.class );
53-
5453
/**
5554
* method that performs the enhancement of a class
5655
* also checks the signature of enhanced entities methods using 'javap' decompiler
@@ -126,6 +125,7 @@ private static void setupClassLoader(ClassLoader cl, Class<?>... classesToLoad)
126125

127126
private static ClassLoader getEnhancerClassLoader(final String packageName) {
128127
return new ClassLoader() {
128+
@SuppressWarnings("ResultOfMethodCallIgnored")
129129
@Override
130130
public Class<?> loadClass(String name) throws ClassNotFoundException {
131131
if ( !name.startsWith( packageName ) ) {
@@ -158,11 +158,12 @@ public Class<?> loadClass(String name) throws ClassNotFoundException {
158158
}
159159
catch (Throwable t) {
160160
throw new ClassNotFoundException( name + " not found", t );
161-
} finally {
161+
}
162+
finally {
162163
try {
163164
is.close();
164165
}
165-
catch (IOException e) { // ignore
166+
catch (IOException ignore) {
166167
}
167168
}
168169
}

0 commit comments

Comments
 (0)