directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1771552 - in /directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras: controls/ad/ controls/ppolicy/ controls/syncrepl/syncDone/ controls/syncrepl/syncInfoValue/ controls/syncrepl/syncState/ control...
Date Sun, 27 Nov 2016 10:16:35 GMT
Author: elecharny
Date: Sun Nov 27 10:16:35 2016
New Revision: 1771552

URL: http://svn.apache.org/viewvc?rev=1771552&view=rev
Log:
Fixed SonarLint warnings

Modified:
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ad/AdDirSyncImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyResponseImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncDone/SyncDoneValueImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncInfoValueImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncRequestValueImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncState/SyncStateValueImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewRequestImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewResponseImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelRequestImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelResponseImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationRequestImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationResponseImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulDisconnect/GracefulDisconnectResponseImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownRequestImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownResponseImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyRequestImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyResponseImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsRequestImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsResponseImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/storedProcedure/StoredProcedureRequestImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIRequestImpl.java
    directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIResponseImpl.java

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ad/AdDirSyncImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ad/AdDirSyncImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ad/AdDirSyncImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ad/AdDirSyncImpl.java
Sun Nov 27 10:16:35 2016
@@ -56,6 +56,7 @@ public class AdDirSyncImpl extends Abstr
     /**
      * {@inheritDoc}
      */
