directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 9444 - incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber
Date Sat, 13 Mar 2004 23:54:02 GMT
Author: akarasulu
Date: Sat Mar 13 15:54:01 2004
New Revision: 9444

Modified:
   incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/BERDecoderState.java
Log:
get clover and compiler to shutup

Modified: incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/BERDecoderState.java
==============================================================================
--- incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/BERDecoderState.java
(original)
+++ incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/BERDecoderState.java
Sat Mar 13 15:54:01 2004
@@ -87,24 +87,29 @@
      */
     public final BERDecoderState getNext( boolean isPrimitive )
     {
+        BERDecoderState next = null ;
+        
         switch( getValue() )
         {
             case( VALUE_VAL ):
-                return TAG ;
+                next = TAG ;
+                break ;
             case( TAG_VAL ):
-                return LENGTH ;
+                next = LENGTH ;
+                break ;
             case( LENGTH_VAL ):
                 if ( isPrimitive )
                 {
-                    return VALUE ;
+                    next = VALUE ;
                 }
                 else
                 {    
-                    return TAG ;
+                    next = TAG ;
                 }
-            default:
-                throw new IllegalStateException() ;
+                break ;
         }
+        
+        return next ;
     }
     
 
@@ -121,24 +126,29 @@
      */
     public final boolean isEndState( boolean isPrimitive )
     {
+        boolean isEndState = false ;
+        
         switch( getValue() )
         {
             case( VALUE_VAL ):
-                return true ;
+                isEndState = true ;
+                break ;
             case( TAG_VAL ):
-                return false ;
+                isEndState = false ;
+                break ;
             case( LENGTH_VAL ):
                 if ( isPrimitive )
                 {
-                    return false ;
+                    isEndState = false ;
                 }
                 else
                 {    
-                    return true ;
+                    isEndState = true ;
                 }
-            default:
-                throw new IllegalStateException() ;
+                break ;
         }
+        
+        return isEndState ;
     }
     
     

Mime
View raw message