directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r944557 - in /directory/shared/trunk: asn1/src/main/java/org/apache/directory/shared/asn1/ber/ asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/ ldap/src/main/java/org/apache/directory/shared/ldap/aci/ ldap/src/main/java/org/apac...
Date Sat, 15 May 2010 04:46:00 GMT
Author: felixk
Date: Sat May 15 04:45:59 2010
New Revision: 944557

URL: http://svn.apache.org/viewvc?rev=944557&view=rev
Log:
>From PMD report "Avoid unnecessary return statements"

Modified:
    directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java
    directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/Value.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/aci/ACIItemChecker.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/AttributeDescAction.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ErrorMessageAction.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/MatchedDNAction.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ServerSASLCredsAction.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/StoreReferenceAction.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/StringTools.java

Modified: directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java
(original)
+++ directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java
Sat May 15 04:45:59 2010
@@ -852,8 +852,6 @@ public class Asn1Decoder implements ITLV
 
             LOG.debug( "<<<==========================================" );
         }
-
-        return;
     }
 
 

Modified: directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/Value.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/Value.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/Value.java
(original)
+++ directory/shared/trunk/asn1/src/main/java/org/apache/directory/shared/asn1/ber/tlv/Value.java
Sat May 15 04:45:59 2010
@@ -652,8 +652,6 @@ public class Value implements Serializab
         {
             throw new EncoderException( I18n.err( I18n.ERR_00004 ) );
         }
-
-        return;
     }
 
     /**
@@ -687,8 +685,6 @@ public class Value implements Serializab
         {
             throw new EncoderException( I18n.err( I18n.ERR_00004 ) );
         }
-
-        return;
     }
 
 
@@ -725,8 +721,6 @@ public class Value implements Serializab
         {
             throw new EncoderException( I18n.err( I18n.ERR_00004 ) );
         }
-
-        return;
     }
 
 
@@ -759,8 +753,6 @@ public class Value implements Serializab
         {
             throw new EncoderException( I18n.err( I18n.ERR_00004 ) );
         }
-
-        return;
     }
 
 
@@ -789,8 +781,6 @@ public class Value implements Serializab
         {
             throw new EncoderException( I18n.err( I18n.ERR_00004 ) );
         }
-
-        return;
     }
 
 
@@ -819,8 +809,6 @@ public class Value implements Serializab
         {
             throw new EncoderException( I18n.err( I18n.ERR_00004 ) );
         }
-
-        return;
     }
 
 
@@ -850,8 +838,6 @@ public class Value implements Serializab
         {
             throw new EncoderException( I18n.err( I18n.ERR_00004 ) );
         }
-
-        return;
     }
 
 
@@ -880,8 +866,6 @@ public class Value implements Serializab
         {
             throw new EncoderException( I18n.err( I18n.ERR_00004 ) );
         }
-
-        return;
     }
 
 
@@ -908,8 +892,6 @@ public class Value implements Serializab
         {
             throw new EncoderException( I18n.err( I18n.ERR_00004 ) );
         }
-
-        return;
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/aci/ACIItemChecker.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/aci/ACIItemChecker.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/aci/ACIItemChecker.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/aci/ACIItemChecker.java
Sat May 15 04:45:59 2010
@@ -102,8 +102,6 @@ public class ACIItemChecker
         {
             throw new ParseException( I18n.err( I18n.ERR_00004, spec, e.getLocalizedMessage()
), e.getColumn() );
         }
-
-        return;
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/AttributeDescAction.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/AttributeDescAction.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/AttributeDescAction.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/AttributeDescAction.java
Sat May 15 04:45:59 2010
@@ -80,7 +80,5 @@ public class AttributeDescAction extends
         {
             log.debug( "Decoded Attribute Description : {}", attributeDescription );
         }
-
-        return;
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ErrorMessageAction.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ErrorMessageAction.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ErrorMessageAction.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ErrorMessageAction.java
Sat May 15 04:45:59 2010
@@ -81,7 +81,5 @@ public class ErrorMessageAction extends 
         {
             log.debug( "The error message is : " + ldapResult.getErrorMessage() );
         }
-
-        return;
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/MatchedDNAction.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/MatchedDNAction.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/MatchedDNAction.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/MatchedDNAction.java
Sat May 15 04:45:59 2010
@@ -117,7 +117,5 @@ public class MatchedDNAction extends Gra
         {
             log.debug( "The matchedDN is " + ldapResult.getMatchedDN() );
         }
-
-        return;
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ServerSASLCredsAction.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ServerSASLCredsAction.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ServerSASLCredsAction.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ServerSASLCredsAction.java
Sat May 15 04:45:59 2010
@@ -80,7 +80,5 @@ public class ServerSASLCredsAction exten
         {
             log.debug( "The SASL credentials value is : {}", StringTools.dumpBytes( bindResponseMessage.getServerSaslCreds()
) );
         }
-
-        return;
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/StoreReferenceAction.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/StoreReferenceAction.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/StoreReferenceAction.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/StoreReferenceAction.java
Sat May 15 04:45:59 2010
@@ -96,7 +96,5 @@ public class StoreReferenceAction extend
 
         // We can have an END transition
         ldapMessageContainer.grammarEndAllowed( true );
-
-        return;
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
Sat May 15 04:45:59 2010
@@ -2085,8 +2085,6 @@ public class Registries implements Schem
         {
             using.put( wrapper, uses );
         }
-
-        return;
     }
 
 
@@ -2122,8 +2120,6 @@ public class Registries implements Schem
         {
             usedBy.put( wrapper, uses );
         }
-
-        return;
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/StringTools.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/StringTools.java?rev=944557&r1=944556&r2=944557&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/StringTools.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/StringTools.java
Sat May 15 04:45:59 2010
@@ -2648,8 +2648,6 @@ public class StringTools
         }
         
         pos.end = pos.start;
-
-        return;
     }
 
 
@@ -2686,8 +2684,6 @@ public class StringTools
         }
         
         pos.end = pos.start;
-
-        return;
     }
 
     



Mime
View raw message