directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1074256 - in /directory/shared/trunk: ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/ ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/ ldap-model/src/main/java/org/apache/d...
Date Thu, 24 Feb 2011 19:00:05 GMT
Author: elecharny
Date: Thu Feb 24 19:00:04 2011
New Revision: 1074256

URL: http://svn.apache.org/viewvc?rev=1074256&view=rev
Log:
Removed useless usage of the transient keyword

Modified:
    directory/shared/trunk/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/ResponseCarryingException.java
    directory/shared/trunk/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/PasswordPolicyDecorator.java
    directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/csn/Csn.java
    directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/AbstractValue.java
    directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java
    directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java
    directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
    directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Rdn.java
    directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/normalizers/RegexNormalizer.java
    directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultAttributeTypeRegistry.java

Modified: directory/shared/trunk/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/ResponseCarryingException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/ResponseCarryingException.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/ResponseCarryingException.java
(original)
+++ directory/shared/trunk/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/ResponseCarryingException.java
Thu Feb 24 19:00:04 2011
@@ -44,7 +44,7 @@ public class ResponseCarryingException e
     private static final long serialVersionUID = 1L;
 
     /** The response with the error cause */
-    private transient Message response;
+    private Message response;
     
     /**
      * Creates a DecoderException

Modified: directory/shared/trunk/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/PasswordPolicyDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/PasswordPolicyDecorator.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/PasswordPolicyDecorator.java
(original)
+++ directory/shared/trunk/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/PasswordPolicyDecorator.java
Thu Feb 24 19:00:04 2011
@@ -33,8 +33,8 @@ import org.apache.directory.shared.i18n.
 import org.apache.directory.shared.ldap.codec.api.ControlDecorator;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.extras.controls.PasswordPolicy;
-import org.apache.directory.shared.ldap.extras.controls.PasswordPolicyResponse;
 import org.apache.directory.shared.ldap.extras.controls.PasswordPolicyImpl;
+import org.apache.directory.shared.ldap.extras.controls.PasswordPolicyResponse;
 
 
 /**
@@ -48,11 +48,11 @@ public class PasswordPolicyDecorator ext
     private static final Asn1Decoder decoder = new Asn1Decoder();
     
     // Storage for computed lengths
-    private transient int valueLength = 0;
-    private transient int ppolicySeqLength = 0;
-    private transient int warningLength = 0;
-    private transient int timeBeforeExpirationTagLength;
-    private transient int graceAuthNsRemainingTagLength;
+    private int valueLength = 0;
+    private int ppolicySeqLength = 0;
+    private int warningLength = 0;
+    private int timeBeforeExpirationTagLength;
+    private int graceAuthNsRemainingTagLength;
     
     
     public PasswordPolicyDecorator( LdapCodecService codec )

Modified: directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/csn/Csn.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/csn/Csn.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/csn/Csn.java
(original)
+++ directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/csn/Csn.java
Thu Feb 24 19:00:04 2011
@@ -72,10 +72,10 @@ public class Csn implements Comparable<C
     private final int changeCount;  
 
     /** Stores the String representation of the CSN */
-    private transient String csnStr;
+    private String csnStr;
 
     /** Stores the byte array representation of the CSN */
-    private transient byte[] bytes;
+    private byte[] bytes;
 
     /** The Timestamp syntax. The last 'z' is _not_ the Time Zone */
     private static final SimpleDateFormat SDF = new SimpleDateFormat( "yyyyMMddHHmmss" );

Modified: directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/AbstractValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/AbstractValue.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/AbstractValue.java
(original)
+++ directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/AbstractValue.java
Thu Feb 24 19:00:04 2011
@@ -19,9 +19,8 @@
  */
 package org.apache.directory.shared.ldap.model.entry;
 
-import org.apache.directory.shared.ldap.model.exception.LdapException;
-
 import org.apache.directory.shared.i18n.I18n;
+import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.schema.AttributeType;
 import org.apache.directory.shared.ldap.model.schema.LdapComparator;
 import org.apache.directory.shared.ldap.model.schema.MatchingRule;
@@ -42,7 +41,7 @@ public abstract class AbstractValue<T> i
     private static final Logger LOG = LoggerFactory.getLogger( AbstractValue.class );
 
     /** reference to the attributeType zssociated with the value */
