commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Commons Wiki] Trivial Update of "DBCP/Hibernate" by newacct
Date Wed, 27 Jan 2010 11:03:30 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Commons Wiki" for change notification.

The "DBCP/Hibernate" page has been changed by newacct.
http://wiki.apache.org/jakarta-commons/DBCP/Hibernate?action=diff&rev1=4&rev2=5

--------------------------------------------------

              }
  
              // Copy all DBCP properties removing the prefix
-             for (Iterator iter = props.keySet().iterator() ; iter.hasNext() ;) {
+             for (Iterator iter = props.entrySet().iterator() ; iter.hasNext() ;) {
+                 Map.Entry entry = (Map.Entry) iter.next();
-                 String key = String.valueOf(iter.next());
+                 String key = (String) iter.next();
                  if (key.startsWith(PREFIX)) {
                      String property = key.substring(PREFIX.length());
-                     String value = props.getProperty(key);
+                     String value = (String) entry.getValue();
                      dbcpProperties.put(property, value);
                  }
              }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message