Author: oheger
Date: Fri Oct 25 20:28:16 2013
New Revision: 1535852
URL: http://svn.apache.org/r1535852
Log:
Fixed generics warnings.
ContextClassLoaderLocal has been generified; so BeanUtilsBean which uses this
class has to be adapted.
Modified:
commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BeanUtilsBean.java
Modified:
commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BeanUtilsBean.java
URL:
http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BeanUtilsBean.java?rev=1535852&r1=1535851&r2=1535852&view=diff
==============================================================================
---
commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BeanUtilsBean.java
(original)
+++
commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BeanUtilsBean.java
Fri Oct 25 20:28:16 2013
@@ -55,11 +55,11 @@ public class BeanUtilsBean {
/**
* Contains <code>BeanUtilsBean</code> instances indexed by context
classloader.
*/
- private static final ContextClassLoaderLocal
- BEANS_BY_CLASSLOADER = new ContextClassLoaderLocal() {
+ private static final ContextClassLoaderLocal<BeanUtilsBean>
+ BEANS_BY_CLASSLOADER = new
ContextClassLoaderLocal<BeanUtilsBean>() {
// Creates the default instance used when the context
classloader is unavailable
@Override
- protected Object initialValue() {
+ protected BeanUtilsBean initialValue() {
return new BeanUtilsBean();
}
};
@@ -72,7 +72,7 @@ public class BeanUtilsBean {
* @return The (pseudo-singleton) BeanUtils bean instance
*/
public static BeanUtilsBean getInstance() {
- return (BeanUtilsBean) BEANS_BY_CLASSLOADER.get();
+ return BEANS_BY_CLASSLOADER.get();
}
/**