+    @Override
     public int getParentFirst()
     {
         return parentFirst;
@@ -65,6 +66,7 @@ public class AdDirSyncImpl extends Abstr
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setParentFirst( int parentFirst )
     {
         this.parentFirst = parentFirst;
@@ -74,6 +76,7 @@ public class AdDirSyncImpl extends Abstr
     /**
      * {@inheritDoc}
      */
+    @Override
     public AdDirSyncFlag getFlag()
     {
         return flag;
@@ -83,6 +86,7 @@ public class AdDirSyncImpl extends Abstr
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setFlag( AdDirSyncFlag flag )
     {
         this.flag = flag;
@@ -92,6 +96,7 @@ public class AdDirSyncImpl extends Abstr
     /**
      * {@inheritDoc}
      */
+    @Override
     public int getMaxReturnLength()
     {
         return maxReturnLength;
@@ -101,6 +106,7 @@ public class AdDirSyncImpl extends Abstr
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setMaxReturnLength( int maxReturnLength )
     {
         this.maxReturnLength = maxReturnLength;
@@ -110,6 +116,7 @@ public class AdDirSyncImpl extends Abstr
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getCookie()
     {
         return cookie;
@@ -119,6 +126,7 @@ public class AdDirSyncImpl extends Abstr
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setCookie( byte[] cookie )
     {
         if ( cookie != null )

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyImpl.java
Sun Nov 27 10:16:35 2016
@@ -79,6 +79,7 @@ public class PasswordPolicyImpl implemen
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getOid()
     {
         return PasswordPolicy.OID;
@@ -88,6 +89,7 @@ public class PasswordPolicyImpl implemen
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean isCritical()
     {
         return criticality;
@@ -97,6 +99,7 @@ public class PasswordPolicyImpl implemen
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setCritical( boolean isCritical )
     {
         this.criticality = isCritical;
@@ -107,6 +110,7 @@ public class PasswordPolicyImpl implemen
      * 
      * {@inheritDoc}
      */
+    @Override
     public void setResponse( PasswordPolicyResponse response )
     {
         this.response = response;
@@ -116,6 +120,7 @@ public class PasswordPolicyImpl implemen
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean hasResponse()
     {
         return response != null;
@@ -126,6 +131,7 @@ public class PasswordPolicyImpl implemen
      * 
      * {@inheritDoc}
      */
+    @Override
     public PasswordPolicyResponse setResponse( boolean hasResponse )
     {
         PasswordPolicyResponse old = this.response;
@@ -146,6 +152,7 @@ public class PasswordPolicyImpl implemen
     /**
      * {@inheritDoc}
      */
+    @Override
     public PasswordPolicyResponse getResponse()
     {
         return response;
@@ -157,6 +164,7 @@ public class PasswordPolicyImpl implemen
      * 
      * @return A BindResponse String
      */
+    @Override
     public String toString()
     {
         StringBuilder sb = new StringBuilder();

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyResponseImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyResponseImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/ppolicy/PasswordPolicyResponseImpl.java
Sun Nov 27 10:16:35 2016
@@ -41,6 +41,7 @@ public class PasswordPolicyResponseImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public int getTimeBeforeExpiration()
     {
         return timeBeforeExpiration;
@@ -50,6 +51,7 @@ public class PasswordPolicyResponseImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setTimeBeforeExpiration( int timeBeforeExpiration )
     {
         this.timeBeforeExpiration = timeBeforeExpiration;
@@ -59,6 +61,7 @@ public class PasswordPolicyResponseImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public int getGraceAuthNRemaining()
     {
         return graceAuthNRemaining;
@@ -68,6 +71,7 @@ public class PasswordPolicyResponseImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setGraceAuthNRemaining( int graceAuthNRemaining )
     {
         this.graceAuthNRemaining = graceAuthNRemaining;
@@ -77,6 +81,7 @@ public class PasswordPolicyResponseImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public PasswordPolicyErrorEnum getPasswordPolicyError()
     {
         return ppolicyError;
@@ -86,6 +91,7 @@ public class PasswordPolicyResponseImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setPasswordPolicyError( PasswordPolicyErrorEnum ppolicyError )
     {
         this.ppolicyError = ppolicyError;

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncDone/SyncDoneValueImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncDone/SyncDoneValueImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncDone/SyncDoneValueImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncDone/SyncDoneValueImpl.java
Sun Nov 27 10:16:35 2016
@@ -65,6 +65,7 @@ public class SyncDoneValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getCookie()
     {
         return cookie;
@@ -74,6 +75,7 @@ public class SyncDoneValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setCookie( byte[] cookie )
     {
         this.cookie = cookie;
@@ -83,6 +85,7 @@ public class SyncDoneValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean isRefreshDeletes()
     {
         return refreshDeletes;
@@ -92,6 +95,7 @@ public class SyncDoneValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setRefreshDeletes( boolean refreshDeletes )
     {
         this.refreshDeletes = refreshDeletes;

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncInfoValueImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncInfoValueImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncInfoValueImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncInfoValueImpl.java
Sun Nov 27 10:16:35 2016
@@ -76,6 +76,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public SynchronizationInfoEnum getType()
     {
         return type;
@@ -85,6 +86,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setType( SynchronizationInfoEnum type )
     {
         this.type = type;
@@ -94,6 +96,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getCookie()
     {
         return cookie;
@@ -103,6 +106,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setCookie( byte[] cookie )
     {
         this.cookie = cookie;
@@ -112,6 +116,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean isRefreshDone()
     {
         return refreshDone;
@@ -121,6 +126,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setRefreshDone( boolean refreshDone )
     {
         this.refreshDone = refreshDone;
@@ -130,6 +136,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean isRefreshDeletes()
     {
         return refreshDeletes;
@@ -139,6 +146,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setRefreshDeletes( boolean refreshDeletes )
     {
         this.refreshDeletes = refreshDeletes;
@@ -148,6 +156,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public List<byte[]> getSyncUUIDs()
     {
         return syncUUIDs;
@@ -157,6 +166,7 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setSyncUUIDs( List<byte[]> syncUUIDs )
     {
         this.syncUUIDs = syncUUIDs;
@@ -166,11 +176,12 @@ public class SyncInfoValueImpl extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     public void addSyncUUID( byte[] syncUUID )
     {
         if ( syncUUIDs == null )
         {
-            syncUUIDs = new ArrayList<byte[]>();
+            syncUUIDs = new ArrayList<>();
         }
 
         syncUUIDs.add( syncUUID );
@@ -333,7 +344,7 @@ public class SyncInfoValueImpl extends A
                 sb.append( "            refreshDeletes : " ).append( isRefreshDeletes() ).append(
'\n' );
                 sb.append( "            syncUUIDS : " );
 
-                if ( getSyncUUIDs().size() != 0 )
+                if ( !getSyncUUIDs().isEmpty() )
                 {
                     boolean isFirst = true;
 

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncRequestValueImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncRequestValueImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncRequestValueImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncInfoValue/SyncRequestValueImpl.java
Sun Nov 27 10:16:35 2016
@@ -91,6 +91,7 @@ public class SyncRequestValueImpl extend
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getCookie()
     {
         return this.cookie;
@@ -100,6 +101,7 @@ public class SyncRequestValueImpl extend
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setCookie( byte[] cookie )
     {
         this.cookie = cookie;
@@ -109,6 +111,7 @@ public class SyncRequestValueImpl extend
     /**
      * {@inheritDoc}
      */
+    @Override
     public SynchronizationModeEnum getMode()
     {
         return mode;
@@ -118,6 +121,7 @@ public class SyncRequestValueImpl extend
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setMode( SynchronizationModeEnum mode )
     {
         this.mode = mode;
@@ -127,6 +131,7 @@ public class SyncRequestValueImpl extend
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean isReloadHint()
     {
         return isReloadHint;
@@ -136,6 +141,7 @@ public class SyncRequestValueImpl extend
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setReloadHint( boolean reloadHint )
     {
         this.isReloadHint = reloadHint;

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncState/SyncStateValueImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncState/SyncStateValueImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncState/SyncStateValueImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl/syncState/SyncStateValueImpl.java
Sun Nov 27 10:16:35 2016
@@ -68,6 +68,7 @@ public class SyncStateValueImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getCookie()
     {
         return cookie;
@@ -77,6 +78,7 @@ public class SyncStateValueImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setCookie( byte[] cookie )
     {
         this.cookie = cookie;
@@ -86,6 +88,7 @@ public class SyncStateValueImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public SyncStateTypeEnum getSyncStateType()
     {
         return type;
@@ -95,6 +98,7 @@ public class SyncStateValueImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setSyncStateType( SyncStateTypeEnum syncStateType )
     {
         this.type = syncStateType;
@@ -104,6 +108,7 @@ public class SyncStateValueImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getEntryUUID()
     {
         return entryUuid;
@@ -113,6 +118,7 @@ public class SyncStateValueImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setEntryUUID( byte[] entryUUID )
     {
         this.entryUuid = entryUUID;

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewRequestImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewRequestImpl.java
Sun Nov 27 10:16:35 2016
@@ -262,9 +262,10 @@ public class VirtualListViewRequestImpl
     /**
      * Return a String representing this VirtualListViewRequestImpl.
      */
+    @Override
     public String toString()
     {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
 
         sb.append( "    Virtual List View Request Control\n" );
         sb.append( "        oid : " ).append( getOid() ).append( '\n' );

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewResponseImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewResponseImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/controls/vlv/VirtualListViewResponseImpl.java
Sun Nov 27 10:16:35 2016
@@ -168,9 +168,10 @@ public class VirtualListViewResponseImpl
     /**
      * Return a String representing this VirtualListViewResponseImpl.
      */
+    @Override
     public String toString()
     {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
 
         sb.append( "    Virtual List View Response Control\n" );
         sb.append( "        oid : " ).append( getOid() ).append( '\n' );

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelRequestImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelRequestImpl.java
Sun Nov 27 10:16:35 2016
@@ -65,18 +65,21 @@ public class CancelRequestImpl extends A
     }
 
 
+    @Override
     public int getCancelId()
     {
         return cancelId;
     }
 
 
+    @Override
     public void setCancelId( int cancelId )
     {
         this.cancelId = cancelId;
     }
 
 
+    @Override
     public CancelResponse getResultResponse()
     {
         if ( getResponse() == null )

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelResponseImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelResponseImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/cancel/CancelResponseImpl.java
Sun Nov 27 10:16:35 2016
@@ -83,6 +83,7 @@ public class CancelResponseImpl extends
      * 
      * @return the OID of the extended response type.
      */
+    @Override
     public String getResponseName()
     {
         return "";
@@ -114,6 +115,6 @@ public class CancelResponseImpl extends
             return true;
         }
 
-        return ( obj instanceof CancelResponseImpl );
+        return obj instanceof CancelResponseImpl;
     }
 }

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationRequestImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationRequestImpl.java
Sun Nov 27 10:16:35 2016
@@ -79,6 +79,7 @@ public class CertGenerationRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getTargetDN()
     {
         return targetDN;
@@ -88,6 +89,7 @@ public class CertGenerationRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setTargetDN( String targetDN )
     {
         this.targetDN = targetDN;
@@ -97,6 +99,7 @@ public class CertGenerationRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getIssuerDN()
     {
         return issuerDN;
@@ -106,6 +109,7 @@ public class CertGenerationRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setIssuerDN( String issuerDN )
     {
         this.issuerDN = issuerDN;
@@ -115,6 +119,7 @@ public class CertGenerationRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getSubjectDN()
     {
         return subjectDN;
@@ -124,6 +129,7 @@ public class CertGenerationRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setSubjectDN( String subjectDN )
     {
         this.subjectDN = subjectDN;
@@ -133,6 +139,7 @@ public class CertGenerationRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getKeyAlgorithm()
     {
         return keyAlgorithm;
@@ -142,6 +149,7 @@ public class CertGenerationRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setKeyAlgorithm( String keyAlgorithm )
     {
         this.keyAlgorithm = keyAlgorithm;

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationResponseImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationResponseImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/certGeneration/CertGenerationResponseImpl.java
Sun Nov 27 10:16:35 2016
@@ -76,6 +76,7 @@ public class CertGenerationResponseImpl
      * 
      * @return the OID of the extended response type.
      */
+    @Override
     public String getResponseName()
     {
         return EXTENSION_OID;
@@ -89,6 +90,7 @@ public class CertGenerationResponseImpl
      * @param oid
      *            the OID of the extended response type.
      */
+    @Override
     public void setResponseName( String oid )
     {
         throw new UnsupportedOperationException( I18n.err( I18n.ERR_04168, EXTENSION_OID
) );
@@ -120,6 +122,6 @@ public class CertGenerationResponseImpl
             return true;
         }
 
-        return ( obj instanceof CertGenerationResponseImpl );
+        return obj instanceof CertGenerationResponseImpl;
     }
 }

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulDisconnect/GracefulDisconnectResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulDisconnect/GracefulDisconnectResponseImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulDisconnect/GracefulDisconnectResponseImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulDisconnect/GracefulDisconnectResponseImpl.java
Sun Nov 27 10:16:35 2016
@@ -70,7 +70,7 @@ public class GracefulDisconnectResponseI
         this.timeOffline = timeOffline;
         this.delay = delay;
 
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append( "The server will disconnect and will be unavailable for " ).append( timeOffline
);
         buf.append( " minutes in " ).append( delay ).append( " seconds." );
 
@@ -86,6 +86,7 @@ public class GracefulDisconnectResponseI
      * 
      * @return the OID of the extended response type.
      */
+    @Override
     public String getResponseName()
     {
         return EXTENSION_OID;
@@ -98,6 +99,7 @@ public class GracefulDisconnectResponseI
      * 
      * @param oid the OID of the extended response type.
      */
+    @Override
     public void setResponseName( String oid )
     {
         throw new UnsupportedOperationException( I18n.err( I18n.ERR_04168, EXTENSION_OID
) );
@@ -110,6 +112,7 @@ public class GracefulDisconnectResponseI
     /**
      * {@inheritDoc}
      */
+    @Override
     public int getDelay()
     {
         return delay;
@@ -119,6 +122,7 @@ public class GracefulDisconnectResponseI
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setDelay( int delay )
     {
         this.delay = delay;
@@ -128,6 +132,7 @@ public class GracefulDisconnectResponseI
     /**
      * {@inheritDoc}
      */
+    @Override
     public int getTimeOffline()
     {
         return timeOffline;
@@ -137,12 +142,14 @@ public class GracefulDisconnectResponseI
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setTimeOffline( int timeOffline )
     {
         this.timeOffline = timeOffline;
     }
 
 
+    @Override
     public Referral getReplicatedContexts()
     {
         return replicatedContexts;
@@ -153,6 +160,7 @@ public class GracefulDisconnectResponseI
     /**
      * {@inheritDoc}
      */
+    @Override
     public void addReplicatedContexts( String replicatedContext )
     {
         replicatedContexts.addLdapUrl( replicatedContext );

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownRequestImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownRequestImpl.java
Sun Nov 27 10:16:35 2016
@@ -84,6 +84,7 @@ public class GracefulShutdownRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public int getDelay()
     {
         return delay;
@@ -93,6 +94,7 @@ public class GracefulShutdownRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setDelay( int delay )
     {
         this.delay = delay;
@@ -102,6 +104,7 @@ public class GracefulShutdownRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public int getTimeOffline()
     {
         return timeOffline;
@@ -111,6 +114,7 @@ public class GracefulShutdownRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setTimeOffline( int timeOffline )
     {
         this.timeOffline = timeOffline;

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownResponseImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownResponseImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/gracefulShutdown/GracefulShutdownResponseImpl.java
Sun Nov 27 10:16:35 2016
@@ -47,11 +47,7 @@ public class GracefulShutdownResponseImp
         switch ( rcode )
         {
             case SUCCESS:
-                break;
-
             case OPERATIONS_ERROR:
-                break;
-
             case INSUFFICIENT_ACCESS_RIGHTS:
                 break;
 
@@ -99,6 +95,7 @@ public class GracefulShutdownResponseImp
      * 
      * @return the OID of the extended response type.
      */
+    @Override
     public String getResponseName()
     {
         return EXTENSION_OID;
@@ -112,6 +109,7 @@ public class GracefulShutdownResponseImp
      * @param oid
      *            the OID of the extended response type.
      */
+    @Override
     public void setResponseName( String oid )
     {
         throw new UnsupportedOperationException( I18n.err( I18n.ERR_04168, EXTENSION_OID
) );
@@ -143,6 +141,6 @@ public class GracefulShutdownResponseImp
             return true;
         }
 
-        return ( obj instanceof GracefulShutdownResponseImpl );
+        return obj instanceof GracefulShutdownResponseImpl;
     }
 }

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyRequestImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyRequestImpl.java
Sun Nov 27 10:16:35 2016
@@ -72,6 +72,7 @@ public class PasswordModifyRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getUserIdentity()
     {
         return userIdentity;
@@ -81,6 +82,7 @@ public class PasswordModifyRequestImpl e
     /**
      * @param userIdentity the userIdentity to set
      */
+    @Override
     public void setUserIdentity( byte[] userIdentity )
     {
         this.userIdentity = userIdentity;
@@ -90,6 +92,7 @@ public class PasswordModifyRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getOldPassword()
     {
         return oldPassword;
@@ -99,6 +102,7 @@ public class PasswordModifyRequestImpl e
     /**
      * @param oldPassword the oldPassword to set
      */
+    @Override
     public void setOldPassword( byte[] oldPassword )
     {
         this.oldPassword = oldPassword;
@@ -108,6 +112,7 @@ public class PasswordModifyRequestImpl e
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getNewPassword()
     {
         return newPassword;
@@ -117,6 +122,7 @@ public class PasswordModifyRequestImpl e
     /**
      * @param newPassword the newPassword to set
      */
+    @Override
     public void setNewPassword( byte[] newPassword )
     {
         this.newPassword = newPassword;
@@ -141,6 +147,7 @@ public class PasswordModifyRequestImpl e
     /**
      * @see Object#toString()
      */
+    @Override
     public String toString()
     {
         StringBuilder sb = new StringBuilder();

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyResponseImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyResponseImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/pwdModify/PasswordModifyResponseImpl.java
Sun Nov 27 10:16:35 2016
@@ -98,6 +98,7 @@ public class PasswordModifyResponseImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getGenPassword()
     {
         return genPassword;
@@ -117,6 +118,7 @@ public class PasswordModifyResponseImpl
     /**
      * @see Object#toString()
      */
+    @Override
     public String toString()
     {
         StringBuilder sb = new StringBuilder();

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsRequestImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsRequestImpl.java
Sun Nov 27 10:16:35 2016
@@ -69,6 +69,7 @@ public class StartTlsRequestImpl extends
     /**
      * @see Object#toString()
      */
+    @Override
     public String toString()
     {
         return "StartTLS extended request";

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsResponseImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsResponseImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/startTls/StartTlsResponseImpl.java
Sun Nov 27 10:16:35 2016
@@ -88,6 +88,7 @@ public class StartTlsResponseImpl extend
     /**
      * @see Object#toString()
      */
+    @Override
     public String toString()
     {
         StringBuilder sb = new StringBuilder();

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/storedProcedure/StoredProcedureRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/storedProcedure/StoredProcedureRequestImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/storedProcedure/StoredProcedureRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/storedProcedure/StoredProcedureRequestImpl.java
Sun Nov 27 10:16:35 2016
@@ -28,7 +28,6 @@ import org.apache.directory.api.asn1.ber
 import org.apache.directory.api.asn1.ber.tlv.IntegerDecoderException;
 import org.apache.directory.api.i18n.I18n;
 import org.apache.directory.api.ldap.model.message.AbstractExtendedRequest;
-import org.apache.directory.api.util.StringConstants;
 import org.apache.directory.api.util.Strings;
 import org.apache.directory.api.util.exception.NotImplementedException;
 
@@ -42,9 +41,9 @@ public class StoredProcedureRequestImpl
 {
     private String language = "Java";
 
-    private byte[] procedure = StringConstants.EMPTY_BYTES;
+    private byte[] procedure = Strings.EMPTY_BYTES;
 
-    private List<StoredProcedureParameter> parameters = new ArrayList<StoredProcedureParameter>();
+    private List<StoredProcedureParameter> parameters = new ArrayList<>();
 
 
     /**
@@ -91,6 +90,7 @@ public class StoredProcedureRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getLanguage()
     {
         return language;
@@ -100,12 +100,14 @@ public class StoredProcedureRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setLanguage( String language )
     {
         this.language = language;
     }
 
 
+    @Override
     public byte[] getProcedure()
     {
         if ( procedure == null )
@@ -119,6 +121,7 @@ public class StoredProcedureRequestImpl
     }
 
 
+    @Override
     public void setProcedure( byte[] procedure )
     {
         if ( procedure != null )
@@ -133,12 +136,14 @@ public class StoredProcedureRequestImpl
     }
 
 
+    @Override
     public List<StoredProcedureParameter> getParameters()
     {
         return parameters;
     }
 
 
+    @Override
     public void addParameter( StoredProcedureParameter parameter )
     {
         parameters.add( parameter );
@@ -157,6 +162,7 @@ public class StoredProcedureRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getProcedureSpecification()
     {
         return Strings.utf8ToString( procedure );
@@ -166,6 +172,7 @@ public class StoredProcedureRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public int size()
     {
         return parameters.size();
@@ -175,9 +182,10 @@ public class StoredProcedureRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public Object getParameterType( int index )
     {
-        if ( !language.equals( "java" ) )
+        if ( !"java".equals( language ) )
         {
             return parameters.get( index ).getType();
         }
@@ -191,7 +199,7 @@ public class StoredProcedureRequestImpl
      */
     public Object getParameterTypeString( int index )
     {
-        if ( !language.equals( "java" ) )
+        if ( !"java".equals( language ) )
         {
             Object obj = parameters.get( index ).getType();
             
@@ -208,6 +216,7 @@ public class StoredProcedureRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public Class<?> getJavaParameterType( int index )
     {
         throw new NotImplementedException( I18n.err( I18n.ERR_04175 ) );
@@ -217,9 +226,10 @@ public class StoredProcedureRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public Object getParameterValue( int index )
     {
-        if ( !language.equals( "java" ) )
+        if ( !"java".equals( language ) )
         {
             return parameters.get( index ).getValue();
         }
@@ -233,7 +243,7 @@ public class StoredProcedureRequestImpl
      */
     public Object getParameterValueString( int index )
     {
-        if ( !language.equals( "java" ) )
+        if ( !"java".equals( language ) )
         {
             Object obj = parameters.get( index ).getValue();
             
@@ -242,7 +252,7 @@ public class StoredProcedureRequestImpl
                 String str = Strings.utf8ToString( ( byte[] ) obj );
                 String type = ( String ) getParameterTypeString( index );
 
-                if ( type.equals( "int" ) )
+                if ( "int".equals( type ) )
                 {
                     try
                     {
@@ -268,6 +278,7 @@ public class StoredProcedureRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public Object getJavaParameterValue( int index )
     {
         throw new NotImplementedException( I18n.err( I18n.ERR_04176 ) );
@@ -277,6 +288,7 @@ public class StoredProcedureRequestImpl
     /**
      * {@inheritDoc}
      */
+    @Override
     public void addParameter( Object type, Object value )
     {
         /**

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIRequestImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIRequestImpl.java
Sun Nov 27 10:16:35 2016
@@ -69,6 +69,7 @@ public class WhoAmIRequestImpl extends A
     /**
      * @see Object#toString()
      */
+    @Override
     public String toString()
     {
         return "Who Am I extended request";

Modified: directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIResponseImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIResponseImpl.java?rev=1771552&r1=1771551&r2=1771552&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIResponseImpl.java
(original)
+++ directory/shared/trunk/ldap/extras/codec-api/src/main/java/org/apache/directory/api/ldap/extras/extended/whoAmI/WhoAmIResponseImpl.java
Sun Nov 27 10:16:35 2016
@@ -104,6 +104,7 @@ public class WhoAmIResponseImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getAuthzId()
     {
         return authzId;
@@ -113,6 +114,7 @@ public class WhoAmIResponseImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public void setAuthzId( byte[] authzId )
     {
         this.authzId = authzId;
@@ -122,22 +124,17 @@ public class WhoAmIResponseImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean isDnAuthzId()
     {
-        if ( dn != null )
-        {
-            return true;
-        }
-        else
-        {
-            return false;
-        }
+        return dn != null;
     }
 
 
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean isUserAuthzId()
     {
         return userId != null;
@@ -147,6 +144,7 @@ public class WhoAmIResponseImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getAuthzIdString()
     {
         return Strings.utf8ToString( authzId );
@@ -156,6 +154,7 @@ public class WhoAmIResponseImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getUserId()
     {
         return userId;
@@ -176,6 +175,7 @@ public class WhoAmIResponseImpl extends
     /**
      * {@inheritDoc}
      */
+    @Override
     public Dn getDn()
     {
         return dn;
@@ -196,6 +196,7 @@ public class WhoAmIResponseImpl extends
     /**
      * @see Object#toString()
      */
+    @Override
     public String toString()
     {
         StringBuilder sb = new StringBuilder();




Mime
View raw message