Fix unused type compiler warnings
This commit is contained in:
@@ -309,10 +309,6 @@ public final class AspectJExpressionPointcutTests {
|
||||
assertTrue("Expression should match TestBean class", classFilter.matches(TestBean.class));
|
||||
}
|
||||
|
||||
private void assertDoesNotMatchStringClass(ClassFilter classFilter) {
|
||||
assertFalse("Expression should not match String class", classFilter.matches(String.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWithUnsupportedPointcutPrimitive() throws Exception {
|
||||
String expression = "call(int org.springframework.tests.sample.beans.TestBean.getAge())";
|
||||
|
||||
@@ -89,6 +89,8 @@ public final class TigerAspectJExpressionPointcutTests {
|
||||
|
||||
@Test
|
||||
public void testMatchVarargs() throws SecurityException, NoSuchMethodException {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
class MyTemplate {
|
||||
public int queryForInt(String sql, Object... params) {
|
||||
return 0;
|
||||
|
||||
@@ -144,7 +144,7 @@ public final class ThrowsAdviceInterceptorTests {
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private static class MyThrowsHandler extends MethodCounter implements ThrowsAdvice {
|
||||
static class MyThrowsHandler extends MethodCounter implements ThrowsAdvice {
|
||||
// Full method signature
|
||||
public void afterThrowing(Method m, Object[] args, Object target, IOException ex) {
|
||||
count("ioException");
|
||||
|
||||
Reference in New Issue
Block a user