activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r910945 - /activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java
Date Wed, 17 Feb 2010 12:18:56 GMT
Author: gtully
Date: Wed Feb 17 12:18:55 2010
New Revision: 910945

URL: http://svn.apache.org/viewvc?rev=910945&view=rev
Log:
merge -c 910637 https://svn.apache.org/repos/asf/activemq/trunk - resolve Locale dependent
toUpperCase in IntrospectionSupport. - AMQ-2608

Modified:
    activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java

Modified: activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java?rev=910945&r1=910944&r2=910945&view=diff
==============================================================================
--- activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java
(original)
+++ activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java
Wed Feb 17 12:18:55 2010
@@ -218,7 +218,7 @@
 
     private static Method findSetterMethod(Class clazz, String name) {
         // Build the method name.
-        name = "set" + name.substring(0, 1).toUpperCase() + name.substring(1);
+        name = "set" + Character.toUpperCase(name.charAt(0)) + name.substring(1);
         Method[] methods = clazz.getMethods();
         for (int i = 0; i < methods.length; i++) {
             Method method = methods[i];



Mime
View raw message