-    protected transient AttributeType attributeType;
+    protected AttributeType attributeType;
 
     /** the wrapped binary value */
     protected T wrappedValue;
@@ -57,7 +56,7 @@ public abstract class AbstractValue<T> i
     protected Boolean valid;
 
     /** A flag set if the normalized data is different from the wrapped data */
-    protected transient boolean same;
+    protected boolean same;
     
     /** The computed hashcode. We don't want to compute it each time the hashcode() method
is called */
     protected volatile int h;

Modified: directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java
(original)
+++ directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultEntry.java
Thu Feb 24 19:00:04 2011
@@ -70,7 +70,7 @@ public class DefaultEntry implements Ent
     private Map<String, EntryAttribute> attributes = new HashMap<String, EntryAttribute>();
 
     /** A speedup to get the ObjectClass attribute */
-    private static transient AttributeType objectClassAttributeType;
+    private static AttributeType objectClassAttributeType;
 
     /** The SchemaManager */
     private SchemaManager schemaManager;
@@ -79,7 +79,7 @@ public class DefaultEntry implements Ent
     private volatile int h;
 
     /** A mutex to manage synchronization*/
-    private static final transient Object MUTEX = new Object();
+    private static final Object MUTEX = new Object();
 
 
     //-------------------------------------------------------------------------

Modified: directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java
(original)
+++ directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java
Thu Feb 24 19:00:04 2011
@@ -74,7 +74,7 @@ public final class Ava implements Extern
     private String normType;
     
     /** The attributeType if the Ava is schemaAware */
-    private transient AttributeType attributeType;
+    private AttributeType attributeType;
 
     /** The user provided Name type */
     private String upType;
@@ -89,7 +89,7 @@ public final class Ava implements Extern
     private String upName;
 
     /** the schema manager */
-    private transient SchemaManager schemaManager;
+    private SchemaManager schemaManager;
 
     /**
      * Constructs an empty Ava

Modified: directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
(original)
+++ directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
Thu Feb 24 19:00:04 2011
@@ -110,7 +110,7 @@ public final class Dn implements Iterabl
     public static final Dn ROOT_DSE = new Dn();
 
     /** the schema manager */
-    private transient SchemaManager schemaManager;
+    private SchemaManager schemaManager;
 
     /**
      * An iterator over RDNs

Modified: directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Rdn.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Rdn.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Rdn.java
(original)
+++ directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Rdn.java
Thu Feb 24 19:00:04 2011
@@ -187,7 +187,7 @@ public final class Rdn implements Clonea
     private AtomicBoolean normalized = new AtomicBoolean();
 
     /** the schema manager */
-    private transient SchemaManager schemaManager;
+    private SchemaManager schemaManager;
 
 
     /**

Modified: directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/normalizers/RegexNormalizer.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/normalizers/RegexNormalizer.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/normalizers/RegexNormalizer.java
(original)
+++ directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/normalizers/RegexNormalizer.java
Thu Feb 24 19:00:04 2011
@@ -37,10 +37,10 @@ import org.apache.directory.shared.ldap.
 public class RegexNormalizer extends Normalizer
 {
     /** the perl 5 regex engine */
-    private final transient Pattern[] regexes;
+    private final Pattern[] regexes;
 
     /** the set of regular expressions used to transform values */
-    private final transient Matcher[] matchers;
+    private final Matcher[] matchers;
 
 
     /**

Modified: directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultAttributeTypeRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultAttributeTypeRegistry.java?rev=1074256&r1=1074255&r2=1074256&view=diff
==============================================================================
--- directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultAttributeTypeRegistry.java
(original)
+++ directory/shared/trunk/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultAttributeTypeRegistry.java
Thu Feb 24 19:00:04 2011
@@ -50,7 +50,7 @@ public class DefaultAttributeTypeRegistr
     private static final Logger LOG = LoggerFactory.getLogger( DefaultAttributeTypeRegistry.class
);
 
     /** cached Oid/normalizer mapping */
-    private transient Map<String, OidNormalizer> oidNormalizerMap;
+    private Map<String, OidNormalizer> oidNormalizerMap;
 
     /** maps OIDs to a Set of descendants for that OID */
     private Map<String, Set<AttributeType>> oidToDescendantSet;



Mime
View raw message