+ moving .aop.aspectj.* unit tests from .testsuite -> .context

+ @SuppressWarnings and generic parameters to production .aop sources
This commit is contained in:
Chris Beams
2008-12-19 15:45:06 +00:00
parent 4a77699d38
commit 2d37eb722b
30 changed files with 245 additions and 469 deletions

View File

@@ -38,6 +38,6 @@ public interface TargetSourceCreator {
* @return a special TargetSource or <code>null</code> if this TargetSourceCreator isn't
* interested in the particular bean
*/
TargetSource getTargetSource(Class beanClass, String beanName);
TargetSource getTargetSource(Class<?> beanClass, String beanName);
}

View File

@@ -86,7 +86,7 @@ public abstract class AbstractBeanFactoryBasedTargetSourceCreator
// Implementation of the TargetSourceCreator interface
//---------------------------------------------------------------------
public final TargetSource getTargetSource(Class beanClass, String beanName) {
public final TargetSource getTargetSource(Class<?> beanClass, String beanName) {
AbstractBeanFactoryBasedTargetSource targetSource =
createBeanFactoryBasedTargetSource(beanClass, beanName);
if (targetSource == null) {
@@ -194,6 +194,6 @@ public abstract class AbstractBeanFactoryBasedTargetSourceCreator
* @return the AbstractPrototypeBasedTargetSource, or <code>null</code> if we don't match this
*/
protected abstract AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource(
Class beanClass, String beanName);
Class<?> beanClass, String beanName);
}

View File

@@ -30,7 +30,7 @@ public abstract class StaticMethodMatcher implements MethodMatcher {
return false;
}
public final boolean matches(Method method, Class targetClass, Object[] args) {
public final boolean matches(Method method, Class<?> targetClass, Object[] args) {
// should never be invoked because isRuntime() returns false
throw new UnsupportedOperationException("Illegal MethodMatcher usage");
}

View File

@@ -32,6 +32,7 @@ import org.springframework.util.Assert;
* @author Rod Johnson
* @author Juergen Hoeller
*/
@SuppressWarnings("serial")
public abstract class StaticMethodMatcherPointcutAdvisor extends StaticMethodMatcherPointcut
implements PointcutAdvisor, Ordered, Serializable {