You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2011/07/27 10:17:20 UTC
svn commit: r1151375 -
/directory/shared/trunk/ldap/codec/standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapApiService.java
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 );
}
}
}