db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1085407 - /db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java
Date Fri, 25 Mar 2011 14:34:59 GMT
Author: kahatlen
Date: Fri Mar 25 14:34:58 2011
New Revision: 1085407

URL: http://svn.apache.org/viewvc?rev=1085407&view=rev
Log:
DERBY-5093: avoid Integer allocations fetching client meta data info

Patch contributed by Dave Brosius <dbrosius@apache.org>.

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java?rev=1085407&r1=1085406&r2=1085407&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/DatabaseMetaData.java Fri Mar
25 14:34:58 2011
@@ -2560,7 +2560,7 @@ public abstract class DatabaseMetaData i
             }
             java.util.StringTokenizer st = new java.util.StringTokenizer(returnedFromSP,
",");
             while (st.hasMoreTokens()) {
-                if ((new Integer(st.nextToken())).intValue() == type) {
+                if ((Integer.parseInt(st.nextToken())) == type) {
                     return true;
                 }
             }
@@ -2600,9 +2600,9 @@ public abstract class DatabaseMetaData i
             while (st.hasMoreTokens()) {
                 java.util.StringTokenizer stForConc = 
 		    new java.util.StringTokenizer(st.nextToken(), ",");
-                if ((new Integer(stForConc.nextToken())).intValue() == type) {
+                if ((Integer.parseInt(stForConc.nextToken())) == type) {
                     while (stForConc.hasMoreTokens()) {
-                        if ((new Integer(stForConc.nextToken())).intValue() == concurrency)
{
+                        if ((Integer.parseInt(stForConc.nextToken())) == concurrency) {
                             return true;
                         }
                     }
@@ -2635,9 +2635,9 @@ public abstract class DatabaseMetaData i
             java.util.StringTokenizer st = new java.util.StringTokenizer(returnedFromSP,
";");
             while (st.hasMoreTokens()) {
                 java.util.StringTokenizer stForType = new java.util.StringTokenizer(st.nextToken(),
",");
-                if ((new Integer(stForType.nextToken())).intValue() == fromType) {
+                if ((Integer.parseInt(stForType.nextToken())) == fromType) {
                     while (st.hasMoreTokens()) {
-                        if ((new Integer(st.nextToken())).intValue() == toType) {
+                        if ((Integer.parseInt(st.nextToken())) == toType) {
                             return true;
                         }
                     }



Mime
View raw message