db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1329686 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CharUTF8Test.java
Date Tue, 24 Apr 2012 12:52:26 GMT
Author: kahatlen
Date: Tue Apr 24 12:52:26 2012
New Revision: 1329686

URL: http://svn.apache.org/viewvc?rev=1329686&view=rev
Log:
DERBY-5707: Clean up statements in CharUTF8Test

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CharUTF8Test.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CharUTF8Test.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CharUTF8Test.java?rev=1329686&r1=1329685&r2=1329686&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CharUTF8Test.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CharUTF8Test.java
Tue Apr 24 12:52:26 2012
@@ -75,8 +75,10 @@ public class CharUTF8Test extends BaseJD
 	}
 	
 	protected void tearDown() throws Exception {
-		psSet.close();
-		psGet.close();
+        // Forget the statements to allow them to be gc'ed. They will be
+        // closed in super.tearDown().
+        psSet = null;
+        psGet = null;
 		super.tearDown();
 	}
 	
@@ -89,8 +91,6 @@ public class CharUTF8Test extends BaseJD
 	 * @throws SQLException
 	 */
 	public void testUTF8() throws SQLException {
-		int off = 0;
-		
 		for (int i = Character.MIN_VALUE; i <= Character.MAX_VALUE; i++) {
 			StringBuffer buff = new StringBuffer();
 			buff.append((char) i);
@@ -110,7 +110,7 @@ public class CharUTF8Test extends BaseJD
 	}
 	
 	/**
-	 * Checks if an ampty UTF8 string is correctly handled.
+	 * Checks if an empty UTF8 string is correctly handled.
 	 * 
 	 * @throws SQLException
 	 */



Mime
View raw message