db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r902798 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatIdInputStream.java
Date Mon, 25 Jan 2010 12:49:37 GMT
Author: kristwaa
Date: Mon Jan 25 12:49:37 2010
New Revision: 902798

URL: http://svn.apache.org/viewvc?rev=902798&view=rev
Log:
DERBY-4520: Refactor and extend data type cloning facilities
Removed unhelpful assert statements.
Added @see tags to copy JavaDoc from the interfaces.

Patch file: n/a

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatIdInputStream.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatIdInputStream.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatIdInputStream.java?rev=902798&r1=902797&r2=902798&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatIdInputStream.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/io/FormatIdInputStream.java
Mon Jan 25 12:49:37 2010
@@ -209,37 +209,32 @@
 
     /*** Resetable interface ***/
 
+    /** @see Resetable#resetStream() */
     public void resetStream()
         throws IOException, StandardException
     {
-        if (SanityManager.DEBUG)
-            SanityManager.ASSERT(in instanceof Resetable);
         ((Resetable) in).resetStream();
     }
 
 
+    /** @see Resetable#initStream() */
     public void initStream()
         throws StandardException
     {
-        if (SanityManager.DEBUG)
-            SanityManager.ASSERT(in instanceof Resetable);
         ((Resetable) in).initStream();
     }
 
 
+    /** @see Resetable#closeStream() */
     public void closeStream()
     {
-        if (SanityManager.DEBUG)
-            SanityManager.ASSERT(in instanceof Resetable);
         ((Resetable) in).closeStream();
     }
 
     /*** CloneableStream interface ***/
 
+    /** @see CloneableStream#cloneStream() */
     public InputStream cloneStream() {
-        if (SanityManager.DEBUG)
-            SanityManager.ASSERT(in instanceof CloneableStream);
-
         InputStream new_input_stream = ((CloneableStream) in).cloneStream();
 
         return(new FormatIdInputStream(new_input_stream));



Mime
View raw message