db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1069354 - /db/derby/code/trunk/java/client/org/apache/derby/client/am/ResultSet.java
Date Thu, 10 Feb 2011 12:19:25 GMT
Author: kahatlen
Date: Thu Feb 10 12:19:25 2011
New Revision: 1069354

URL: http://svn.apache.org/viewvc?rev=1069354&view=rev
Log:
#DERBY-5015: Use Arrays.fill() in client/am/ResultSet.java


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

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/ResultSet.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/ResultSet.java?rev=1069354&r1=1069353&r2=1069354&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/ResultSet.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/ResultSet.java Thu Feb 10 12:19:25
2011
@@ -4702,14 +4702,10 @@ public abstract class ResultSet implemen
 
     private final void resetUpdatedColumns() {
         if (updatedColumns_ != null) {
-            for (int i = 0; i < updatedColumns_.length; i++) {
-                updatedColumns_[i] = null;
-            }
+            Arrays.fill(updatedColumns_, null);
         }
         if (columnUpdated_ != null) {
-            for (int i = 0; i < columnUpdated_.length; i++) {
-                columnUpdated_[i] = false;
-            }
+            Arrays.fill(columnUpdated_, false);
         }
     }
 
@@ -5437,9 +5433,7 @@ public abstract class ResultSet implemen
 
     private void resetRowsetSqlca() {
         if (rowsetSqlca_ != null) {
-            for (int i = 0; i < rowsetSqlca_.length; i++) {
-                rowsetSqlca_[i] = null;
-            }
+            Arrays.fill(rowsetSqlca_, null);
         }
     }
 	



Mime
View raw message