db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r676544 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java
Date Mon, 14 Jul 2008 10:30:41 GMT
Author: kristwaa
Date: Mon Jul 14 03:30:40 2008
New Revision: 676544

URL: http://svn.apache.org/viewvc?rev=676544&view=rev
Log:
Removed unused local variable and unused imports.
Patch file: n/a

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java?rev=676544&r1=676543&r2=676544&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java Mon Jul
14 03:30:40 2008
@@ -23,14 +23,10 @@
 package org.apache.derby.impl.jdbc;
 
 import java.io.EOFException;
-import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
-import java.io.RandomAccessFile;
-import java.security.AccessControlException;
 import java.security.AccessController;
-import java.security.PrivilegedAction;
 import java.security.PrivilegedActionException;
 import java.security.PrivilegedExceptionAction;
 import java.sql.SQLException;
@@ -40,7 +36,6 @@
 import org.apache.derby.iapi.services.monitor.Monitor;
 import org.apache.derby.iapi.store.raw.data.DataFactory;
 import org.apache.derby.io.StorageFile;
-import org.apache.derby.io.StorageRandomAccessFile;
 import org.apache.derby.shared.common.error.ExceptionUtil;
 
 /**
@@ -287,7 +282,6 @@
             return -1;
         int lengthFromPos = dataBytes.length - (int) pos;
         int actualLength = len > lengthFromPos ? lengthFromPos : len;
-        byte [] result = new byte[actualLength];
         System.arraycopy(dataBytes, (int) pos, b, off, actualLength);
         return actualLength;
     }



Mime
View raw message