commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1536028 - /commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java
Date Sat, 26 Oct 2013 19:44:31 GMT
Author: oheger
Date: Sat Oct 26 19:44:31 2013
New Revision: 1536028

URL: http://svn.apache.org/r1536028
Log:
Generified LazyDynaClass.

Modified:
    commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java

Modified: commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java?rev=1536028&r1=1536027&r2=1536028&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java
(original)
+++ commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java
Sat Oct 26 19:44:31 2013
@@ -79,7 +79,7 @@ public class LazyDynaClass extends Basic
      * @param name Name of this DynaBean class
      * @param dynaBeanClass The implementation class for new instances
      */
-    public LazyDynaClass(String name, Class dynaBeanClass) {
+    public LazyDynaClass(String name, Class<?> dynaBeanClass) {
         this(name, dynaBeanClass, null);
     }
 
@@ -97,10 +97,10 @@ public class LazyDynaClass extends Basic
      * Construct a new LazyDynaClass with the specified name, DynaBean class and properties.
      *
      * @param name Name of this DynaBean class
-     * @param dynaBeanClass The implementation class for new intances
+     * @param dynaBeanClass The implementation class for new instances
      * @param properties Property descriptors for the supported properties
      */
-    public LazyDynaClass(String name, Class dynaBeanClass, DynaProperty properties[]) {
+    public LazyDynaClass(String name, Class<?> dynaBeanClass, DynaProperty properties[])
{
         super(name, dynaBeanClass, properties);
     }
 
@@ -177,7 +177,7 @@ public class LazyDynaClass extends Basic
      * @exception IllegalStateException if this DynaClass is currently
      *  restricted, so no new properties can be added
      */
-    public void add(String name, Class type) {
+    public void add(String name, Class<?> type) {
         if (type == null) {
             add(name);
         } else {
@@ -206,7 +206,7 @@ public class LazyDynaClass extends Basic
      *
      * @exception UnsupportedOperationException anytime this method is called
      */
-    public void add(String name, Class type, boolean readable, boolean writeable) {
+    public void add(String name, Class<?> type, boolean readable, boolean writeable)
{
         throw new java.lang.UnsupportedOperationException("readable/writable properties not
supported");
     }
 
@@ -320,7 +320,7 @@ public class LazyDynaClass extends Basic
             throw new IllegalArgumentException("Property name is missing.");
         }
 
-        DynaProperty dynaProperty = (DynaProperty)propertiesMap.get(name);
+        DynaProperty dynaProperty = propertiesMap.get(name);
 
         // If it doesn't exist and returnNull is false
         // create a new DynaProperty



Mime
View raw message