directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r659852 - /directory/apacheds/branches/bigbang/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java
Date Sat, 24 May 2008 16:58:57 GMT
Author: akarasulu
Date: Sat May 24 09:58:56 2008
New Revision: 659852

URL: http://svn.apache.org/viewvc?rev=659852&view=rev
Log:
throwing exceptions instead of swallowing them

Modified:
    directory/apacheds/branches/bigbang/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java

Modified: directory/apacheds/branches/bigbang/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java?rev=659852&r1=659851&r2=659852&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java
(original)
+++ directory/apacheds/branches/bigbang/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMarshaller.java
Sat May 24 09:58:56 2008
@@ -177,8 +177,6 @@
         ByteArrayInputStream bin = new ByteArrayInputStream( data );
         DataInputStream din = new DataInputStream( bin );
         
-        try
-        {
             byte startByte = din.readByte();
             
             if( startByte != 0 )
@@ -209,13 +207,6 @@
             }
 
             return tree;
-        }
-        catch( Exception ioe )
-        {
-            ioe.printStackTrace();
-        }
-        
-        return null;
     }
 
     



Mime
View raw message