db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r630354 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
Date Fri, 22 Feb 2008 23:37:26 GMT
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 )



Mime
View raw message