directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1408802 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/message/AliasDerefMode.java
Date Tue, 13 Nov 2012 15:54:53 GMT
Author: pamarcelot
Date: Tue Nov 13 15:54:53 2012
New Revision: 1408802

URL: http://svn.apache.org/viewvc?rev=1408802&view=rev
Log:
Applied formatter.

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/message/AliasDerefMode.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/message/AliasDerefMode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/message/AliasDerefMode.java?rev=1408802&r1=1408801&r2=1408802&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/message/AliasDerefMode.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/message/AliasDerefMode.java
Tue Nov 13 15:54:53 2012
@@ -236,24 +236,27 @@ public enum AliasDerefMode
      */
     public static AliasDerefMode getDerefMode( String val )
     {
-        if ( val.equals( NEVER_DEREF_ALIASES.jndiValue ) )
+        if ( val != null )
         {
-            return NEVER_DEREF_ALIASES;
-        }
-
-        if ( val.equals( DEREF_IN_SEARCHING.jndiValue ) )
-        {
-            return DEREF_IN_SEARCHING;
-        }
-
-        if ( val.equals( DEREF_FINDING_BASE_OBJ.jndiValue ) )
-        {
-            return DEREF_FINDING_BASE_OBJ;
-        }
-
-        if ( val.equals( DEREF_ALWAYS.jndiValue ) )
-        {
-            return DEREF_ALWAYS;
+            if ( val.equals( NEVER_DEREF_ALIASES.jndiValue ) )
+            {
+                return NEVER_DEREF_ALIASES;
+            }
+
+            if ( val.equals( DEREF_IN_SEARCHING.jndiValue ) )
+            {
+                return DEREF_IN_SEARCHING;
+            }
+
+            if ( val.equals( DEREF_FINDING_BASE_OBJ.jndiValue ) )
+            {
+                return DEREF_FINDING_BASE_OBJ;
+            }
+
+            if ( val.equals( DEREF_ALWAYS.jndiValue ) )
+            {
+                return DEREF_ALWAYS;
+            }
         }
 
         throw new IllegalArgumentException( "Unknown derefmode " + val );



Mime
View raw message