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-context/src/main/java/org/springframework/scripting/bsh/BshScriptFactory.java
@@ -132,7 +132,7 @@ public Object getScriptedObject(ScriptSource scriptSource, Class<?>... actualInt if (result instanceof Class) { // A Class: We'll cache the Class here and create an instance // outside of the synchronized block. - this.scriptClass = (Class) result; + this.scriptClass = ...
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/scripting/bsh/BshScriptUtils.java
@@ -89,7 +89,7 @@ public static Object createBshObject(String scriptSource, Class<?>[] scriptInter Object result = evaluateBshScript(scriptSource, scriptInterfaces, classLoader); if (result instanceof Class) { - Class clazz = (Class) result; + Class<?> clazz = (Class<?>) result; try { return 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-context/src/main/java/org/springframework/scripting/config/ScriptBeanDefinitionParser.java
@@ -213,7 +213,7 @@ else if (beanDefinitionDefaults.getDestroyMethodName() != null) { */ private String resolveScriptSource(Element element, XmlReaderContext readerContext) { boolean hasScriptSource = element.hasAttribute(SCRIPT_SOURCE_ATTRIBUTE); - List elements = DomUtils.getChildElementsByTagName(element, 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/scripting/jruby/JRubyScriptUtils.java
@@ -206,16 +206,16 @@ private IRubyObject[] convertToRuby(Object[] javaArgs) { return rubyArgs; } - private Object convertFromRuby(IRubyObject rubyResult, Class returnType) { + private Object convertFromRuby(IRubyObject rubyResult, Class<?> returnType) { Object result = JavaEmbedUtils.rubyToJava(this.rub...
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/scripting/support/ScriptFactoryPostProcessor.java
@@ -239,7 +239,7 @@ public int getOrder() { } @Override - public Class predictBeanType(Class beanClass, String beanName) { + public Class<?> predictBeanType(Class<?> beanClass, String beanName) { // We only apply special treatment to ScriptFactory implementations here. if (!ScriptFactory.class.isAssignableF...
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/ui/ModelMap.java
@@ -89,7 +89,7 @@ public ModelMap addAttribute(String attributeName, Object attributeValue) { */ public ModelMap addAttribute(Object attributeValue) { Assert.notNull(attributeValue, "Model object must not be null"); - if (attributeValue instanceof Collection && ((Collection) attributeValue).isEmpty()) { + if ...
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/validation/beanvalidation/LocalValidatorFactoryBean.java
@@ -261,7 +261,7 @@ public void afterPropertiesSet() { setTargetValidator(this.validatorFactory.getValidator()); } - private void configureParameterNameProviderIfPossible(Configuration configuration) { + private void configureParameterNameProviderIfPossible(Configuration<?> configuration) { try { 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/validation/beanvalidation/MethodValidationInterceptor.java
@@ -18,6 +18,7 @@ import java.lang.reflect.Method; import java.util.Set; + import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolationException; import javax.validation.Validation; @@ -27,10 +28,6 @@ import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.interce...
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/validation/support/BindingAwareModelMap.java
@@ -44,7 +44,7 @@ public Object put(String key, Object value) { @Override public void putAll(Map<? extends String, ?> map) { - for (Map.Entry entry : map.entrySet()) { + for (Map.Entry<? extends String, ?> entry : map.entrySet()) { removeBindingResultIfNecessary(entry.getKey(), entry.getValue()); } su...
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/test/java/org/springframework/aop/framework/CglibProxyTests.java
@@ -193,6 +193,11 @@ public MethodMatcher getMethodMatcher() { return MethodMatcher.TRUE; } + @Override + public int hashCode() { + return 0; + } + @Override public boolean equals(Object obj) { 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-context/src/test/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurerTests.java
@@ -177,6 +177,7 @@ public void ignoreUnresolvablePlaceholders_true() { } @Test(expected=BeanDefinitionStoreException.class) + @SuppressWarnings("serial") public void nestedUnresolvablePlaceholder() { DefaultListableBeanFactory bf = new DefaultListableBeanFactory(); bf.registerBeanDefinition("testBean", @...
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/test/java/org/springframework/scheduling/support/CronSequenceGeneratorTests.java
@@ -25,6 +25,7 @@ /** * @author Juergen Hoeller */ +@SuppressWarnings("deprecation") public class CronSequenceGeneratorTests { @Test
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-core/src/main/java/org/springframework/cglib/transform/impl/MemorySafeUndeclaredThrowableStrategy.java
@@ -38,10 +38,10 @@ public boolean accept(int access, String name, String desc, String signature, }; - private Class wrapper; + private Class<?> wrapper; - public MemorySafeUndeclaredThrowableStrategy(Class wrapper) { + public MemorySafeUndeclaredThrowableStrategy(Class<?> wrapper) { this.wrapper = wrapper...
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-core/src/main/java/org/springframework/core/BridgeMethodResolver.java
@@ -140,7 +140,7 @@ static boolean isBridgeMethodFor(Method bridgeMethod, Method candidateMethod, Cl */ private static Method findGenericDeclaration(Method bridgeMethod) { // Search parent types for method that has same signature as bridge. - Class superclass = bridgeMethod.getDeclaringClass().getSuperclass();...
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-core/src/main/java/org/springframework/core/CollectionFactory.java
@@ -50,13 +50,13 @@ */ public abstract class CollectionFactory { - private static Class navigableSetClass = null; + private static Class<?> navigableSetClass = null; - private static Class navigableMapClass = null; + private static Class<?> navigableMapClass = null; - private static final Set<Class> approximab...
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-core/src/main/java/org/springframework/core/ConfigurableObjectInputStream.java
@@ -68,7 +68,7 @@ public ConfigurableObjectInputStream( @Override - protected Class resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException { + protected Class<?> resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException { try { if (this.classLoader !...
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-core/src/main/java/org/springframework/core/ControlFlow.java
@@ -31,15 +31,15 @@ public interface ControlFlow { * according to the current stack trace. * @param clazz the clazz to look for */ - boolean under(Class clazz); + boolean under(Class<?> clazz); /** * Detect whether we're under the given class and method, * according to the current stack trace. * @...
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-core/src/main/java/org/springframework/core/ControlFlowFactory.java
@@ -62,7 +62,7 @@ public Jdk14ControlFlow() { * Searches for class name match in a StackTraceElement. */ @Override - public boolean under(Class clazz) { + public boolean under(Class<?> clazz) { Assert.notNull(clazz, "Class must not be null"); String className = clazz.getName(); for (int i = 0; ...
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-core/src/main/java/org/springframework/core/Conventions.java
@@ -20,7 +20,9 @@ import java.io.Serializable; import java.lang.reflect.Method; import java.lang.reflect.Proxy; +import java.util.Arrays; import java.util.Collection; +import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.Set; @@ -43,18 +45,18 @@ public abstract 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-core/src/main/java/org/springframework/core/ExceptionDepthComparator.java
@@ -62,7 +62,7 @@ public int compare(Class<? extends Throwable> o1, Class<? extends Throwable> o2) return (depth1 - depth2); } - private int getDepth(Class declaredException, Class exceptionToMatch, int depth) { + private int getDepth(Class<?> declaredException, Class<?> exceptionToMatch, int depth) { if (dec...
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-core/src/main/java/org/springframework/core/GenericCollectionTypeResolver.java
@@ -41,6 +41,7 @@ public abstract class GenericCollectionTypeResolver { * @param collectionClass the collection class to introspect * @return the generic type, or {@code null} if none */ + @SuppressWarnings("rawtypes") public static Class<?> getCollectionType(Class<? extends Collection> collectionClass) { ...
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-core/src/main/java/org/springframework/core/GenericTypeResolver.java
@@ -44,8 +44,9 @@ public abstract class GenericTypeResolver { /** Cache from Class to TypeVariable Map */ - private static final Map<Class, Map<TypeVariable, Type>> typeVariableCache = - new ConcurrentReferenceHashMap<Class, Map<TypeVariable,Type>>(); + @SuppressWarnings("rawtypes") + private static final Map<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-core/src/main/java/org/springframework/core/MethodParameter.java
@@ -43,7 +43,7 @@ public class MethodParameter { private final Method method; - private final Constructor constructor; + private final Constructor<?> constructor; private final int parameterIndex; @@ -99,7 +99,7 @@ public MethodParameter(Method method, int parameterIndex, int nestingLevel) { * @param con...
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-core/src/main/java/org/springframework/core/NestedCheckedException.java
@@ -109,7 +109,7 @@ public Throwable getMostSpecificCause() { * @param exType the exception type to look for * @return whether there is a nested exception of the specified type */ - 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-core/src/main/java/org/springframework/core/NestedRuntimeException.java
@@ -110,7 +110,7 @@ public Throwable getMostSpecificCause() { * @param exType the exception type to look for * @return whether there is a nested exception of the specified type */ - 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-core/src/main/java/org/springframework/core/OrderComparator.java
@@ -111,7 +111,7 @@ public static void sortIfNecessary(Object value) { sort((Object[]) value); } else if (value instanceof List) { - sort((List) value); + sort((List<?>) value); } }
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-core/src/main/java/org/springframework/core/OverridingClassLoader.java
@@ -55,8 +55,8 @@ public OverridingClassLoader(ClassLoader parent) { @Override - protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException { - Class result = null; + protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { + Class<?> result = 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-core/src/main/java/org/springframework/core/ParameterizedTypeReference.java
@@ -61,7 +61,7 @@ public Type getType() { @Override public boolean equals(Object obj) { return (this == obj || (obj instanceof ParameterizedTypeReference && - this.type.equals(((ParameterizedTypeReference) obj).type))); + this.type.equals(((ParameterizedTypeReference<?>) obj).type))); } @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-core/src/main/java/org/springframework/core/PrioritizedParameterNameDiscoverer.java
@@ -60,7 +60,7 @@ public String[] getParameterNames(Method method) { } @Override - public String[] getParameterNames(Constructor ctor) { + public String[] getParameterNames(Constructor<?> ctor) { for (ParameterNameDiscoverer pnd : this.parameterNameDiscoverers) { String[] result = pnd.getParameterNames(cto...
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-core/src/main/java/org/springframework/core/ResolvableType.java
@@ -155,7 +155,7 @@ public Class<?> getRawClass() { if (rawType instanceof ParameterizedType) { rawType = ((ParameterizedType) rawType).getRawType(); } - return (rawType instanceof Class ? (Class) rawType : null); + return (rawType instanceof Class ? (Class<?>) rawType : null); } /** @@ -1060,11 +1060...
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-core/src/main/java/org/springframework/core/SmartClassLoader.java
@@ -38,6 +38,6 @@ public interface SmartClassLoader { * @return whether the class should be expected to appear in a reloaded * version (with a different {@code Class} object) later on */ - boolean isClassReloadable(Class clazz); + boolean isClassReloadable(Class<?> 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-core/src/main/java/org/springframework/core/annotation/AnnotationAwareOrderComparator.java
@@ -50,7 +50,7 @@ protected int getOrder(Object obj) { return ((Ordered) obj).getOrder(); } if (obj != null) { - Class<?> clazz = (obj instanceof Class ? (Class) obj : obj.getClass()); + Class<?> clazz = (obj instanceof Class ? (Class<?>) obj : obj.getClass()); Order order = AnnotationUtils.findAnnota...
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-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
@@ -523,7 +523,7 @@ public static Object getValue(Annotation annotation) { */ public static Object getValue(Annotation annotation, String attributeName) { try { - Method method = annotation.annotationType().getDeclaredMethod(attributeName, new Class[0]); + Method method = annotation.annotationType().getDecl...
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-core/src/main/java/org/springframework/core/convert/support/ArrayToCollectionConverter.java
@@ -56,7 +56,6 @@ public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) { } @Override - @SuppressWarnings("unchecked") public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { 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-core/src/main/java/org/springframework/core/convert/support/CollectionToCollectionConverter.java
@@ -56,7 +56,6 @@ public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) { } @Override - @SuppressWarnings("unchecked") public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { 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-core/src/main/java/org/springframework/core/convert/support/GenericConversionService.java
@@ -28,7 +28,6 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.springframework.core.GenericTypeResolver; import org.springframework.core.ResolvableType; import org.springframework.core.convert.ConversionException; import org.springframework.core.convert.ConversionFailedExcepti...
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-core/src/main/java/org/springframework/core/convert/support/ObjectToCollectionConverter.java
@@ -52,7 +52,6 @@ public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) { } @Override - @SuppressWarnings("unchecked") public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { 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-core/src/main/java/org/springframework/core/convert/support/StringToCollectionConverter.java
@@ -56,7 +56,6 @@ public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) { } @Override - @SuppressWarnings("unchecked") public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source == null) { 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-core/src/main/java/org/springframework/core/io/ClassRelativeResourceLoader.java
@@ -30,14 +30,14 @@ */ public class ClassRelativeResourceLoader extends DefaultResourceLoader { - private final Class clazz; + private final Class<?> clazz; /** * Create a new ClassRelativeResourceLoader for the given class. * @param clazz the class to load resources through */ - public ClassRelativ...
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-core/src/main/java/org/springframework/core/io/support/PropertiesLoaderUtils.java
@@ -175,9 +175,9 @@ public static Properties loadAllProperties(String resourceName, ClassLoader clas clToUse = ClassUtils.getDefaultClassLoader(); } Properties props = new Properties(); - Enumeration urls = clToUse.getResources(resourceName); + Enumeration<URL> urls = clToUse.getResources(resourceName); ...
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-core/src/main/java/org/springframework/core/style/DefaultValueStyler.java
@@ -57,20 +57,20 @@ else if (value instanceof String) { return "\'" + value + "\'"; } else if (value instanceof Class) { - return ClassUtils.getShortName((Class) value); + return ClassUtils.getShortName((Class<?>) value); } else if (value instanceof Method) { Method method = (Method) value; ...
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-core/src/main/java/org/springframework/core/type/StandardClassMetadata.java
@@ -30,22 +30,22 @@ */ public class StandardClassMetadata implements ClassMetadata { - private final Class introspectedClass; + private final Class<?> introspectedClass; /** * Create a new StandardClassMetadata wrapper for the given Class. * @param introspectedClass the Class to introspect */ - publ...
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-core/src/main/java/org/springframework/core/type/classreading/AnnotationReadingVisitorUtils.java
@@ -60,7 +60,7 @@ else if (value instanceof Type) { } else if (value instanceof Type[]) { Type[] array = (Type[]) value; - Object[] convArray = (classValuesAsString ? new String[array.length] : new Class[array.length]); + Object[] convArray = (classValuesAsString ? new String[array.length] : 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-core/src/main/java/org/springframework/core/type/filter/AssignableTypeFilter.java
@@ -26,14 +26,14 @@ */ public class AssignableTypeFilter extends AbstractTypeHierarchyTraversingFilter { - private final Class targetType; + private final Class<?> targetType; /** * Create a new AssignableTypeFilter for the given type. * @param targetType the type to match */ - public AssignableType...
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-core/src/main/java/org/springframework/util/Assert.java
@@ -263,7 +263,7 @@ public static void noNullElements(Object[] array) { * @param message the exception message to use if the assertion fails * @throws IllegalArgumentException if the collection is {@code null} or has no elements */ - public static void notEmpty(Collection collection, String message) { + 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-core/src/main/java/org/springframework/util/AutoPopulatingList.java
@@ -123,7 +123,7 @@ public boolean contains(Object o) { } @Override - public boolean containsAll(Collection c) { + public boolean containsAll(Collection<?> c) { return this.backingList.containsAll(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-core/src/main/java/org/springframework/util/ClassUtils.java
@@ -894,13 +894,13 @@ public static boolean isAssignable(Class<?> lhsType, Class<?> rhsType) { return true; } if (lhsType.isPrimitive()) { - Class resolvedPrimitive = primitiveWrapperTypeMap.get(rhsType); + Class<?> resolvedPrimitive = primitiveWrapperTypeMap.get(rhsType); if (resolvedPrimitive != nul...
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-core/src/main/java/org/springframework/util/CollectionUtils.java
@@ -47,7 +47,7 @@ public abstract class CollectionUtils { * @param collection the Collection to check * @return whether the given Collection is empty */ - public static boolean isEmpty(Collection collection) { + public static boolean isEmpty(Collection<?> collection) { return (collection == null || collecti...
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-core/src/main/java/org/springframework/util/MethodInvoker.java
@@ -168,7 +168,7 @@ public void prepare() throws ClassNotFoundException, NoSuchMethodException { } Object[] arguments = getArguments(); - Class[] argTypes = new Class[arguments.length]; + Class<?>[] argTypes = new Class<?>[arguments.length]; for (int i = 0; i < arguments.length; ++i) { argTypes[i] = (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-core/src/main/java/org/springframework/util/NumberUtils.java
@@ -115,7 +115,7 @@ else if (targetClass.equals(BigDecimal.class)) { * @param number the number we tried to convert * @param targetClass the target class we tried to convert to */ - private static void raiseOverflowException(Number number, Class targetClass) { + private static void raiseOverflowException(Numbe...
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-core/src/main/java/org/springframework/util/ObjectUtils.java
@@ -69,7 +69,7 @@ public static boolean isCheckedException(Throwable ex) { * @param declaredExceptions the exceptions declared in the throws clause * @return whether the given exception is compatible */ - public static boolean isCompatibleWithThrowsClause(Throwable ex, Class[] declaredExceptions) { + public 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-core/src/main/java/org/springframework/util/ReflectionUtils.java
@@ -133,7 +133,7 @@ public static Object getField(Field field, Object target) { * @return the Method object, or {@code null} if none found */ public static Method findMethod(Class<?> clazz, String name) { - return findMethod(clazz, name, new Class[0]); + return findMethod(clazz, name, new Class<?>[0]); } ...
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-core/src/main/java/org/springframework/util/WeakReferenceMonitor.java
@@ -53,7 +53,7 @@ public class WeakReferenceMonitor { private static final ReferenceQueue<Object> handleQueue = new ReferenceQueue<Object>(); // All tracked entries (WeakReference => ReleaseListener) - private static final Map<Reference, ReleaseListener> trackedEntries = new HashMap<Reference, ReleaseListener>();...
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-core/src/main/java/org/springframework/util/comparator/CompoundComparator.java
@@ -37,10 +37,10 @@ * @author Juergen Hoeller * @since 1.2.2 */ -@SuppressWarnings("serial") +@SuppressWarnings({ "serial", "rawtypes" }) public class CompoundComparator<T> implements Comparator<T>, Serializable { - private final List<InvertibleComparator<T>> comparators; + private final List<InvertibleCompara...
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-core/src/main/java/org/springframework/util/comparator/NullSafeComparator.java
@@ -64,7 +64,7 @@ * @see #NULLS_LOW * @see #NULLS_HIGH */ - @SuppressWarnings({ "unchecked"}) + @SuppressWarnings({ "unchecked", "rawtypes"}) private NullSafeComparator(boolean nullsLow) { this.nonNullComparator = new ComparableComparator(); this.nullsLow = nullsLow;
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-core/src/main/java/org/springframework/util/xml/DomUtils.java
@@ -184,7 +184,7 @@ private static boolean nodeNameMatch(Node node, String desiredName) { /** * Matches the given node's name and local name against the given desired names. */ - private static boolean nodeNameMatch(Node node, Collection desiredNames) { + private static boolean nodeNameMatch(Node node, Collecti...
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-core/src/main/java/org/springframework/util/xml/SimpleNamespaceContext.java
@@ -63,12 +63,12 @@ else if (prefixToNamespaceUri.containsKey(prefix)) { @Override public String getPrefix(String namespaceUri) { - List prefixes = getPrefixesInternal(namespaceUri); + List<?> prefixes = getPrefixesInternal(namespaceUri); return prefixes.isEmpty() ? null : (String) prefixes.get(0); } @...
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-core/src/main/java/org/springframework/util/xml/StaxEventContentHandler.java
@@ -19,6 +19,7 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.List; + import javax.xml.XMLConstants; import javax.xml.namespace.QName; import javax.xml.stream.Location; @@ -29,11 +30,10 @@ import javax.xml.stream.events.XMLEvent; import javax.xml.stream.util.XMLEventConsumer; +impo...
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-core/src/main/java/org/springframework/util/xml/StaxEventXMLReader.java
@@ -17,8 +17,7 @@ package org.springframework.util.xml; import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.Map; + import javax.xml.namespace.QName; import javax.xml.stream.Location; import javax.xml.stream.XMLEventReader; @@ -38,14 +37,13 @@ import javax.xml.stream.events.StartElement...
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-core/src/main/java/org/springframework/util/xml/XMLEventStreamReader.java
@@ -17,6 +17,7 @@ package org.springframework.util.xml; import java.util.Iterator; + import javax.xml.namespace.NamespaceContext; import javax.xml.namespace.QName; import javax.xml.stream.Location; @@ -38,6 +39,7 @@ * @since 3.0 * @see StaxUtils#createEventStreamReader(javax.xml.stream.XMLEventReader) */ +...
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-core/src/main/java/org/springframework/util/xml/XMLEventStreamWriter.java
@@ -19,6 +19,7 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.List; + import javax.xml.namespace.NamespaceContext; import javax.xml.namespace.QName; import javax.xml.stream.XMLEventFactory; @@ -38,6 +39,7 @@ * @since 3.0.5 * @see StaxUtils#createEventStreamWriter(javax.xml.stream.X...
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-core/src/test/java/org/springframework/core/GenericTypeResolverTests.java
@@ -75,6 +75,7 @@ public void methodReturnTypes() { } @Test + @Deprecated public void testResolveType() { Method intMessageMethod = findMethod(MyTypeWithMethods.class, "readIntegerInputMessage", MyInterfaceType.class); MethodParameter intMessageMethodParam = new MethodParameter(intMessageMethod, 0); @@ -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-core/src/test/java/org/springframework/core/ResolvableTypeTests.java
@@ -1230,11 +1230,13 @@ private static interface AssertAssignbleMatcher { } + @SuppressWarnings("serial") static class ExtendsList extends ArrayList<CharSequence> { } + @SuppressWarnings("serial") static class ExtendsMap extends HashMap<String, Integer> { }
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-core/src/test/java/org/springframework/core/convert/TypeDescriptorTests.java
@@ -840,6 +840,7 @@ public void passDownGeneric() throws Exception { public PassDownGeneric<Integer> passDownGeneric = new PassDownGeneric<Integer>(); + @SuppressWarnings("serial") public static class PassDownGeneric<T> extends ArrayList<List<Set<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-expression/src/main/java/org/springframework/expression/Expression.java
@@ -112,7 +112,7 @@ public interface Expression { * @return the most general type of value that can be set on this context * @throws EvaluationException if there is a problem determining the type */ - Class getValueType() throws EvaluationException; + Class<?> getValueType() throws EvaluationException; /**...
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-expression/src/main/java/org/springframework/expression/PropertyAccessor.java
@@ -40,7 +40,7 @@ public interface PropertyAccessor { * @return an array of classes that this resolver is suitable for (or null if a * general resolver) */ - Class[] getSpecificTargetClasses(); + Class<?>[] getSpecificTargetClasses(); /** * Called to determine if a resolver instance is able 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-expression/src/main/java/org/springframework/expression/common/CompositeStringExpression.java
@@ -26,15 +26,15 @@ * Represents a template expression broken into pieces. Each piece will be an Expression * but pure text parts to the template will be represented as LiteralExpression objects. * An example of a template expression might be: - * + * * <pre class="code"> * &quot;Hello ${getName()}&quot; *...
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-expression/src/main/java/org/springframework/expression/common/LiteralExpression.java
@@ -63,7 +63,7 @@ public String getValue(Object rootObject) { } @Override - public Class getValueType(EvaluationContext context) { + public Class<?> getValueType(EvaluationContext context) { return String.class; } @@ -100,7 +100,7 @@ public boolean isWritable(EvaluationContext context) { } @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-expression/src/main/java/org/springframework/expression/spel/ast/FormatHelper.java
@@ -66,7 +66,7 @@ public static String formatClassNameForMessage(Class<?> clazz) { StringBuilder fmtd = new StringBuilder(); if (clazz.isArray()) { int dims = 1; - Class baseClass = clazz.getComponentType(); + Class<?> baseClass = clazz.getComponentType(); while (baseClass.isArray()) { baseClass ...
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-expression/src/main/java/org/springframework/expression/spel/ast/SpelNodeImpl.java
@@ -73,7 +73,7 @@ protected SpelNodeImpl getPreviousChild() { /** * @return true if the next child is one of the specified classes */ - protected boolean nextChildIs(Class... clazzes) { + protected boolean nextChildIs(Class<?>... clazzes) { if (this.parent != null) { SpelNodeImpl[] peers = this.par...
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-expression/src/main/java/org/springframework/expression/spel/ast/TypeReference.java
@@ -60,7 +60,7 @@ public TypedValue getValueInternal(ExpressionState state) throws EvaluationExcep return new TypedValue(clazz); } - private Class makeArrayIfNecessary(Class clazz) { + private Class<?> makeArrayIfNecessary(Class<?> clazz) { if (this.dimensions!=0) { for (int i=0;i<this.dimensions;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-expression/src/main/java/org/springframework/expression/spel/support/ReflectionHelper.java
@@ -123,11 +123,11 @@ public static int getTypeDifferenceWeight(List<TypeDescriptor> paramTypes, List< return Integer.MAX_VALUE; } if (argType != null) { - Class paramTypeClazz = paramType.getType(); + Class<?> paramTypeClazz = paramType.getType(); if (paramTypeClazz.isPrimitive()) { param...
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-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveConstructorExecutor.java
@@ -46,7 +46,7 @@ class ReflectiveConstructorExecutor implements ConstructorExecutor { public ReflectiveConstructorExecutor(Constructor<?> ctor, int[] argsRequiringConversion) { this.ctor = ctor; if (ctor.isVarArgs()) { - Class[] paramTypes = ctor.getParameterTypes(); + Class<?>[] paramTypes = ctor.getParam...
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-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveConstructorResolver.java
@@ -59,23 +59,23 @@ public ConstructorExecutor resolve(EvaluationContext context, String typename, L try { TypeConverter typeConverter = context.getTypeConverter(); Class<?> type = context.getTypeLocator().findType(typename); - Constructor[] ctors = type.getConstructors(); + Constructor<?>[] ctors = type...
true
Other
spring-projects
spring-framework
44c5eaeaa3f3bc2c45f4592a4551ec054bf4697b.json
Fix typo in Javadoc
spring-core/src/main/java/org/springframework/core/type/StandardAnnotationMetadata.java
@@ -54,7 +54,7 @@ public StandardAnnotationMetadata(Class<?> introspectedClass) { * providing the option to return any nested annotations or annotation arrays in the * form of {@link org.springframework.core.annotation.AnnotationAttributes} instead * of actual {@link Annotation} instances. - * @param introspe...
false
Other
spring-projects
spring-framework
127bc07cdaa2434b6fa4c8227faaa5fdcb9a9647.json
Delete unused package import
spring-test/src/test/java/org/springframework/test/context/junit4/orm/HibernateSessionFlushingTests.java
@@ -22,7 +22,6 @@ import org.hibernate.SessionFactory; import org.hibernate.exception.ConstraintViolationException; -import org.hibernate.exception.GenericJDBCException; import org.junit.Before; import org.junit.Test;
false
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpDec.java
@@ -16,6 +16,8 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.Operation; import org.springframework.expression.TypedValue; @@ -29,6 +31,7 @@ * appropriate exceptions if the ope...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpDivide.java
@@ -16,47 +16,62 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; +import java.math.RoundingMode; + import org.springframework.expression.EvaluationException; import org.springframework.expression.Operation; import org.springframework.expression.TypedValue; import org.springfra...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpGE.java
@@ -15,18 +15,23 @@ */ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.spel.ExpressionState; import org.springframework.expression.spel.support.BooleanTypedValue; +import org.springf...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpGT.java
@@ -16,14 +16,18 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.spel.ExpressionState; import org.springframework.expression.spel.support.BooleanTypedValue; +import org.springfram...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpInc.java
@@ -16,6 +16,8 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.Operation; import org.springframework.expression.TypedValue; @@ -29,6 +31,7 @@ * appropriate exceptions if the ope...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpLE.java
@@ -16,18 +16,23 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.spel.ExpressionState; import org.springframework.expression.spel.support.BooleanTypedValue; +import org.springfram...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpLT.java
@@ -16,14 +16,18 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.spel.ExpressionState; import org.springframework.expression.spel.support.BooleanTypedValue; +import org.springfram...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpMinus.java
@@ -16,33 +16,40 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.Operation; import org.springframework.expression.TypedValue; import org.springframework.expression.spel.Expressio...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpModulus.java
@@ -16,45 +16,59 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.Operation; import org.springframework.expression.TypedValue; import org.springframework.expression.spel.Expressio...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpMultiply.java
@@ -16,31 +16,37 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.Operation; import org.springframework.expression.TypedValue; import org.springframework.expression.spel.Expressio...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpPlus.java
@@ -16,32 +16,38 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.core.convert.TypeDescriptor; import org.springframework.expression.EvaluationException; import org.springframework.expression.Operation; import org.springframework.expression.TypeConv...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/Operator.java
@@ -16,14 +16,19 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.spel.ExpressionState; +import org.springframework.util.NumberUtils; +import org.springframework.util.ObjectUtils; /** * Common supertype for operators that operate on eit...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OperatorPower.java
@@ -16,15 +16,19 @@ package org.springframework.expression.spel.ast; +import java.math.BigDecimal; + import org.springframework.expression.EvaluationException; import org.springframework.expression.Operation; import org.springframework.expression.TypedValue; import org.springframework.expression.spel.Expressio...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/main/java/org/springframework/expression/spel/support/StandardTypeComparator.java
@@ -16,16 +16,20 @@ package org.springframework.expression.spel.support; +import java.math.BigDecimal; + import org.springframework.expression.TypeComparator; import org.springframework.expression.spel.SpelEvaluationException; import org.springframework.expression.spel.SpelMessage; +import org.springframework.u...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/test/java/org/springframework/expression/spel/DefaultComparatorUnitTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,8 @@ import static org.junit.Asse...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/test/java/org/springframework/expression/spel/EvaluationTests.java
@@ -26,6 +26,7 @@ import static org.junit.Assert.fail; import java.lang.reflect.Method; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -55,6 +56,7 @@ * @author Mark Fisher * @author Sam Brannen * @author Phillip Webb + * @author Giovanni Dall'Oglio...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/test/java/org/springframework/expression/spel/ListTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,6 +28,7 @@ * Test usage of inline list...
true
Other
spring-projects
spring-framework
d0ab131a57b2dc0cec6b379d439ceff912d5c3d1.json
Add BigDecimal support for SpEl numeric operations Prior to this change, SpEL supported numeric operations for int, float, ect. `new java.math.BigDecimal('0.1') > 0` evaluated to false (BigDecimal is truncated to int) This commit introduces support for BigDecimal operations for all mathematical operators. `new java.m...
spring-expression/src/test/java/org/springframework/expression/spel/OperatorTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package org.springframework....
true
Other
spring-projects
spring-framework
2a05e6afa116ab56378521b5e8c834ba92c25b85.json
Change SpEL equality operators to use .equals Prior to this commit the SpEL operators `==` and `!=` were using the Java `==` comparison operator as part of their equality checking. It is more flexible to use the equals() method on Object. Under this commit the change to .equals() has been made and the equality checki...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpEQ.java
@@ -28,6 +28,7 @@ */ public class OpEQ extends Operator { + public OpEQ(int pos, SpelNodeImpl... operands) { super("==", pos, operands); } @@ -38,29 +39,7 @@ public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { Object left = getLeftOperand().getValueInternal(s...
true
Other
spring-projects
spring-framework
2a05e6afa116ab56378521b5e8c834ba92c25b85.json
Change SpEL equality operators to use .equals Prior to this commit the SpEL operators `==` and `!=` were using the Java `==` comparison operator as part of their equality checking. It is more flexible to use the equals() method on Object. Under this commit the change to .equals() has been made and the equality checki...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpGT.java
@@ -28,6 +28,7 @@ */ public class OpGT extends Operator { + public OpGT(int pos, SpelNodeImpl... operands) { super(">", pos, operands); } @@ -43,6 +44,9 @@ public BooleanTypedValue getValueInternal(ExpressionState state) throws Evaluati if (leftNumber instanceof Double || rightNumber instanceof Double) ...
true
Other
spring-projects
spring-framework
2a05e6afa116ab56378521b5e8c834ba92c25b85.json
Change SpEL equality operators to use .equals Prior to this commit the SpEL operators `==` and `!=` were using the Java `==` comparison operator as part of their equality checking. It is more flexible to use the equals() method on Object. Under this commit the change to .equals() has been made and the equality checki...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpLT.java
@@ -28,6 +28,7 @@ */ public class OpLT extends Operator { + public OpLT(int pos, SpelNodeImpl... operands) { super("<", pos, operands); } @@ -38,7 +39,7 @@ public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { Object left = getLeftOperand().getValueInternal(sta...
true
Other
spring-projects
spring-framework
2a05e6afa116ab56378521b5e8c834ba92c25b85.json
Change SpEL equality operators to use .equals Prior to this commit the SpEL operators `==` and `!=` were using the Java `==` comparison operator as part of their equality checking. It is more flexible to use the equals() method on Object. Under this commit the change to .equals() has been made and the equality checki...
spring-expression/src/main/java/org/springframework/expression/spel/ast/OpNE.java
@@ -28,42 +28,17 @@ */ public class OpNE extends Operator { + public OpNE(int pos, SpelNodeImpl... operands) { super("!=", pos, operands); } @Override public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { - Object left = getLeftOperand().getValueInternal(st...
true
Other
spring-projects
spring-framework
2a05e6afa116ab56378521b5e8c834ba92c25b85.json
Change SpEL equality operators to use .equals Prior to this commit the SpEL operators `==` and `!=` were using the Java `==` comparison operator as part of their equality checking. It is more flexible to use the equals() method on Object. Under this commit the change to .equals() has been made and the equality checki...
spring-expression/src/main/java/org/springframework/expression/spel/ast/Operator.java
@@ -16,6 +16,8 @@ package org.springframework.expression.spel.ast; +import org.springframework.expression.spel.ExpressionState; + /** * Common supertype for operators that operate on either one or two operands. In the case * of multiply or divide there would be two operands, but for unary plus or minus, there...
true
Other
spring-projects
spring-framework
2a05e6afa116ab56378521b5e8c834ba92c25b85.json
Change SpEL equality operators to use .equals Prior to this commit the SpEL operators `==` and `!=` were using the Java `==` comparison operator as part of their equality checking. It is more flexible to use the equals() method on Object. Under this commit the change to .equals() has been made and the equality checki...
spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java
@@ -1839,6 +1839,19 @@ public void SPR_10486() throws Exception { equalTo((Object) "name")); } + @Test + public void testOperatorEq_SPR9194() { + TestClass2 one = new TestClass2("abc"); + TestClass2 two = new TestClass2("abc"); + Map<String,TestClass2> map = new HashMap<String,TestClass2>(); + map.put("one...
true