directory-commits mailing list archives

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

Modified:
   incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/TypeClass.java
Log:
made clover and compiler both shut up

Modified: incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/TypeClass.java
==============================================================================
--- incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/TypeClass.java
(original)
+++ incubator/directory/snickers/trunk/ber/src/java/org/apache/snickers/ber/TypeClass.java
Sat Mar 13 15:27:28 2004
@@ -159,20 +159,25 @@
      */
     public static TypeClass getTypeClass( int octet )
     {
+        TypeClass tc = null ;
         int l_value = octet & PRIVATE_VAL ;
         
         switch ( l_value )
         {
             case( UNIVERSAL_VAL ):
-                return UNIVERSAL ;
+                tc = UNIVERSAL ;
+                break ;
             case( APPLICATION_VAL ):
-                return APPLICATION ;
+                tc = APPLICATION ;
+                break ;
             case( CONTEXT_SPECIFIC_VAL ):
-                return CONTEXT_SPECIFIC ;
+                tc = CONTEXT_SPECIFIC ;
+                break ;
             case( PRIVATE_VAL ):
-                return PRIVATE ;
-            default:
-                throw new IllegalStateException( "Should not be here!" ) ;
+                tc = PRIVATE ;
+                break ;
         }
+        
+        return tc ;
     }
 }

Mime
View raw message