You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by my...@apache.org on 2008/02/23 00:37:26 UTC

svn commit: r630354 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

Author: myrnavl
Date: Fri Feb 22 15:37:14 2008
New Revision: 630354

URL: http://svn.apache.org/viewvc?rev=630354&view=rev
Log:
DERBY-2667 - modifying mix of tabs & spaces to only spaces in recently added
  code (revision 630077).

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java?rev=630354&r1=630353&r2=630354&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Fri Feb 22 15:37:14 2008
@@ -93,45 +93,45 @@
         {
             if (config.defaultSecurityManagerSetup())
             {
-    		assertSecurityManager();
+                assertSecurityManager();
             }
         }
-    	 
+
         try {
             super.runBare();   
         }
         //To save the derby.log of failed tests. 
         catch (Throwable running) {
-        	try{
-        		AccessController.doPrivileged(new PrivilegedExceptionAction() {
-        			public Object run() throws SQLException, FileNotFoundException,
-        			IOException {
+            try{
+                AccessController.doPrivileged(new PrivilegedExceptionAction() {
+                    public Object run() throws SQLException, FileNotFoundException,
+                    IOException {
 
-        				File origLogDir = new File("system", "derby.log");
-        				if (origLogDir.exists()) {
-        					File failDir = getFailureFolder();
-        					InputStream in = new FileInputStream(origLogDir);
-        					OutputStream out = new FileOutputStream(new File(failDir,
-        					"derby.log"));
-        					byte[] buf = new byte[32 * 1024];
+                        File origLogDir = new File("system", "derby.log");
+                        if (origLogDir.exists()) {
+                            File failDir = getFailureFolder();
+                            InputStream in = new FileInputStream(origLogDir);
+                            OutputStream out = new FileOutputStream(new File(failDir,
+                            "derby.log"));
+                            byte[] buf = new byte[32 * 1024];
 
-        					for (;;) {
-        						int read = in.read(buf);
-        						if (read == -1)
-        							break;
-        						out.write(buf, 0, read);
-        					}
-        					in.close();
-        					out.close();
-        				}
+                            for (;;) {
+                                int read = in.read(buf);
+                                if (read == -1)
+                                    break;
+                                out.write(buf, 0, read);
+                            }
+                            in.close();
+                            out.close();
+                        }
 
-        				return null;
-        			}
-        		});
-        	}
-        	finally{        		
-        			throw running;
-        	}
+                        return null;
+                    }
+                });
+            }
+            finally{        		
+                throw running;
+            }
         }
         finally{
             if ( trace )