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-beans/src/main/java/org/springframework/beans/factory/support/ManagedArray.java
@@ -29,7 +29,7 @@ public class ManagedArray extends ManagedList<Object> { /** Resolved element type for runtime creation of the target array */ - volatile Class resolvedElementType; + volatile Class<?> resolvedElementType; /**
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/ManagedList.java
@@ -102,7 +102,7 @@ public List<E> merge(Object parent) { throw new IllegalArgumentException("Cannot merge with object of type [" + parent.getClass() + "]"); } List<E> merged = new ManagedList<E>(); - merged.addAll((List) parent); + merged.addAll((List<E>) parent); merged.addAll(this); return merged; ...
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/ManagedMap.java
@@ -117,7 +117,7 @@ public Object merge(Object parent) { throw new IllegalArgumentException("Cannot merge with object of type [" + parent.getClass() + "]"); } Map<K, V> merged = new ManagedMap<K, V>(); - merged.putAll((Map) parent); + merged.putAll((Map<K, V>) parent); merged.putAll(this); return merg...
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/ManagedSet.java
@@ -101,7 +101,7 @@ public Set<E> merge(Object parent) { throw new IllegalArgumentException("Cannot merge with object of type [" + parent.getClass() + "]"); } Set<E> merged = new ManagedSet<E>(); - merged.addAll((Set) parent); + merged.addAll((Set<E>) parent); merged.addAll(this); return merged; }
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/PropertiesBeanDefinitionReader.java
@@ -290,9 +290,9 @@ public int registerBeanDefinitions(ResourceBundle rb) throws BeanDefinitionStore public int registerBeanDefinitions(ResourceBundle rb, String prefix) throws BeanDefinitionStoreException { // Simply create a map and call overloaded method. Map<String, Object> map = new HashMap<String, Object>...
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/SimpleInstantiationStrategy.java
@@ -63,15 +63,15 @@ public Object instantiate(RootBeanDefinition beanDefinition, String beanName, Be synchronized (beanDefinition.constructorArgumentLock) { constructorToUse = (Constructor<?>) beanDefinition.resolvedConstructorOrFactoryMethod; if (constructorToUse == null) { - final Class clazz = bean...
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/StaticListableBeanFactory.java
@@ -94,7 +94,7 @@ public Object getBean(String name) throws BeansException { if (bean instanceof FactoryBean && !BeanFactoryUtils.isFactoryDereference(name)) { try { - return ((FactoryBean) bean).getObject(); + return ((FactoryBean<?>) bean).getObject(); } catch (Exception ex) { throw new Be...
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/xml/BeanDefinitionParserDelegate.java
@@ -519,7 +519,7 @@ protected void checkNameUniqueness(String beanName, List<String> aliases, Elemen foundName = beanName; } if (foundName == null) { - foundName = (String) CollectionUtils.findFirstMatch(this.usedNames, aliases); + foundName = CollectionUtils.findFirstMatch(this.usedNames, aliases); } ...
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/xml/ResourceEntityResolver.java
@@ -75,7 +75,7 @@ public InputSource resolveEntity(String publicId, String systemId) throws SAXExc if (source == null && systemId != null) { String resourcePath = null; try { - String decodedSystemId = URLDecoder.decode(systemId); + String decodedSystemId = URLDecoder.decode(systemId, "UTF-8"); St...
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/xml/UtilNamespaceHandler.java
@@ -59,7 +59,7 @@ public void init() { private static class ConstantBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser { @Override - protected Class getBeanClass(Element element) { + protected Class<?> getBeanClass(Element element) { return FieldRetrievingFactoryBean.class; } @@ -77,7 +77...
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/propertyeditors/ClassArrayEditor.java
@@ -62,7 +62,7 @@ public ClassArrayEditor(ClassLoader classLoader) { public void setAsText(String text) throws IllegalArgumentException { if (StringUtils.hasText(text)) { String[] classNames = StringUtils.commaDelimitedListToStringArray(text); - Class[] classes = new Class[classNames.length]; + 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/propertyeditors/ClassEditor.java
@@ -69,7 +69,7 @@ public void setAsText(String text) throws IllegalArgumentException { @Override public String getAsText() { - Class clazz = (Class) getValue(); + Class<?> clazz = (Class<?>) getValue(); if (clazz != null) { return ClassUtils.getQualifiedName(clazz); }
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/propertyeditors/CustomCollectionEditor.java
@@ -42,7 +42,8 @@ */ public class CustomCollectionEditor extends PropertyEditorSupport { - private final Class collectionType; + @SuppressWarnings("rawtypes") + private final Class<? extends Collection> collectionType; private final boolean nullAsEmptyCollection; @@ -57,7 +58,8 @@ public class CustomCollecti...
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/propertyeditors/CustomMapEditor.java
@@ -33,7 +33,8 @@ */ public class CustomMapEditor extends PropertyEditorSupport { - private final Class mapType; + @SuppressWarnings("rawtypes") + private final Class<? extends Map> mapType; private final boolean nullAsEmptyMap; @@ -48,7 +49,8 @@ public class CustomMapEditor extends PropertyEditorSupport { ...
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/propertyeditors/PropertiesEditor.java
@@ -67,7 +67,7 @@ public void setAsText(String text) throws IllegalArgumentException { public void setValue(Object value) { if (!(value instanceof Properties) && value instanceof Map) { Properties props = new Properties(); - props.putAll((Map) value); + props.putAll((Map<?, ?>) value); super.setValue(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/support/ArgumentConvertingMethodInvoker.java
@@ -92,7 +92,7 @@ protected TypeConverter getDefaultTypeConverter() { * @see #setTypeConverter * @see org.springframework.beans.PropertyEditorRegistry#registerCustomEditor */ - public void registerCustomEditor(Class requiredType, PropertyEditor propertyEditor) { + public void registerCustomEditor(Class<?> requ...
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/support/PropertyComparator.java
@@ -23,7 +23,6 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; - import org.springframework.beans.BeanWrapperImpl; import org.springframework.beans.BeansException; import org.springframework.util.StringUtils; @@ -37,7 +36,7 @@ * @since 19.05.2003 * @see org.springframe...
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/test/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBeanTests.java
@@ -252,9 +252,10 @@ public void testWhenServiceLocatorExceptionClassToExceptionTypeWithOnlyNoArgCtor } @Test(expected=IllegalArgumentException.class) + @SuppressWarnings("unchecked") public void testWhenServiceLocatorExceptionClassIsNotAnExceptionSubclass() throws Exception { ServiceLocatorFactoryBean facto...
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/test/java/org/springframework/beans/propertyeditors/CustomCollectionEditorTests.java
@@ -38,8 +38,9 @@ public void testCtorWithNullCollectionType() throws Exception { } @Test(expected=IllegalArgumentException.class) + @SuppressWarnings("unchecked") public void testCtorWithNonCollectionType() throws Exception { - new CustomCollectionEditor(String.class); + new CustomCollectionEditor((Class) St...
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-context-support/src/main/java/org/springframework/cache/ehcache/EhCacheFactoryBean.java
@@ -31,9 +31,9 @@ import net.sf.ehcache.constructs.blocking.UpdatingCacheEntryFactory; import net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache; import net.sf.ehcache.event.CacheEventListener; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; - import org.springfr...
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-context-support/src/main/java/org/springframework/cache/jcache/JCacheCacheManager.java
@@ -101,7 +101,7 @@ public void afterPropertiesSet() { protected Collection<Cache> loadCaches() { Collection<Cache> caches = new LinkedHashSet<Cache>(); for (String cacheName : this.cacheManager.getCacheNames()) { - javax.cache.Cache jcache = this.cacheManager.getCache(cacheName); + javax.cache.Cache<Object...
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-context-support/src/main/java/org/springframework/scheduling/commonj/TimerManagerTaskScheduler.java
@@ -53,44 +53,44 @@ public void setErrorHandler(ErrorHandler errorHandler) { @Override - public ScheduledFuture schedule(Runnable task, Trigger trigger) { + public ScheduledFuture<?> schedule(Runnable task, Trigger trigger) { return new ReschedulingTimerListener(errorHandlingTask(task, true), trigger).schedule...
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-context-support/src/main/java/org/springframework/scheduling/commonj/WorkManagerTaskExecutor.java
@@ -20,6 +20,7 @@ import java.util.concurrent.Callable; import java.util.concurrent.Future; import java.util.concurrent.FutureTask; + import javax.naming.NamingException; import commonj.work.Work; @@ -176,11 +177,13 @@ public WorkItem schedule(Work work, WorkListener workListener) throws WorkExcept } @Over...
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-context-support/src/main/java/org/springframework/scheduling/quartz/AdaptableJobFactory.java
@@ -74,7 +74,7 @@ protected Object createJobInstance(TriggerFiredBundle bundle) throws Exception { Method getJobDetail = bundle.getClass().getMethod("getJobDetail"); Object jobDetail = ReflectionUtils.invokeMethod(getJobDetail, bundle); Method getJobClass = jobDetail.getClass().getMethod("getJobClass"); - 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-context-support/src/main/java/org/springframework/scheduling/quartz/CronTriggerFactoryBean.java
@@ -232,7 +232,7 @@ else if (this.startTime == null) { this.cronTrigger = cti; */ - Class cronTriggerClass; + Class<?> cronTriggerClass; Method jobKeyMethod; try { cronTriggerClass = getClass().getClassLoader().loadClass("org.quartz.impl.triggers.CronTriggerImpl");
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-context-support/src/main/java/org/springframework/scheduling/quartz/JobDetailBean.java
@@ -21,7 +21,6 @@ import org.quartz.Job; import org.quartz.JobDetail; import org.quartz.Scheduler; - import org.springframework.beans.factory.BeanNameAware; import org.springframework.beans.factory.InitializingBean; import org.springframework.context.ApplicationContext; @@ -48,11 +47,11 @@ * @see org.springfram...
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-context-support/src/main/java/org/springframework/scheduling/quartz/JobDetailFactoryBean.java
@@ -56,7 +56,7 @@ private String group; - private Class jobClass; + private Class<?> jobClass; private JobDataMap jobDataMap = new JobDataMap(); @@ -92,7 +92,7 @@ public void setGroup(String group) { /** * Specify the job's implementation class. */ - public void setJobClass(Class jobClass) { + publi...
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-context-support/src/main/java/org/springframework/scheduling/quartz/MethodInvokingJobDetailFactoryBean.java
@@ -92,7 +92,7 @@ public class MethodInvokingJobDetailFactoryBean extends ArgumentConvertingMethod jobDetailImplClass = null; } try { - Class jobExecutionContextClass = + Class<?> jobExecutionContextClass = QuartzJobBean.class.getClassLoader().loadClass("org.quartz.JobExecutionContext"); setResu...
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-context-support/src/main/java/org/springframework/scheduling/quartz/QuartzJobBean.java
@@ -76,7 +76,7 @@ public abstract class QuartzJobBean implements Job { static { try { - Class jobExecutionContextClass = + Class<?> jobExecutionContextClass = QuartzJobBean.class.getClassLoader().loadClass("org.quartz.JobExecutionContext"); getSchedulerMethod = jobExecutionContextClass.getMethod("g...
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-context-support/src/main/java/org/springframework/scheduling/quartz/ResourceLoaderClassLoadHelper.java
@@ -24,7 +24,6 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.quartz.spi.ClassLoadHelper; - import org.springframework.core.io.DefaultResourceLoader; import org.springframework.core.io.Resource; import org.springframework.core.io.ResourceLoader; @@ -73,6 +72,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-context-support/src/main/java/org/springframework/scheduling/quartz/SchedulerAccessor.java
@@ -382,7 +382,7 @@ private JobDetail findJobDetail(Trigger trigger) { } else { try { - Map jobDataMap = (Map) ReflectionUtils.invokeMethod(Trigger.class.getMethod("getJobDataMap"), trigger); + Map<?, ?> jobDataMap = (Map<?, ?>) ReflectionUtils.invokeMethod(Trigger.class.getMethod("getJobDataMap"), trig...
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-context-support/src/main/java/org/springframework/scheduling/quartz/SchedulerFactoryBean.java
@@ -173,7 +173,7 @@ public static DataSource getConfigTimeNonTransactionalDataSource() { private DataSource nonTransactionalDataSource; - private Map schedulerContextMap; + private Map<? ,?> schedulerContextMap; private ApplicationContext applicationContext; @@ -208,7 +208,7 @@ public static DataSourc...
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-context-support/src/main/java/org/springframework/scheduling/quartz/SimpleTriggerFactoryBean.java
@@ -233,7 +233,7 @@ else if (this.startTime == null) { this.simpleTrigger = sti; */ - Class simpleTriggerClass; + Class<?> simpleTriggerClass; Method jobKeyMethod; try { simpleTriggerClass = getClass().getClassLoader().loadClass("org.quartz.impl.triggers.SimpleTriggerImpl");
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-context-support/src/main/java/org/springframework/ui/jasperreports/JasperReportsUtils.java
@@ -63,7 +63,7 @@ public static JRDataSource convertReportData(Object value) throws IllegalArgumen return (JRDataSource) value; } else if (value instanceof Collection) { - return new JRBeanCollectionDataSource((Collection) value); + return new JRBeanCollectionDataSource((Collection<?>) value); } els...
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-context/src/main/java/org/springframework/cache/concurrent/ConcurrentMapCache.java
@@ -89,7 +89,7 @@ public String getName() { } @Override - public ConcurrentMap getNativeCache() { + public ConcurrentMap<Object, Object> getNativeCache() { return this.store; }
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-context/src/main/java/org/springframework/context/annotation/AnnotatedBeanDefinitionReader.java
@@ -127,11 +127,13 @@ public void registerBean(Class<?> annotatedClass) { registerBean(annotatedClass, null, (Class<? extends Annotation>[]) null); } - public void registerBean(Class<?> annotatedClass, Class<? extends Annotation>... qualifiers) { + public void registerBean(Class<?> annotatedClass, + @SuppressW...
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-context/src/main/java/org/springframework/context/annotation/CommonAnnotationBeanPostProcessor.java
@@ -604,7 +604,7 @@ protected Object getResourceToInject(Object target, String requestingBeanName) { } if (StringUtils.hasLength(this.wsdlLocation)) { try { - Constructor<?> ctor = this.lookupType.getConstructor(new Class[] {URL.class, QName.class}); + Constructor<?> ctor = this.lookupType.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-context/src/main/java/org/springframework/context/annotation/ComponentScanBeanDefinitionParser.java
@@ -240,7 +240,7 @@ else if ("regex".equals(filterType)) { return new RegexPatternTypeFilter(Pattern.compile(expression)); } else if ("custom".equals(filterType)) { - Class filterClass = classLoader.loadClass(expression); + Class<?> filterClass = classLoader.loadClass(expression); if (!TypeFilte...
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-context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java
@@ -103,7 +103,7 @@ public Class<?> enhance(Class<?> configClass) { private Enhancer newEnhancer(Class<?> superclass) { Enhancer enhancer = new Enhancer(); enhancer.setSuperclass(superclass); - enhancer.setInterfaces(new Class[] {EnhancedConfiguration.class}); + enhancer.setInterfaces(new Class<?>[] {Enhanced...
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-context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java
@@ -672,7 +672,7 @@ public Class<?> loadClass() throws ClassNotFoundException { public boolean isAssignable(Class<?> clazz) throws IOException { if (this.source instanceof Class) { - return clazz.isAssignableFrom((Class) this.source); + return clazz.isAssignableFrom((Class<?>) this.source); } ret...
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-context/src/main/java/org/springframework/context/annotation/Jsr330ScopeMetadataResolver.java
@@ -55,7 +55,7 @@ public Jsr330ScopeMetadataResolver() { * @param annotationType the JSR-330 annotation type as a Class * @param scopeName the Spring scope name */ - public final void registerScope(Class annotationType, String scopeName) { + public final void registerScope(Class<?> annotationType, String scope...
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-context/src/main/java/org/springframework/context/annotation/LoadTimeWeavingConfiguration.java
@@ -91,9 +91,12 @@ public LoadTimeWeaver loadTimeWeaver() { // No aop.xml present on the classpath -> treat as 'disabled' break; } - // aop.xml is present on the classpath -> fall through and enable + // aop.xml is present on the classpath -> enable + AspectJWeavingEnabler.enableAspectJWeaving...
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-context/src/main/java/org/springframework/context/config/PropertyOverrideBeanDefinitionParser.java
@@ -31,7 +31,7 @@ class PropertyOverrideBeanDefinitionParser extends AbstractPropertyLoadingBeanDefinitionParser { @Override - protected Class getBeanClass(Element element) { + protected Class<?> getBeanClass(Element element) { return PropertyOverrideConfigurer.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-context/src/main/java/org/springframework/context/event/AbstractApplicationEventMulticaster.java
@@ -61,7 +61,7 @@ public abstract class AbstractApplicationEventMulticaster implements Application @Override - public void addApplicationListener(ApplicationListener listener) { + public void addApplicationListener(ApplicationListener<?> listener) { synchronized (this.defaultRetriever) { this.defaultRetrie...
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-context/src/main/java/org/springframework/context/event/ApplicationEventMulticaster.java
@@ -36,7 +36,7 @@ public interface ApplicationEventMulticaster { * Add a listener to be notified of all events. * @param listener the listener to add */ - void addApplicationListener(ApplicationListener listener); + void addApplicationListener(ApplicationListener<?> listener); /** * Add a listener bean ...
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-context/src/main/java/org/springframework/context/event/EventPublicationInterceptor.java
@@ -48,7 +48,7 @@ public class EventPublicationInterceptor implements MethodInterceptor, ApplicationEventPublisherAware, InitializingBean { - private Constructor applicationEventClassConstructor; + private Constructor<?> applicationEventClassConstructor; private ApplicationEventPublisher applicationEventPubli...
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-context/src/main/java/org/springframework/context/event/GenericApplicationListenerAdapter.java
@@ -33,21 +33,21 @@ */ public class GenericApplicationListenerAdapter implements SmartApplicationListener { - private final ApplicationListener delegate; + private final ApplicationListener<ApplicationEvent> delegate; /** * Create a new GenericApplicationListener for the given delegate. * @param delega...
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-context/src/main/java/org/springframework/context/event/SimpleApplicationEventMulticaster.java
@@ -82,7 +82,7 @@ protected Executor getTaskExecutor() { @Override - @SuppressWarnings("unchecked") + @SuppressWarnings({ "unchecked", "rawtypes" }) public void multicastEvent(final ApplicationEvent event) { for (final ApplicationListener listener : getApplicationListeners(event)) { Executor executor = g...
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-context/src/main/java/org/springframework/context/event/SourceFilteringListener.java
@@ -45,7 +45,7 @@ public class SourceFilteringListener implements SmartApplicationListener { * @param delegate the delegate listener to invoke with event * from the specified source */ - public SourceFilteringListener(Object source, ApplicationListener delegate) { + public SourceFilteringListener(Object source...
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-context/src/main/java/org/springframework/context/expression/BeanExpressionContextAccessor.java
@@ -53,8 +53,8 @@ public void write(EvaluationContext context, Object target, String name, Object } @Override - public Class[] getSpecificTargetClasses() { - return new Class[] {BeanExpressionContext.class}; + public Class<?>[] getSpecificTargetClasses() { + return new Class<?>[] {BeanExpressionContext.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-context/src/main/java/org/springframework/context/expression/BeanFactoryAccessor.java
@@ -53,8 +53,8 @@ public void write(EvaluationContext context, Object target, String name, Object } @Override - public Class[] getSpecificTargetClasses() { - return new Class[] {BeanFactory.class}; + public Class<?>[] getSpecificTargetClasses() { + return new Class<?>[] {BeanFactory.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-context/src/main/java/org/springframework/context/expression/EnvironmentAccessor.java
@@ -33,7 +33,7 @@ public class EnvironmentAccessor implements PropertyAccessor { @Override public Class<?>[] getSpecificTargetClasses() { - return new Class[] { Environment.class }; + return new Class<?>[] { Environment.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-context/src/main/java/org/springframework/context/expression/MapAccessor.java
@@ -35,13 +35,13 @@ public class MapAccessor implements PropertyAccessor { @Override public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException { - Map map = (Map) target; + Map<?, ?> map = (Map<?, ?>) target; return map.containsKey(name); } @Override public ...
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-context/src/main/java/org/springframework/context/support/ApplicationObjectSupport.java
@@ -100,7 +100,7 @@ protected boolean isContextRequired() { * Can be overridden in subclasses. * @see #setApplicationContext */ - protected Class requiredContextClass() { + protected Class<?> requiredContextClass() { return ApplicationContext.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-context/src/main/java/org/springframework/context/support/ClassPathXmlApplicationContext.java
@@ -154,7 +154,7 @@ public ClassPathXmlApplicationContext(String[] configLocations, boolean refresh, * @see org.springframework.context.support.GenericApplicationContext * @see org.springframework.beans.factory.xml.XmlBeanDefinitionReader */ - public ClassPathXmlApplicationContext(String path, Class clazz) 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-context/src/main/java/org/springframework/context/support/ContextTypeMatchClassLoader.java
@@ -42,7 +42,7 @@ class ContextTypeMatchClassLoader extends DecoratingClassLoader implements Smart static { try { - findLoadedClassMethod = ClassLoader.class.getDeclaredMethod("findLoadedClass", new Class[] {String.class}); + findLoadedClassMethod = ClassLoader.class.getDeclaredMethod("findLoadedClass", 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-context/src/main/java/org/springframework/context/support/PostProcessorRegistrationDelegate.java
@@ -371,7 +371,7 @@ else if (flag == null) { public void postProcessBeforeDestruction(Object bean, String beanName) { if (bean instanceof ApplicationListener) { ApplicationEventMulticaster multicaster = this.applicationContext.getApplicationEventMulticaster(); - multicaster.removeApplicationListener((App...
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-context/src/main/java/org/springframework/context/support/ReloadableResourceBundleMessageSource.java
@@ -330,9 +330,9 @@ protected PropertiesHolder getMergedProperties(Locale locale) { Properties mergedProps = new Properties(); mergedHolder = new PropertiesHolder(mergedProps, -1); for (int i = this.basenames.length - 1; i >= 0; i--) { - List filenames = calculateAllFilenames(this.basenames[i], locale); ...
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-context/src/main/java/org/springframework/context/support/SimpleThreadScope.java
@@ -56,7 +56,7 @@ protected Map<String, Object> initialValue() { }; @Override - public Object get(String name, ObjectFactory objectFactory) { + public Object get(String name, ObjectFactory<?> objectFactory) { Map<String, Object> scope = threadScope.get(); Object object = scope.get(name); if (object == ...
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-context/src/main/java/org/springframework/context/support/StaticApplicationContext.java
@@ -89,7 +89,7 @@ public final StaticMessageSource getStaticMessageSource() { * <p>For more advanced needs, register with the underlying BeanFactory directly. * @see #getDefaultListableBeanFactory */ - public void registerSingleton(String name, Class clazz) throws BeansException { + public void registerSinglet...
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-context/src/main/java/org/springframework/ejb/access/AbstractRemoteSlsbInvokerInterceptor.java
@@ -43,7 +43,7 @@ */ public abstract class AbstractRemoteSlsbInvokerInterceptor extends AbstractSlsbInvokerInterceptor { - private Class homeInterface; + private Class<?> homeInterface; private boolean refreshHomeOnConnectFailure = false; @@ -60,7 +60,7 @@ public abstract class AbstractRemoteSlsbInvokerInter...
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-context/src/main/java/org/springframework/ejb/access/LocalStatelessSessionProxyFactoryBean.java
@@ -52,7 +52,7 @@ public class LocalStatelessSessionProxyFactoryBean extends LocalSlsbInvokerInter implements FactoryBean<Object>, BeanClassLoaderAware { /** The business interface of the EJB we're proxying */ - private Class businessInterface; + private Class<?> businessInterface; private ClassLoader 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-context/src/main/java/org/springframework/ejb/access/SimpleRemoteStatelessSessionProxyFactoryBean.java
@@ -62,7 +62,7 @@ public class SimpleRemoteStatelessSessionProxyFactoryBean extends SimpleRemoteSl implements FactoryBean<Object>, BeanClassLoaderAware { /** The business interface of the EJB we're proxying */ - private Class businessInterface; + private Class<?> businessInterface; private ClassLoader beanCla...
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-context/src/main/java/org/springframework/ejb/config/JndiLookupBeanDefinitionParser.java
@@ -43,7 +43,7 @@ class JndiLookupBeanDefinitionParser extends AbstractJndiLocatingBeanDefinitionP @Override - protected Class getBeanClass(Element element) { + protected Class<?> getBeanClass(Element element) { return JndiObjectFactoryBean.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-context/src/main/java/org/springframework/format/support/FormattingConversionService.java
@@ -206,12 +206,13 @@ private class AnnotationPrinterConverter implements ConditionalGenericConverter private Class<? extends Annotation> annotationType; - private AnnotationFormatterFactory annotationFormatterFactory; + @SuppressWarnings("rawtypes") + private AnnotationFormatterFactory annotationFormat...
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-context/src/main/java/org/springframework/instrument/classloading/ReflectiveLoadTimeWeaver.java
@@ -98,14 +98,14 @@ public ReflectiveLoadTimeWeaver(ClassLoader classLoader) { this.classLoader = classLoader; this.addTransformerMethod = ClassUtils.getMethodIfAvailable( this.classLoader.getClass(), ADD_TRANSFORMER_METHOD_NAME, - new Class[] {ClassFileTransformer.class}); + new Class<?>[] {ClassFileT...
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-context/src/main/java/org/springframework/instrument/classloading/ShadowingClassLoader.java
@@ -56,7 +56,7 @@ public class ShadowingClassLoader extends DecoratingClassLoader { private final List<ClassFileTransformer> classFileTransformers = new LinkedList<ClassFileTransformer>(); - private final Map<String, Class> classCache = new HashMap<String, Class>(); + private final Map<String, Class<?>> classCach...
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-context/src/main/java/org/springframework/instrument/classloading/jboss/JBossMCAdapter.java
@@ -131,7 +131,7 @@ class JBossMCAdapter implements JBossClassLoaderAdapter { public void addTransformer(ClassFileTransformer transformer) { InvocationHandler adapter = new JBossMCTranslatorAdapter(transformer); Object adapterInstance = Proxy.newProxyInstance(this.translatorClass.getClassLoader(), - new Clas...
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-context/src/main/java/org/springframework/instrument/classloading/weblogic/WebLogicClassLoaderAdapter.java
@@ -43,19 +43,19 @@ class WebLogicClassLoaderAdapter { private final ClassLoader classLoader; - private final Class wlPreProcessorClass; + private final Class<?> wlPreProcessorClass; private final Method addPreProcessorMethod; private final Method getClassFinderMethod; private final Method getParentMe...
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-context/src/main/java/org/springframework/instrument/classloading/weblogic/WebLogicClassPreProcessorAdapter.java
@@ -60,7 +60,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl } else if ("toString".equals(name)) { return toString(); } else if ("initialize".equals(name)) { - initialize((Hashtable) args[0]); + initialize((Hashtable<?, ?>) args[0]); return null; } else if ("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-context/src/main/java/org/springframework/instrument/classloading/websphere/WebSphereClassLoaderAdapter.java
@@ -79,7 +79,7 @@ public void addTransformer(ClassFileTransformer transformer) { try { InvocationHandler adapter = new WebSphereClassPreDefinePlugin(transformer); Object adapterInstance = Proxy.newProxyInstance(this.wsPreProcessorClass.getClassLoader(), - new Class[] { this.wsPreProcessorClass }, adapter...
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-context/src/main/java/org/springframework/jmx/access/MBeanClientInterceptor.java
@@ -107,7 +107,7 @@ private boolean useStrictCasing = true; - private Class managementInterface; + private Class<?> managementInterface; private ClassLoader beanClassLoader = ClassUtils.getDefaultClassLoader(); @@ -215,15 +215,15 @@ public void setUseStrictCasing(boolean useStrictCasing) { * setters and ...
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-context/src/main/java/org/springframework/jmx/access/MBeanProxyFactoryBean.java
@@ -48,7 +48,7 @@ public class MBeanProxyFactoryBean extends MBeanClientInterceptor implements FactoryBean<Object>, BeanClassLoaderAware, InitializingBean { - private Class proxyInterface; + private Class<?> proxyInterface; private ClassLoader beanClassLoader = ClassUtils.getDefaultClassLoader(); @@ -62,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-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java
@@ -25,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.Set; + import javax.management.DynamicMBean; import javax.management.JMException; import javax.management.MBeanException; @@ -746,7 +747,7 @@ protected ObjectName getObjectName(Object bean, String beanKey) throws Malformed * @retur...
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-context/src/main/java/org/springframework/jmx/export/assembler/AbstractConfigurableMBeanInfoAssembler.java
@@ -77,7 +77,7 @@ private ModelMBeanNotificationInfo[] extractNotificationMetadata(Object mapValue return new ModelMBeanNotificationInfo[] {JmxMetadataUtils.convertToModelMBeanNotificationInfo(mn)}; } else if (mapValue instanceof Collection) { - Collection col = (Collection) mapValue; + Collection<?> col ...
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-context/src/main/java/org/springframework/jmx/export/assembler/AbstractMBeanInfoAssembler.java
@@ -91,7 +91,7 @@ protected void checkManagedBean(Object managedBean) throws IllegalArgumentExcept * @return the bean class to expose * @see org.springframework.aop.support.AopUtils#getTargetClass(Object) */ - protected Class getTargetClass(Object managedBean) { + protected Class<?> getTargetClass(Object manag...
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-context/src/main/java/org/springframework/jmx/export/assembler/AbstractReflectiveMBeanInfoAssembler.java
@@ -434,7 +434,7 @@ protected ModelMBeanOperationInfo createModelMBeanOperationInfo(Method method, S * @see #getClassToExpose(Class) * @see org.springframework.aop.framework.AopProxyUtils#proxiedUserInterfaces(Object) */ - protected Class getClassForDescriptor(Object managedBean) { + protected Class<?> getClas...
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-context/src/main/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssembler.java
@@ -63,7 +63,7 @@ public class InterfaceBasedMBeanInfoAssembler extends AbstractConfigurableMBeanI /** * Stores the array of interfaces to use for creating the management interface. */ - private Class[] managedInterfaces; + private Class<?>[] managedInterfaces; /** * Stores the mappings of bean keys to 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-context/src/main/java/org/springframework/jmx/export/assembler/MetadataMBeanInfoAssembler.java
@@ -263,7 +263,7 @@ protected MBeanParameterInfo[] getOperationParameters(Method method, String bean } MBeanParameterInfo[] parameterInfo = new MBeanParameterInfo[params.length]; - Class[] methodParameters = method.getParameterTypes(); + Class<?>[] methodParameters = method.getParameterTypes(); for (int i ...
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-context/src/main/java/org/springframework/jmx/export/assembler/MethodExclusionMBeanInfoAssembler.java
@@ -81,7 +81,7 @@ public void setIgnoredMethods(String[] ignoredMethodNames) { */ public void setIgnoredMethodMappings(Properties mappings) { this.ignoredMethodMappings = new HashMap<String, Set<String>>(); - for (Enumeration en = mappings.keys(); en.hasMoreElements();) { + for (Enumeration<?> en = mappings.k...
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-context/src/main/java/org/springframework/jmx/export/assembler/MethodNameBasedMBeanInfoAssembler.java
@@ -85,7 +85,7 @@ public void setManagedMethods(String[] methodNames) { */ public void setMethodMappings(Properties mappings) { this.methodMappings = new HashMap<String, Set<String>>(); - for (Enumeration en = mappings.keys(); en.hasMoreElements();) { + for (Enumeration<?> en = mappings.keys(); en.hasMoreElem...
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-context/src/main/java/org/springframework/jmx/export/naming/IdentityNamingStrategy.java
@@ -50,7 +50,7 @@ public class IdentityNamingStrategy implements ObjectNamingStrategy { @Override public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException { String domain = ClassUtils.getPackageName(managedBean.getClass()); - Hashtable keys = new Hashtable(); + Ha...
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-context/src/main/java/org/springframework/jmx/export/naming/MetadataNamingStrategy.java
@@ -108,7 +108,7 @@ public void afterPropertiesSet() { */ @Override public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException { - Class managedClass = AopUtils.getTargetClass(managedBean); + Class<?> managedClass = AopUtils.getTargetClass(managedBean); ManagedRe...
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-context/src/main/java/org/springframework/jmx/support/JmxUtils.java
@@ -145,7 +145,7 @@ public static MBeanServer locateMBeanServer(String agentId) throws MBeanServerNo * @return the parameter types as classes * @throws ClassNotFoundException if a parameter type could not be resolved */ - public static Class[] parameterInfoToTypes(MBeanParameterInfo[] paramInfo) throws ClassNo...
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-context/src/main/java/org/springframework/jmx/support/WebSphereMBeanServerFactoryBean.java
@@ -61,7 +61,7 @@ public void afterPropertiesSet() throws MBeanServerNotFoundException { /* * this.mbeanServer = AdminServiceFactory.getMBeanFactory().getMBeanServer(); */ - Class adminServiceClass = getClass().getClassLoader().loadClass(ADMIN_SERVICE_FACTORY_CLASS); + Class<?> adminServiceClass = 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-context/src/main/java/org/springframework/jndi/JndiObjectTargetSource.java
@@ -66,7 +66,7 @@ public class JndiObjectTargetSource extends JndiObjectLocator implements TargetS private Object cachedObject; - private Class targetClass; + private 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-context/src/main/java/org/springframework/jndi/JndiTemplate.java
@@ -127,10 +127,10 @@ public void releaseContext(Context ctx) { * @throws NamingException in case of initialization errors */ protected Context createInitialContext() throws NamingException { - Hashtable icEnv = null; + Hashtable<?, ?> icEnv = null; Properties env = getEnvironment(); if (env != 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-context/src/main/java/org/springframework/jndi/TypeMismatchNamingException.java
@@ -29,9 +29,9 @@ @SuppressWarnings("serial") public class TypeMismatchNamingException extends NamingException { - private Class requiredType; + private Class<?> requiredType; - private Class actualType; + private Class<?> actualType; /** @@ -41,7 +41,7 @@ public class TypeMismatchNamingException extends Na...
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-context/src/main/java/org/springframework/jndi/support/SimpleJndiBeanFactory.java
@@ -66,7 +66,7 @@ public class SimpleJndiBeanFactory extends JndiLocatorSupport implements BeanFac private final Map<String, Object> singletonObjects = new HashMap<String, Object>(); /** Cache of the types of nonshareable resources: bean name --> bean type */ - private final Map<String, Class> resourceTypes = 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-context/src/main/java/org/springframework/remoting/rmi/CodebaseAwareObjectInputStream.java
@@ -100,7 +100,7 @@ public CodebaseAwareObjectInputStream( @Override - protected Class resolveFallbackIfPossible(String className, ClassNotFoundException ex) + protected Class<?> resolveFallbackIfPossible(String className, ClassNotFoundException ex) throws IOException, ClassNotFoundException { // If code...
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-context/src/main/java/org/springframework/remoting/rmi/JndiRmiClientInterceptor.java
@@ -78,7 +78,7 @@ */ public class JndiRmiClientInterceptor extends JndiObjectLocator implements MethodInterceptor, InitializingBean { - private Class serviceInterface; + private Class<?> serviceInterface; private RemoteInvocationFactory remoteInvocationFactory = new DefaultRemoteInvocationFactory(); @@ -101,...
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-context/src/main/java/org/springframework/remoting/rmi/RmiInvocationWrapper.java
@@ -59,7 +59,7 @@ public RmiInvocationWrapper(Object wrappedObject, RmiBasedExporter rmiExporter) */ @Override public String getTargetInterfaceName() { - Class ifc = this.rmiExporter.getServiceInterface(); + Class<?> ifc = this.rmiExporter.getServiceInterface(); return (ifc != null ? ifc.getName() : 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-context/src/main/java/org/springframework/remoting/support/RemoteAccessor.java
@@ -36,7 +36,7 @@ */ public abstract class RemoteAccessor extends RemotingSupport { - private Class serviceInterface; + private Class<?> serviceInterface; /** @@ -45,7 +45,7 @@ public abstract class RemoteAccessor extends RemotingSupport { * <p>Typically required to be able to create a suitable service 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-context/src/main/java/org/springframework/remoting/support/RemoteExporter.java
@@ -36,7 +36,7 @@ public abstract class RemoteExporter extends RemotingSupport { private Object service; - private Class serviceInterface; + private Class<?> serviceInterface; private Boolean registerTraceInterceptor; @@ -62,7 +62,7 @@ public Object getService() { * Set the interface of the service to ex...
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-context/src/main/java/org/springframework/remoting/support/RemoteInvocation.java
@@ -51,7 +51,7 @@ public class RemoteInvocation implements Serializable { private String methodName; - private Class[] parameterTypes; + private Class<?>[] parameterTypes; private Object[] arguments; @@ -70,7 +70,7 @@ public RemoteInvocation() { * @param parameterTypes the parameter types of the 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-context/src/main/java/org/springframework/scheduling/TaskScheduler.java
@@ -62,7 +62,7 @@ public interface TaskScheduler { * for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress) * @see org.springframework.scheduling.support.CronTrigger */ - ScheduledFuture schedule(Runnable task, Trigger trigger); + ScheduledFuture<?> schedule(Runnable task, 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-context/src/main/java/org/springframework/scheduling/concurrent/ConcurrentTaskScheduler.java
@@ -160,7 +160,7 @@ public void setErrorHandler(ErrorHandler errorHandler) { @Override - public ScheduledFuture schedule(Runnable task, Trigger trigger) { + public ScheduledFuture<?> schedule(Runnable task, Trigger trigger) { try { if (this.enterpriseConcurrentScheduler) { return new EnterpriseConcurr...
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-context/src/main/java/org/springframework/scheduling/concurrent/DefaultManagedAwareThreadFactory.java
@@ -41,6 +41,7 @@ * @author Juergen Hoeller * @since 4.0 */ +@SuppressWarnings("serial") public class DefaultManagedAwareThreadFactory extends CustomizableThreadFactory implements InitializingBean { protected final Log logger = LogFactory.getLog(getClass());
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-context/src/main/java/org/springframework/scheduling/concurrent/ReschedulingRunnable.java
@@ -49,7 +49,7 @@ class ReschedulingRunnable extends DelegatingErrorHandlingRunnable implements Sc private final ScheduledExecutorService executor; - private ScheduledFuture currentFuture; + private ScheduledFuture<?> currentFuture; private Date scheduledExecutionTime; @@ -63,7 +63,7 @@ public ReschedulingR...
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-context/src/main/java/org/springframework/scheduling/concurrent/ThreadPoolTaskScheduler.java
@@ -209,7 +209,7 @@ public boolean prefersShortLivedTasks() { // TaskScheduler implementation @Override - public ScheduledFuture schedule(Runnable task, Trigger trigger) { + public ScheduledFuture<?> schedule(Runnable task, Trigger trigger) { ScheduledExecutorService executor = getScheduledExecutor(); try {...
true