You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by fe...@apache.org on 2010/05/15 10:19:03 UTC

svn commit: r944593 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java

Author: felixk
Date: Sat May 15 08:19:02 2010
New Revision: 944593

URL: http://svn.apache.org/viewvc?rev=944593&view=rev
Log:
>From PMD report "Avoid empty catch blocks"

SuppressWarnings where intended to avoid false positives

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java?rev=944593&r1=944592&r2=944593&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java (original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java Sat May 15 08:19:02 2010
@@ -491,6 +491,8 @@ public class LdapCoreSessionConnection i
     /**
      * {@inheritDoc}
      */
+    // This will suppress PMD.EmptyCatchBlock warnings in this method
+    @SuppressWarnings("PMD.EmptyCatchBlock")
     public SearchResponse lookup( String dn, String... attributes ) throws LdapException
     {
         SearchResultEntry resp = null;
@@ -513,6 +515,8 @@ public class LdapCoreSessionConnection i
     /**
      * {@inheritDoc}
      */
+    // This will suppress PMD.EmptyCatchBlock warnings in this method
+    @SuppressWarnings("PMD.EmptyCatchBlock")
     public SearchResponse lookup( String dn ) throws LdapException
     {
         SearchResultEntry resp = null;
@@ -740,6 +744,8 @@ public class LdapCoreSessionConnection i
     /**
      * {@inheritDoc}
      */
+    // This will suppress PMD.EmptyCatchBlock warnings in this method
+    @SuppressWarnings("PMD.EmptyCatchBlock")
     public Cursor<SearchResponse> search( SearchRequest searchRequest ) throws LdapException
     {
         try
@@ -884,6 +890,8 @@ public class LdapCoreSessionConnection i
     /**
      * {@inheritDoc}
      */
+    // This will suppress PMD.EmptyCatchBlock warnings in this method
+    @SuppressWarnings("PMD.EmptyCatchBlock")
     public BindResponse bind() throws LdapException, IOException
     {
         try
@@ -901,6 +909,8 @@ public class LdapCoreSessionConnection i
     /**
      * {@inheritDoc}
      */
+    // This will suppress PMD.EmptyCatchBlock warnings in this method
+    @SuppressWarnings("PMD.EmptyCatchBlock")
     public BindResponse bind( BindRequest bindRequest ) throws LdapException, IOException
     {
         try
@@ -926,6 +936,8 @@ public class LdapCoreSessionConnection i
     /**
      * {@inheritDoc}
      */
+    // This will suppress PMD.EmptyCatchBlock warnings in this method
+    @SuppressWarnings("PMD.EmptyCatchBlock")
     public BindResponse bind( DN name, String credentials ) throws LdapException, IOException
     {
         try