db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r544503 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/StoreStreamClob.java
Date Tue, 05 Jun 2007 14:30:52 GMT
Author: kristwaa
Date: Tue Jun  5 07:30:51 2007
New Revision: 544503

URL: http://svn.apache.org/viewvc?view=rev&rev=544503
Log:
DERBY-2646: Removed redundant checks in constructor and updated the JavaDoc.
Patch file: n/a

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

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/StoreStreamClob.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/StoreStreamClob.java?view=diff&rev=544503&r1=544502&r2=544503
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/StoreStreamClob.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/StoreStreamClob.java Tue Jun
 5 07:30:51 2007
@@ -87,21 +87,15 @@
      *      See the class JavaDoc for more information about this stream.
      * @param conChild the connection (child) this Clob belongs to
      * @throws StandardException if initializing the store stream fails
+     * @throws NullPointerException if <code>stream</code> or
+     *      <code>conChild</code> is null
+     * @throws ClassCastException if <code>stream</code> is not an instance
+     *      of <code>Resetable</code>
      * @see org.apache.derby.iapi.services.io.FormatIdInputStream
      * @see org.apache.derby.impl.store.raw.data.OverflowInputStream
      */
     public StoreStreamClob(InputStream stream, ConnectionChild conChild)
             throws StandardException {
-        if (stream == null) {
-            throw new IllegalArgumentException("Stream cannot be <null>");
-        }
-        if (conChild == null) {
-            throw new IllegalArgumentException("conChild cannot be <null>");
-        }
-        if (!(stream instanceof Resetable)) {
-            throw new IllegalArgumentException("Stream must be resetable: " +
-                stream.toString());
-        }
         this.storeStream = stream;
         this.conChild = conChild;
         this.synchronizationObject = conChild.getConnectionSynchronization();



Mime
View raw message