You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/09/26 03:06:02 UTC

svn commit: r819079 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java

Author: hansbak
Date: Sat Sep 26 01:06:01 2009
New Revision: 819079

URL: http://svn.apache.org/viewvc?rev=819079&view=rev
Log:
spaces for tabs

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java?rev=819079&r1=819078&r2=819079&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java Sat Sep 26 01:06:01 2009
@@ -1015,21 +1015,21 @@
         }
     }
     public static void copyFile(File sourceLocation , File targetLocation) throws IOException {
-    	if (sourceLocation.isDirectory()) {
-    		throw new IOException("File is a directory, not a file, cannot copy") ;
-    	} else {
+        if (sourceLocation.isDirectory()) {
+            throw new IOException("File is a directory, not a file, cannot copy") ;
+        } else {
 
-    		InputStream in = new FileInputStream(sourceLocation);
-    		OutputStream out = new FileOutputStream(targetLocation);
+            InputStream in = new FileInputStream(sourceLocation);
+            OutputStream out = new FileOutputStream(targetLocation);
 
-    		// Copy the bits from instream to outstream
-    		byte[] buf = new byte[1024];
-    		int len;
-    		while ((len = in.read(buf)) > 0) {
-    			out.write(buf, 0, len);
-    		}
-    		in.close();
-    		out.close();
-    	}
+            // Copy the bits from instream to outstream
+            byte[] buf = new byte[1024];
+            int len;
+            while ((len = in.read(buf)) > 0) {
+                out.write(buf, 0, len);
+            }
+            in.close();
+            out.close();
+        }
     }
 }