commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1208764 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/beanutils/ConfigurationDynaClass.java
Date Wed, 30 Nov 2011 20:41:31 GMT
Author: oheger
Date: Wed Nov 30 20:41:30 2011
New Revision: 1208764

URL: http://svn.apache.org/viewvc?rev=1208764&view=rev
Log:
Java 1.5 compatibility: Javadocs, raw types, etc.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/beanutils/ConfigurationDynaClass.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/beanutils/ConfigurationDynaClass.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/beanutils/ConfigurationDynaClass.java?rev=1208764&r1=1208763&r2=1208764&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/beanutils/ConfigurationDynaClass.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/beanutils/ConfigurationDynaClass.java
Wed Nov 30 20:41:30 2011
@@ -30,11 +30,11 @@ import org.apache.commons.logging.LogFac
 
 /**
  * The <tt>ConfigurationDynaClass</tt> dynamically determines properties for
- * a <code>ConfigurationDynaBean</code> from a wrapped configuration-collection
+ * a {@code ConfigurationDynaBean} from a wrapped configuration-collection
  * {@link org.apache.commons.configuration.Configuration} instance.
  *
  * @author <a href="mailto:ricardo.gladwell@btinternet.com">Ricardo Gladwell</a>
- * @version $Revision$, $Date$
+ * @version $Id$
  * @since 1.0-rc1
  */
 public class ConfigurationDynaClass implements DynaClass
@@ -46,9 +46,9 @@ public class ConfigurationDynaClass impl
     private Configuration configuration;
 
     /**
-     * Construct an instance of a <code>ConfigurationDynaClass</code>
-     * wrapping the specified <code>Configuration</code> instance.
-     * @param configuration <code>Configuration</code> instance.
+     * Construct an instance of a {@code ConfigurationDynaClass}
+     * wrapping the specified {@code Configuration} instance.
+     * @param configuration {@code Configuration} instance.
      */
     public ConfigurationDynaClass(Configuration configuration)
     {
@@ -79,7 +79,7 @@ public class ConfigurationDynaClass impl
         }
         else
         {
-            Class type = value.getClass();
+            Class<?> type = value.getClass();
 
             if (type == Byte.class)
             {
@@ -125,11 +125,11 @@ public class ConfigurationDynaClass impl
             log.trace("getDynaProperties()");
         }
 
-        Iterator keys = configuration.getKeys();
-        List properties = new ArrayList();
+        Iterator<String> keys = configuration.getKeys();
+        List<DynaProperty> properties = new ArrayList<DynaProperty>();
         while (keys.hasNext())
         {
-            String key = (String) keys.next();
+            String key = keys.next();
             DynaProperty property = getDynaProperty(key);
             properties.add(property);
         }



Mime
View raw message