+ moving .aop.aspectj.* unit tests from .testsuite -> .context
+ @SuppressWarnings and generic parameters to production .aop sources
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user