directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1151375 - /directory/shared/trunk/ldap/codec/standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapApiService.java
Date Wed, 27 Jul 2011 08:17:20 GMT
Author: elecharny
Date: Wed Jul 27 08:17:19 2011
New Revision: 1151375

URL: http://svn.apache.org/viewvc?rev=1151375&view=rev
Log:
Slight refactoring

Modified:
    directory/shared/trunk/ldap/codec/standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapApiService.java

Modified: directory/shared/trunk/ldap/codec/standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapApiService.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapApiService.java?rev=1151375&r1=1151374&r2=1151375&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapApiService.java
(original)
+++ directory/shared/trunk/ldap/codec/standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapApiService.java
Wed Jul 27 08:17:19 2011
@@ -176,14 +176,14 @@ public class StandaloneLdapApiService im
         {
              try
              {
-             @SuppressWarnings("unchecked")
-             Class<? extends ProtocolCodecFactory> clazz = ( Class<? extends ProtocolCodecFactory>
)
-             Class.forName( DEFAULT_PROTOCOL_CODEC_FACTORY );
-             protocolCodecFactory = clazz.newInstance();
+                 @SuppressWarnings("unchecked")
+                 Class<? extends ProtocolCodecFactory> clazz = ( Class<? extends
ProtocolCodecFactory> )
+                 Class.forName( DEFAULT_PROTOCOL_CODEC_FACTORY );
+                 protocolCodecFactory = clazz.newInstance();
              }
              catch( Exception cause )
              {
-             throw new RuntimeException( "Failed to load default codec factory.", cause );
+                 throw new RuntimeException( "Failed to load default codec factory.", cause
);
              }
         }
     }



Mime
View raw message