db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1469992 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java
Date Fri, 19 Apr 2013 19:17:44 GMT
Author: rhillegas
Date: Fri Apr 19 19:17:30 2013
New Revision: 1469992

URL: http://svn.apache.org/r1469992
Log:
DERBY-6188: Improve the encapsulation of FormatableArrayHolder.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java?rev=1469992&r1=1469991&r2=1469992&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatableArrayHolder.java
Fri Apr 19 19:17:30 2013
@@ -21,6 +21,7 @@
 
 package org.apache.derby.iapi.services.io;
 
+import org.apache.derby.iapi.services.io.ArrayUtil;
 import org.apache.derby.iapi.services.sanity.SanityManager;
 
 import java.io.ObjectOutput;
@@ -73,7 +74,7 @@ public class FormatableArrayHolder imple
 					"array input to constructor is null, code can't handle this.");
 		}
 
-		this.array = array;
+		setArray( array );
 	}
 
 	/**
@@ -89,7 +90,7 @@ public class FormatableArrayHolder imple
 					"array input to setArray() is null, code can't handle this.");
 		}
 
-		this.array = array;
+		this.array = ArrayUtil.copy( array );
 	}
 
 	/**



Mime
View raw message