geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r907976 - /geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
Date Tue, 09 Feb 2010 08:54:31 GMT
Author: genspring
Date: Tue Feb  9 08:54:30 2010
New Revision: 907976

URL: http://svn.apache.org/viewvc?rev=907976&view=rev
Log:
GERONIMO-5055 Informix tranql XA 1.2 snapshot leads to weird admin console, patch from Ashish.

Modified:
    geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java

Modified: geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java?rev=907976&r1=907975&r2=907976&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
(original)
+++ geronimo/server/trunk/plugins/system-database/sysdb-portlets/src/main/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
Tue Feb  9 08:54:30 2010
@@ -1430,8 +1430,14 @@
             StringBuffer buf = new StringBuffer();
             pos = 0;
             for (int i = 1; i < key.length(); i++) {
-                if (Character.isUpperCase(key.charAt(i))) {
-                    if (Character.isUpperCase(key.charAt(i - 1))) { // ongoing capitalized
word
+                 if(key.charAt(i)=='_')
+                 {
+                     buf.append(key.substring(pos, i)).append(" ");
+                     pos = i+1;
+                 }
+                 else{
+                     if (Character.isUpperCase(key.charAt(i))) {
+                         if (Character.isUpperCase(key.charAt(i - 1)) || key.charAt(i-1)=='_')
{ // ongoing capitalized word
 
                     } else { // start of a new word
                         buf.append(key.substring(pos, i)).append(" ");
@@ -1443,6 +1449,7 @@
                         buf.append(key.substring(pos, i - 1)).append(" ");
                         pos = i - 1;
                     }
+                    }
                 }
             }
             buf.append(key.substring(pos));



Mime
View raw message