harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r420488 - /incubator/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_ClassLoader.java
Date Mon, 10 Jul 2006 11:16:48 GMT
Author: tellison
Date: Mon Jul 10 04:16:47 2006
New Revision: 420488

URL: http://svn.apache.org/viewvc?rev=420488&view=rev
Log:
Removing console message and no value comments.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_ClassLoader.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_ClassLoader.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_ClassLoader.java?rev=420488&r1=420487&r2=420488&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_ClassLoader.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_ClassLoader.java
Mon Jul 10 04:16:47 2006
@@ -107,11 +107,6 @@
 		try {
 			theFile = new File(pathName, classNameAsFile);
 			if (theFile.exists()) {
-				/*
-				 * System.out.println("findClass - class filename = " +
-				 * classNameAsFile ); System.out.println("findClass: class file
-				 * found");
-				 */
 				int length = (int) theFile.length();
 				theInput = new FileInputStream(theFile);
 				byte[] theBytes = new byte[length + 100];
@@ -122,24 +117,17 @@
 					if (count == -1)
 						break;
 					dataRead += count;
-				} // end while
+				}
 
-				// System.out.println("loadClassFromFile: read " + dataRead + "
-				// bytes from class file");
 				if (dataRead > 0) {
 					// Create the class from the bytes read in...
-					theClass = this.defineClass(className, theBytes, 0,
-							dataRead);
-					/* System.out.println("findClass: created Class object."); */
+					theClass = this.defineClass(className, theBytes, 0, dataRead);
 					ClassLoader testClassLoader = theClass.getClassLoader();
 					if (testClassLoader != this) {
 						System.out.println("findClass - wrong classloader!!");
-					} else {
-						System.out.println("Testclassloader loaded class "
-								+ className);
-					} // end if
-				} // end if
-			} // end if
+					}
+				}
+			}
 		} catch (Exception e) {
 			System.out.println("findClass - exception reading class file.");
 			e.printStackTrace();
@@ -148,10 +136,10 @@
 				if (theInput != null)
 					theInput.close();
 			} catch (Exception e) {
-			} // end try
-		} // end try
+			}
+		}
 		return theClass;
-	} // end method loadClassFromFile( )
+	}
 
 	/*
 	 * Loads a named class from a specified JAR file



Mime
View raw message