language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/config/AopConfigUtils.java
@@ -54,7 +54,7 @@ public abstract class AopConfigUtils { /** * Stores the auto proxy creator classes in escalation order. */ - private static final List<Class> APC_PRIORITY_LIST = new ArrayList<Class>(); + private static final List<Class<?>> APC_PRIORITY_LIST = new ArrayList<Class<?>>(); /** * Setup the ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/config/ConfigBeanDefinitionParser.java
@@ -405,7 +405,7 @@ else if (pointcut instanceof String) { /** * Gets the advice implementation class corresponding to the supplied {@link Element}. */ - private Class getAdviceClass(Element adviceElement, ParserContext parserContext) { + private Class<?> getAdviceClass(Element adviceElement, ParserContext pars...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/config/MethodLocatingFactoryBean.java
@@ -66,7 +66,7 @@ public void setBeanFactory(BeanFactory beanFactory) { throw new IllegalArgumentException("Property 'methodName' is required"); } - Class beanClass = beanFactory.getType(this.targetBeanName); + Class<?> beanClass = beanFactory.getType(this.targetBeanName); if (beanClass == null) { thr...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/AbstractAdvisingBeanPostProcessor.java
@@ -49,7 +49,7 @@ public abstract class AbstractAdvisingBeanPostProcessor extends ProxyConfig */ private int order = Ordered.LOWEST_PRECEDENCE; - private final Map<Class, Boolean> eligibleBeans = new ConcurrentHashMap<Class, Boolean>(64); + private final Map<Class<?>, Boolean> eligibleBeans = new ConcurrentHashM...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java
@@ -58,7 +58,6 @@ * @author Juergen Hoeller * @see org.springframework.aop.framework.AopProxy */ -@SuppressWarnings("unchecked") public class AdvisedSupport extends ProxyConfig implements Advised { /** use serialVersionUID from Spring 2.0 for interoperability */ @@ -88,7 +87,7 @@ public class AdvisedSupport ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/AdvisorChainFactory.java
@@ -36,6 +36,6 @@ public interface AdvisorChainFactory { * @return List of MethodInterceptors (may also include InterceptorAndDynamicMethodMatchers) */ List<Object> getInterceptorsAndDynamicInterceptionAdvice( - Advised config, Method method, Class targetClass); + Advised config, Method method, Class<?> tar...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/AopProxyUtils.java
@@ -78,13 +78,13 @@ public static Class<?> ultimateTargetClass(Object candidate) { * @see Advised * @see org.springframework.aop.SpringProxy */ - public static Class[] completeProxiedInterfaces(AdvisedSupport advised) { - Class[] specifiedInterfaces = advised.getProxiedInterfaces(); + public static Class<?>[]...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/CglibAopProxy.java
@@ -187,7 +187,7 @@ public Object getProxy(ClassLoader classLoader) { enhancer.setInterfaces(AopProxyUtils.completeProxiedInterfaces(this.advised)); Callback[] callbacks = getCallbacks(rootClass); - Class<?>[] types = new Class[callbacks.length]; + Class<?>[] types = new Class<?>[callbacks.length]; ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/DefaultAdvisorChainFactory.java
@@ -48,7 +48,7 @@ public class DefaultAdvisorChainFactory implements AdvisorChainFactory, Serializ @Override public List<Object> getInterceptorsAndDynamicInterceptionAdvice( - Advised config, Method method, Class targetClass) { + Advised config, Method method, Class<?> targetClass) { // This is somewhat ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/DefaultAopProxyFactory.java
@@ -51,7 +51,7 @@ public class DefaultAopProxyFactory implements AopProxyFactory, Serializable { @Override public AopProxy createAopProxy(AdvisedSupport config) throws AopConfigException { if (config.isOptimize() || config.isProxyTargetClass() || hasNoUserSuppliedProxyInterfaces(config)) { - Class targetClass ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java
@@ -116,7 +116,7 @@ public Object getProxy(ClassLoader classLoader) { if (logger.isDebugEnabled()) { logger.debug("Creating JDK dynamic proxy: target source is " + this.advised.getTargetSource()); } - Class[] proxiedInterfaces = AopProxyUtils.completeProxiedInterfaces(this.advised); + Class<?>[] proxiedInte...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/ObjenesisCglibAopProxy.java
@@ -32,6 +32,7 @@ * @author Oliver Gierke * @since 4.0 */ +@SuppressWarnings("serial") class ObjenesisCglibAopProxy extends CglibAopProxy { private static final Log logger = LogFactory.getLog(ObjenesisCglibAopProxy.class);
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactoryBean.java
@@ -133,7 +133,7 @@ public class ProxyFactoryBean extends ProxyCreatorSupport * @see #setInterfaces * @see AbstractSingletonProxyFactoryBean#setProxyInterfaces */ - public void setProxyInterfaces(Class[] proxyInterfaces) throws ClassNotFoundException { + public void setProxyInterfaces(Class<?>[] proxyInterface...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/ReflectiveMethodInvocation.java
@@ -68,7 +68,7 @@ public class ReflectiveMethodInvocation implements ProxyMethodInvocation, Clonea protected Object[] arguments; - private final Class targetClass; + private final Class<?> targetClass; /** * Lazily initialized map of user-specific attributes for this invocation. @@ -79,7 +79,7 @@ public cl...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/adapter/ThrowsAdviceInterceptor.java
@@ -61,7 +61,7 @@ public class ThrowsAdviceInterceptor implements MethodInterceptor, AfterAdvice { private final Object throwsAdvice; /** Methods on throws advice, keyed by exception class */ - private final Map<Class, Method> exceptionHandlerMap = new HashMap<Class, Method>(); + private final Map<Class<?>, Metho...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAdvisorAutoProxyCreator.java
@@ -65,8 +65,8 @@ protected void initBeanFactory(ConfigurableListableBeanFactory beanFactory) { @Override - protected Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, TargetSource targetSource) { - List advisors = findEligibleAdvisors(beanClass, beanName); + protected Object[] getAdvicesAn...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/BeanNameAutoProxyCreator.java
@@ -73,7 +73,7 @@ public void setBeanNames(String[] beanNames) { * Identify as bean to proxy if the bean name is in the configured list of names. */ @Override - protected Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, TargetSource targetSource) { + protected Object[] getAdvicesAndAdviso...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/target/LazyInitTargetSourceCreator.java
@@ -60,7 +60,7 @@ protected boolean isPrototypeBased() { @Override protected AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource( - Class beanClass, String beanName) { + Class<?> beanClass, String beanName) { if (getBeanFactory() instanceof ConfigurableListableBeanFactory) { BeanD...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/target/QuickTargetSourceCreator.java
@@ -41,7 +41,7 @@ public class QuickTargetSourceCreator extends AbstractBeanFactoryBasedTargetSour @Override protected final AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource( - Class beanClass, String beanName) { + Class<?> beanClass, String beanName) { if (beanName.startsWith(PREF...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/interceptor/AbstractMonitoringInterceptor.java
@@ -98,7 +98,7 @@ public void setLogTargetClassInvocation(boolean logTargetClassInvocation) { protected String createInvocationTraceName(MethodInvocation invocation) { StringBuilder sb = new StringBuilder(getPrefix()); Method method = invocation.getMethod(); - Class clazz = method.getDeclaringClass(); + Class...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/interceptor/AbstractTraceInterceptor.java
@@ -142,7 +142,7 @@ protected Log getLoggerForInvocation(MethodInvocation invocation) { * @return the target class for the given object * @see #setHideProxyClassNames */ - protected Class getClassForLogging(Object target) { + protected Class<?> getClassForLogging(Object target) { return (this.hideProxyClass...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/interceptor/CustomizableTraceInterceptor.java
@@ -151,7 +151,7 @@ public class CustomizableTraceInterceptor extends AbstractTraceInterceptor { /** * The {@code Set} of allowed placeholders. */ - private static final Set ALLOWED_PLACEHOLDERS = + private static final Set<Object> ALLOWED_PLACEHOLDERS = new Constants(CustomizableTraceInterceptor.class).get...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/scope/ScopedProxyFactoryBean.java
@@ -91,7 +91,7 @@ public void setBeanFactory(BeanFactory beanFactory) { pf.copyFrom(this); pf.setTargetSource(this.scopedTargetSource); - Class beanType = beanFactory.getType(this.targetBeanName); + Class<?> beanType = beanFactory.getType(this.targetBeanName); if (beanType == null) { throw new IllegalS...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/AbstractRegexpMethodPointcut.java
@@ -125,7 +125,7 @@ public String[] getExcludedPatterns() { * plus the name of the method. */ @Override - public boolean matches(Method method, Class targetClass) { + public boolean matches(Method method, Class<?> targetClass) { return ((targetClass != null && matchesPattern(targetClass.getName() + "." + met...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/AopUtils.java
@@ -215,7 +215,7 @@ public static boolean canApply(Pointcut pc, Class<?> targetClass, boolean hasInt introductionAwareMethodMatcher = (IntroductionAwareMethodMatcher) methodMatcher; } - Set<Class> classes = new HashSet<Class>(ClassUtils.getAllInterfacesForClassAsSet(targetClass)); + Set<Class<?>> classes = n...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/ClassFilters.java
@@ -97,7 +97,7 @@ public UnionClassFilter(ClassFilter[] filters) { } @Override - public boolean matches(Class clazz) { + public boolean matches(Class<?> clazz) { for (int i = 0; i < this.filters.length; i++) { if (this.filters[i].matches(clazz)) { return true; @@ -132,7 +132,7 @@ public Interse...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/ControlFlowPointcut.java
@@ -39,7 +39,7 @@ @SuppressWarnings("serial") public class ControlFlowPointcut implements Pointcut, ClassFilter, MethodMatcher, Serializable { - private Class clazz; + private Class<?> clazz; private String methodName; @@ -50,7 +50,7 @@ public class ControlFlowPointcut implements Pointcut, ClassFilter, Method...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/DefaultIntroductionAdvisor.java
@@ -43,7 +43,7 @@ public class DefaultIntroductionAdvisor implements IntroductionAdvisor, ClassFil private final Advice advice; - private final Set<Class> interfaces = new HashSet<Class>(); + private final Set<Class<?>> interfaces = new HashSet<Class<?>>(); private int order = Integer.MAX_VALUE; @@ -68,11 +...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/DelegatePerTargetObjectIntroductionInterceptor.java
@@ -59,12 +59,12 @@ public class DelegatePerTargetObjectIntroductionInterceptor extends Introduction */ private final Map<Object, Object> delegateMap = new WeakHashMap<Object, Object>(); - private Class defaultImplType; + private Class<?> defaultImplType; - private Class interfaceType; + private Class<?> inter...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/IntroductionInfoSupport.java
@@ -43,7 +43,7 @@ @SuppressWarnings("serial") public class IntroductionInfoSupport implements IntroductionInfo, Serializable { - protected final Set<Class> publishedInterfaces = new HashSet<Class>(); + protected final Set<Class<?>> publishedInterfaces = new HashSet<Class<?>>(); private transient Map<Method, Boo...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/MethodMatchers.java
@@ -88,7 +88,7 @@ public static MethodMatcher intersection(MethodMatcher mm1, MethodMatcher mm2) { * asking is the subject on one or more introductions; {@code false} otherwise * @return whether or not this method matches statically */ - public static boolean matches(MethodMatcher mm, Method method, Class targ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/NameMatchMethodPointcut.java
@@ -78,7 +78,7 @@ public NameMatchMethodPointcut addMethodName(String name) { @Override - public boolean matches(Method method, Class targetClass) { + public boolean matches(Method method, Class<?> targetClass) { for (String mappedName : this.mappedNames) { if (mappedName.equals(method.getName()) || isMatc...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/Pointcuts.java
@@ -71,7 +71,7 @@ public static Pointcut intersection(Pointcut pc1, Pointcut pc2) { * @param args arguments to the method * @return whether there's a runtime match */ - public static boolean matches(Pointcut pointcut, Method method, Class targetClass, Object[] args) { + public static boolean matches(Pointcut p...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/RootClassFilter.java
@@ -27,16 +27,16 @@ @SuppressWarnings("serial") public class RootClassFilter implements ClassFilter, Serializable { - private Class clazz; + private Class<?> clazz; - // TODO inheritance - public RootClassFilter(Class clazz) { + public RootClassFilter(Class<?> clazz) { this.clazz = clazz; } + @Override...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/annotation/AnnotationClassFilter.java
@@ -60,7 +60,7 @@ public AnnotationClassFilter(Class<? extends Annotation> annotationType, boolean @Override - public boolean matches(Class clazz) { + public boolean matches(Class<?> clazz) { return (this.checkInherited ? (AnnotationUtils.findAnnotation(clazz, this.annotationType) != null) : clazz.is...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/support/annotation/AnnotationMethodMatcher.java
@@ -48,7 +48,7 @@ public AnnotationMethodMatcher(Class<? extends Annotation> annotationType) { @Override - public boolean matches(Method method, Class targetClass) { + public boolean matches(Method method, Class<?> targetClass) { if (method.isAnnotationPresent(this.annotationType)) { return true; }
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/target/AbstractBeanFactoryBasedTargetSource.java
@@ -97,7 +97,7 @@ public String getTargetBeanName() { * <p>Default is to detect the type automatically, through a {@code getType} * call on the BeanFactory (or even a full {@code getBean} call as fallback). */ - public void setTargetClass(Class targetClass) { + public void setTargetClass(Class<?> targetClass) ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/target/AbstractPoolingTargetSource.java
@@ -53,6 +53,9 @@ public abstract class AbstractPoolingTargetSource extends AbstractPrototypeBasedTargetSource implements PoolingConfig, DisposableBean { + private static final long serialVersionUID = 1L; + + /** The maximum size of the pool */ private int maxSize = -1;
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/target/AbstractPrototypeBasedTargetSource.java
@@ -45,6 +45,9 @@ */ public abstract class AbstractPrototypeBasedTargetSource extends AbstractBeanFactoryBasedTargetSource { + private static final long serialVersionUID = 1L; + + @Override public void setBeanFactory(BeanFactory beanFactory) throws BeansException { super.setBeanFactory(beanFactory);
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/main/java/org/springframework/aop/target/EmptyTargetSource.java
@@ -50,7 +50,7 @@ public class EmptyTargetSource implements TargetSource, Serializable { * @param targetClass the target Class (may be {@code null}) * @see #getTargetClass() */ - public static EmptyTargetSource forClass(Class targetClass) { + public static EmptyTargetSource forClass(Class<?> targetClass) { ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/test/java/org/springframework/tests/aop/interceptor/NopInterceptor.java
@@ -46,6 +46,11 @@ protected void increment() { ++count; } + @Override + public int hashCode() { + return 0; + } + @Override public boolean equals(Object other) { if (!(other instanceof NopInterceptor)) { @@ -57,4 +62,5 @@ public boolean equals(Object other) { return this.count == ((NopInterceptor) ot...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-aop/src/test/java/org/springframework/tests/sample/beans/SerializablePerson.java
@@ -28,7 +28,11 @@ @SuppressWarnings("serial") public class SerializablePerson implements Person, Serializable { + private static final long serialVersionUID = 1L; + + private String name; + private int age; @Override @@ -59,6 +63,11 @@ public Object echo(Object o) throws Throwable { return o; } + @O...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/AbstractPropertyAccessor.java
@@ -112,7 +112,7 @@ public void setPropertyValues(PropertyValues pvs, boolean ignoreUnknown, boolean // Redefined with public visibility. @Override - public Class getPropertyType(String propertyPath) { + public Class<?> getPropertyType(String propertyPath) { return null; }
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/BeanInstantiationException.java
@@ -26,15 +26,15 @@ @SuppressWarnings("serial") public class BeanInstantiationException extends FatalBeanException { - private Class beanClass; + private Class<?> beanClass; /** * Create a new BeanInstantiationException. * @param beanClass the offending bean class * @param msg the detail message *...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
@@ -336,7 +336,7 @@ else if (firstParen == -1 && lastParen == -1) { String methodName = signature.substring(0, firstParen); String[] parameterTypeNames = StringUtils.commaDelimitedListToStringArray(signature.substring(firstParen + 1, lastParen)); - Class<?>[] parameterTypes = new Class[parameterTypeName...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/BeanWrapper.java
@@ -59,7 +59,7 @@ public interface BeanWrapper extends ConfigurablePropertyAccessor { * @return the type of the wrapped bean instance, * or {@code null} if no wrapped object has been set */ - Class getWrappedClass(); + Class<?> getWrappedClass(); /** * Obtain the PropertyDescriptors for the wrapped obje...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java
@@ -37,7 +37,6 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; - import org.springframework.core.CollectionFactory; import org.springframework.core.GenericCollectionTypeResolver; import org.springframework.core.convert.ConversionException; @@ -225,7 +224,7 @@ public final ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java
@@ -32,7 +32,6 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; - import org.springframework.core.io.support.SpringFactoriesLoader; import org.springframework.util.ClassUtils; import org.springframework.util.StringUtils; @@ -76,7 +75,7 @@ public class CachedIntrospectionRes...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/ConversionNotSupportedException.java
@@ -34,7 +34,8 @@ public class ConversionNotSupportedException extends TypeMismatchException { * @param requiredType the required target type (or {@code null} if not known) * @param cause the root cause (may be {@code null}) */ - public ConversionNotSupportedException(PropertyChangeEvent propertyChangeEvent, C...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/InvalidPropertyException.java
@@ -26,7 +26,7 @@ @SuppressWarnings("serial") public class InvalidPropertyException extends FatalBeanException { - private Class beanClass; + private Class<?> beanClass; private String propertyName; @@ -37,7 +37,7 @@ public class InvalidPropertyException extends FatalBeanException { * @param propertyName t...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/MutablePropertyValues.java
@@ -86,7 +86,7 @@ public MutablePropertyValues(Map<?, ?> original) { // There is no replacement of existing property values. if (original != null) { this.propertyValueList = new ArrayList<PropertyValue>(original.size()); - for (Map.Entry entry : original.entrySet()) { + for (Map.Entry<?, ?> entry : origin...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/NotReadablePropertyException.java
@@ -31,7 +31,7 @@ public class NotReadablePropertyException extends InvalidPropertyException { * @param beanClass the offending bean class * @param propertyName the offending property */ - public NotReadablePropertyException(Class beanClass, String propertyName) { + public NotReadablePropertyException(Class<?>...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/NotWritablePropertyException.java
@@ -35,7 +35,7 @@ public class NotWritablePropertyException extends InvalidPropertyException { * @param beanClass the offending bean class * @param propertyName the offending property name */ - public NotWritablePropertyException(Class beanClass, String propertyName) { + public NotWritablePropertyException(Cla...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/NullValueInNestedPathException.java
@@ -33,7 +33,7 @@ public class NullValueInNestedPathException extends InvalidPropertyException { * @param beanClass the offending bean class * @param propertyName the offending property */ - public NullValueInNestedPathException(Class beanClass, String propertyName) { + public NullValueInNestedPathException(Cl...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/PropertyAccessor.java
@@ -86,7 +86,7 @@ public interface PropertyAccessor { * @throws PropertyAccessException if the property was valid but the * accessor method failed */ - Class getPropertyType(String propertyName) throws BeansException; + Class<?> getPropertyType(String propertyName) throws BeansException; /** * Return a ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/PropertyBatchUpdateException.java
@@ -130,7 +130,7 @@ public void printStackTrace(PrintWriter pw) { } @Override - public boolean contains(Class exType) { + public boolean contains(Class<?> exType) { if (exType == null) { return false; }
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/PropertyMatches.java
@@ -49,7 +49,7 @@ final class PropertyMatches { * @param propertyName the name of the property to find possible matches for * @param beanClass the bean class to search for matches */ - public static PropertyMatches forProperty(String propertyName, Class beanClass) { + public static PropertyMatches forProperty(...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/TypeConverterDelegate.java
@@ -200,13 +200,13 @@ public <T> T convertIfNecessary(String propertyName, Object oldValue, Object new else if (convertedValue instanceof Collection) { // Convert elements to target type, if determined. convertedValue = convertToTypedCollection( - (Collection) convertedValue, propertyName, requir...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/TypeMismatchException.java
@@ -37,15 +37,15 @@ public class TypeMismatchException extends PropertyAccessException { private transient Object value; - private Class requiredType; + private Class<?> requiredType; /** * Create a new TypeMismatchException. * @param propertyChangeEvent the PropertyChangeEvent that resulted in the pr...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/BeanCreationException.java
@@ -185,7 +185,7 @@ public void printStackTrace(PrintWriter pw) { } @Override - public boolean contains(Class exClass) { + public boolean contains(Class<?> exClass) { if (super.contains(exClass)) { return true; }
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/BeanIsNotAFactoryException.java
@@ -34,7 +34,7 @@ public class BeanIsNotAFactoryException extends BeanNotOfRequiredTypeException { * @param actualType the actual type returned, which did not match * the expected type */ - public BeanIsNotAFactoryException(String name, Class actualType) { + public BeanIsNotAFactoryException(String name, Class...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/BeanNotOfRequiredTypeException.java
@@ -31,10 +31,10 @@ public class BeanNotOfRequiredTypeException extends BeansException { private String beanName; /** The required type */ - private Class requiredType; + private Class<?> requiredType; /** The offending type */ - private Class actualType; + private Class<?> actualType; /** @@ -44,7 +44,...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/UnsatisfiedDependencyException.java
@@ -69,7 +69,7 @@ public UnsatisfiedDependencyException( * @param msg the detail message */ public UnsatisfiedDependencyException( - String resourceDescription, String beanName, int ctorArgIndex, Class ctorArgType, String msg) { + String resourceDescription, String beanName, int ctorArgIndex, Class<?> ctorA...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java
@@ -268,10 +268,10 @@ else if (candidate.getParameterTypes().length == 0) { if (requiredConstructor == null && defaultConstructor != null) { candidates.add(defaultConstructor); } - candidateConstructors = candidates.toArray(new Constructor[candidates.size()]); + candidateConstructors = c...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/annotation/CustomAutowireConfigurer.java
@@ -50,7 +50,7 @@ public class CustomAutowireConfigurer implements BeanFactoryPostProcessor, BeanC private int order = Ordered.LOWEST_PRECEDENCE; // default: same as non-Ordered - private Set customQualifierTypes; + private Set<?> customQualifierTypes; private ClassLoader beanClassLoader = ClassUtils.getDefa...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/annotation/InitDestroyAnnotationBeanPostProcessor.java
@@ -243,7 +243,7 @@ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFound */ private class LifecycleMetadata { - private final Class targetClass; + private final Class<?> targetClass; private final Collection<LifecycleElement> initMethods;
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/AbstractFactoryBean.java
@@ -158,7 +158,7 @@ public final T getObject() throws Exception { */ @SuppressWarnings("unchecked") private T getEarlySingletonInstance() throws Exception { - Class[] ifcs = getEarlySingletonInterfaces(); + Class<?>[] ifcs = getEarlySingletonInterfaces(); if (ifcs == null) { throw new FactoryBeanNotInit...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/BeanReferenceFactoryBean.java
@@ -46,7 +46,7 @@ * (which support placeholder parsing since Spring 2.5) */ @Deprecated -public class BeanReferenceFactoryBean implements SmartFactoryBean, BeanFactoryAware { +public class BeanReferenceFactoryBean implements SmartFactoryBean<Object>, BeanFactoryAware { private String targetBeanName; @@ -86,7...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/CustomEditorConfigurer.java
@@ -140,7 +140,6 @@ public void setCustomEditors(Map<Class<?>, Class<? extends PropertyEditor>> cust @Override - @SuppressWarnings("unchecked") public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { if (this.propertyEditorRegistrars != null) { for (Propert...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/CustomScopeConfigurer.java
@@ -77,7 +77,6 @@ public void setBeanClassLoader(ClassLoader beanClassLoader) { @Override - @SuppressWarnings("unchecked") public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { if (this.scopes != null) { for (Map.Entry<String, Object> entry : this.scopes....
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/DependencyDescriptor.java
@@ -52,7 +52,7 @@ public class DependencyDescriptor implements Serializable { private String methodName; - private Class[] parameterTypes; + private Class<?>[] parameterTypes; private int parameterIndex; @@ -267,12 +267,12 @@ public Class<?> getDependencyType() { Type[] args = ((ParameterizedType) typ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/FieldRetrievingFactoryBean.java
@@ -55,7 +55,7 @@ public class FieldRetrievingFactoryBean implements FactoryBean<Object>, BeanNameAware, BeanClassLoaderAware, InitializingBean { - private Class targetClass; + private Class<?> targetClass; private Object targetObject; @@ -78,14 +78,14 @@ * @see #setTargetObject * @see #setTargetField...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/ListFactoryBean.java
@@ -32,17 +32,18 @@ * @see SetFactoryBean * @see MapFactoryBean */ -public class ListFactoryBean extends AbstractFactoryBean<List> { +public class ListFactoryBean extends AbstractFactoryBean<List<Object>> { - private List sourceList; + private List<?> sourceList; - private Class targetListClass; + @SuppressWa...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/MapFactoryBean.java
@@ -32,17 +32,18 @@ * @see SetFactoryBean * @see ListFactoryBean */ -public class MapFactoryBean extends AbstractFactoryBean<Map> { +public class MapFactoryBean extends AbstractFactoryBean<Map<Object, Object>> { private Map<?, ?> sourceMap; - private Class targetMapClass; + @SuppressWarnings("rawtypes") + p...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java
@@ -121,7 +121,7 @@ public void setBeanClassLoader(ClassLoader classLoader) { } @Override - protected Class resolveClassName(String className) throws ClassNotFoundException { + protected Class<?> resolveClassName(String className) throws ClassNotFoundException { return ClassUtils.forName(className, this.beanCl...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/ObjectFactoryCreatingFactoryBean.java
@@ -94,7 +94,7 @@ * @see org.springframework.beans.factory.ObjectFactory * @see ServiceLocatorFactoryBean */ -public class ObjectFactoryCreatingFactoryBean extends AbstractFactoryBean<ObjectFactory> { +public class ObjectFactoryCreatingFactoryBean extends AbstractFactoryBean<ObjectFactory<Object>> { private S...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyOverrideConfigurer.java
@@ -100,7 +100,7 @@ public void setIgnoreInvalidKeys(boolean ignoreInvalidKeys) { protected void processProperties(ConfigurableListableBeanFactory beanFactory, Properties props) throws BeansException { - for (Enumeration names = props.propertyNames(); names.hasMoreElements();) { + for (Enumeration<?> names = ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyPathFactoryBean.java
@@ -91,7 +91,7 @@ public class PropertyPathFactoryBean implements FactoryBean<Object>, BeanNameAwa private String propertyPath; - private Class resultType; + private Class<?> resultType; private String beanName; @@ -137,7 +137,7 @@ public void setPropertyPath(String propertyPath) { * provided that you ne...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/ProviderCreatingFactoryBean.java
@@ -39,7 +39,7 @@ * @see javax.inject.Provider * @see ObjectFactoryCreatingFactoryBean */ -public class ProviderCreatingFactoryBean extends AbstractFactoryBean<Provider> { +public class ProviderCreatingFactoryBean extends AbstractFactoryBean<Provider<Object>> { private String targetBeanName; @@ -63,12 +63,1...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBean.java
@@ -188,9 +188,9 @@ */ public class ServiceLocatorFactoryBean implements FactoryBean<Object>, BeanFactoryAware, InitializingBean { - private Class serviceLocatorInterface; + private Class<?> serviceLocatorInterface; - private Constructor serviceLocatorExceptionConstructor; + private Constructor<Exception> servic...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/SetFactoryBean.java
@@ -32,17 +32,18 @@ * @see ListFactoryBean * @see MapFactoryBean */ -public class SetFactoryBean extends AbstractFactoryBean<Set> { +public class SetFactoryBean extends AbstractFactoryBean<Set<Object>> { - private Set sourceSet; + private Set<?> sourceSet; - private Class targetSetClass; + @SuppressWarnings("...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/config/TypedStringValue.java
@@ -114,7 +114,7 @@ public Class<?> getTargetType() { if (!(targetTypeValue instanceof Class)) { throw new IllegalStateException("Typed String value does not carry a resolved target type"); } - return (Class) targetTypeValue; + return (Class<?>) targetTypeValue; } /** @@ -131,7 +131,7 @@ public void s...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/parsing/ParseState.java
@@ -40,22 +40,23 @@ public final class ParseState { /** * Internal {@link Stack} storage. */ - private final Stack state; + private final Stack<Entry> state; /** * Create a new {@code ParseState} with an empty {@link Stack}. */ public ParseState() { - this.state = new Stack(); + this.state = new...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/serviceloader/AbstractServiceLoaderBasedFactoryBean.java
@@ -31,25 +31,25 @@ * @since 2.5 * @see java.util.ServiceLoader */ -public abstract class AbstractServiceLoaderBasedFactoryBean extends AbstractFactoryBean +public abstract class AbstractServiceLoaderBasedFactoryBean extends AbstractFactoryBean<Object> implements BeanClassLoaderAware { - private Class servic...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/serviceloader/ServiceFactoryBean.java
@@ -33,8 +33,8 @@ public class ServiceFactoryBean extends AbstractServiceLoaderBasedFactoryBean implements BeanClassLoaderAware { @Override - protected Object getObjectToExpose(ServiceLoader serviceLoader) { - Iterator it = serviceLoader.iterator(); + protected Object getObjectToExpose(ServiceLoader<?> serviceLoa...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/serviceloader/ServiceListFactoryBean.java
@@ -34,7 +34,7 @@ public class ServiceListFactoryBean extends AbstractServiceLoaderBasedFactoryBean implements BeanClassLoaderAware { @Override - protected Object getObjectToExpose(ServiceLoader serviceLoader) { + protected Object getObjectToExpose(ServiceLoader<?> serviceLoader) { List<Object> result = new Lin...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/serviceloader/ServiceLoaderFactoryBean.java
@@ -31,12 +31,12 @@ public class ServiceLoaderFactoryBean extends AbstractServiceLoaderBasedFactoryBean implements BeanClassLoaderAware { @Override - protected Object getObjectToExpose(ServiceLoader serviceLoader) { + protected Object getObjectToExpose(ServiceLoader<?> serviceLoader) { return serviceLoader; }...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java
@@ -135,21 +135,21 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac * Dependency types to ignore on dependency check and autowire, as Set of * Class objects: for example, String. Default is none. */ - private final Set<Class> ignoredDependencyTypes = new HashSet<Class>(); + p...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java
@@ -357,7 +357,7 @@ public Class<?> getBeanClass() throws IllegalStateException { throw new IllegalStateException( "Bean class name [" + beanClassObject + "] has not been resolved into an actual Class"); } - return (Class) beanClassObject; + return (Class<?>) beanClassObject; } @Override @@ -369,7 ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java
@@ -513,8 +513,8 @@ else if (containsSingleton(beanName) && !containsBeanDefinition(beanName)) { // Retrieve corresponding bean definition. RootBeanDefinition mbd = getMergedLocalBeanDefinition(beanName); - Class[] typesToMatch = (FactoryBean.class.equals(typeToMatch) ? - new Class[] {typeToMatch} : new...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/AutowireCandidateQualifier.java
@@ -42,7 +42,7 @@ public class AutowireCandidateQualifier extends BeanMetadataAttributeAccessor { * given type. * @param type the annotation type */ - public AutowireCandidateQualifier(Class type) { + public AutowireCandidateQualifier(Class<?> type) { this(type.getName()); } @@ -65,7 +65,7 @@ public Aut...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/AutowireUtils.java
@@ -56,10 +56,10 @@ abstract class AutowireUtils { * decreasing number of arguments. * @param constructors the constructor array to sort */ - public static void sortConstructors(Constructor[] constructors) { - Arrays.sort(constructors, new Comparator<Constructor>() { + public static void sortConstructors(Cons...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java
@@ -45,7 +45,7 @@ public static BeanDefinitionBuilder genericBeanDefinition() { * Create a new {@code BeanDefinitionBuilder} used to construct a {@link GenericBeanDefinition}. * @param beanClass the {@code Class} of the bean that the definition is being created for */ - public static BeanDefinitionBuilder gene...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionValueResolver.java
@@ -164,7 +164,7 @@ else if (value instanceof ManagedMap) { else if (value instanceof ManagedProperties) { Properties original = (Properties) value; Properties copy = new Properties(); - for (Map.Entry propEntry : original.entrySet()) { + for (Map.Entry<Object, Object> propEntry : original.entrySet()) { ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/CglibSubclassingInstantiationStrategy.java
@@ -72,7 +72,7 @@ protected Object instantiateWithMethodInjection( @Override protected Object instantiateWithMethodInjection( RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, - Constructor ctor, Object[] args) { + Constructor<?> ctor, Object[] args) { return new CglibSubclassCreat...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java
@@ -103,12 +103,12 @@ public ConstructorResolver(AbstractAutowireCapableBeanFactory beanFactory) { * @return a BeanWrapper for the new instance */ public BeanWrapper autowireConstructor( - final String beanName, final RootBeanDefinition mbd, Constructor[] chosenCtors, final Object[] explicitArgs) { + final ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java
@@ -128,7 +128,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto private boolean allowEagerClassLoading = true; /** Optional OrderComparator for dependency Lists and arrays */ - private Comparator dependencyComparator; + private Comparator<Object> dependencyComparator; /** ...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java
@@ -85,7 +85,7 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements private final Map<String, Object> singletonObjects = new ConcurrentHashMap<String, Object>(64); /** Cache of singleton factories: bean name --> ObjectFactory */ - private final Map<String, ObjectFactory> singletonFa...
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/DisposableBeanAdapter.java
@@ -65,7 +65,7 @@ class DisposableBeanAdapter implements DisposableBean, Runnable, Serializable { private static final Log logger = LogFactory.getLog(DisposableBeanAdapter.class); - private static Class closeableInterface; + private static Class<?> closeableInterface; static { try {
true
Other
spring-projects
spring-framework
59002f245623d758765b72d598cd78c326c6f5fa.json
Fix remaining compiler warnings Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
spring-beans/src/main/java/org/springframework/beans/factory/support/FactoryBeanRegistrySupport.java
@@ -52,12 +52,12 @@ public abstract class FactoryBeanRegistrySupport extends DefaultSingletonBeanReg * @return the FactoryBean's object type, * or {@code null} if the type cannot be determined yet */ - protected Class getTypeForFactoryBean(final FactoryBean factoryBean) { + protected Class<?> getTypeForFactory...
true