directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r178921 - in /directory/shared/ldap/trunk/common: ./ src/java/org/apache/ldap/common/message/spi/ src/java/org/apache/ldap/common/name/ src/java/org/apache/ldap/common/schema/ src/java/org/apache/ldap/common/util/ src/test/org/apache/ldap/common/message/ src/test/org/apache/ldap/common/name/ src/test/org/apache/ldap/common/schema/
Date Sun, 29 May 2005 03:18:47 GMT
Author: akarasulu
Date: Sat May 28 20:18:45 2005
New Revision: 178921

URL: http://svn.apache.org/viewcvs?rev=178921&view=rev
Log:
Added some serial version ids to files that were serializable.  Makes eclipse shut up.

Modified:
    directory/shared/ldap/trunk/common/maven.xml
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderException.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ComparableComparator.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DefaultObjectClass.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/MatchingRuleEnum.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/NoOpNormalizer.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ObjectClassTypeEnum.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/UsageEnum.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableDelegate.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableError.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableException.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableRuntimeException.java
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/ToStringStyle.java
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractMessageTest.java
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractResultResponseTest.java
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/LdapResultImplTest.java
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ModifyRequestImplTest.java
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ReferralImplTest.java
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/schema/SchemaUtilsTest.java

Modified: directory/shared/ldap/trunk/common/maven.xml
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/maven.xml?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/maven.xml (original)
+++ directory/shared/ldap/trunk/common/maven.xml Sat May 28 20:18:45 2005
@@ -1,4 +1,4 @@
-<project default="jar:jar"
+<project 
   xmlns:j="jelly:core"
   xmlns:u="jelly:util"
   xmlns:ant="jelly:ant"

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderException.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderException.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderException.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderException.java
Sat May 28 20:18:45 2005
@@ -39,6 +39,7 @@
  */
 public class ProviderException extends MessageException
 {
+    static final long serialVersionUID = 8915445282948982052L;
     /** The provider this exception resulted on */
     private final Provider m_provider ;
 

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java
Sat May 28 20:18:45 2005
@@ -48,9 +48,9 @@
  * @author $Author: akarasulu $
  * @version $Revision$
  */
-public class LdapName
-    implements Name
+public class LdapName implements Name
 {
+    static final long serialVersionUID = -2504400451346647793L;
     /** A name parser use by LdapName to parse strings into valid names */
     private static DnParser s_parser = null ;
     /** List of name components composing this Name. */

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ComparableComparator.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ComparableComparator.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ComparableComparator.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ComparableComparator.java
Sat May 28 20:18:45 2005
@@ -29,6 +29,8 @@
  */
 public class ComparableComparator implements Comparator, Serializable
 {
+    static final long serialVersionUID = -5295278271807198471L;
+
     /**
      * Compares two objects taking into account that one may be a Comparable.
      * If the first is a comparable then its compareTo operation is called and

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DefaultObjectClass.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DefaultObjectClass.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DefaultObjectClass.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DefaultObjectClass.java
Sat May 28 20:18:45 2005
@@ -32,6 +32,7 @@
  */
 public class DefaultObjectClass extends AbstractSchemaObject implements ObjectClass, Serializable
 {
+    static final long serialVersionUID = -4744807759763092241L;
     /** empty array of ObjectClasses so we do not have to recreate objects */
     private static final ObjectClass[] EMPTY_OCLASS_ARR = new ObjectClass[0];
     /** empty array of AttributeTypes so we do not have to recreate objects */

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/MatchingRuleEnum.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/MatchingRuleEnum.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/MatchingRuleEnum.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/MatchingRuleEnum.java
Sat May 28 20:18:45 2005
@@ -38,6 +38,7 @@
  */
 public class MatchingRuleEnum extends ValuedEnum
 {
+    static final long serialVersionUID = 5500272648097676014L;
     /** value for ordering usage */
     public static final int ORDERING_VAL = 0;
     /** value for equality usage */

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/NoOpNormalizer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/NoOpNormalizer.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/NoOpNormalizer.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/NoOpNormalizer.java
Sat May 28 20:18:45 2005
@@ -28,6 +28,9 @@
  */
 public class NoOpNormalizer implements Normalizer, Serializable
 {
+    static final long serialVersionUID = -7817763636668562489L;
+
+
     /**
      * Creates a do nothing normalizer.
      */

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ObjectClassTypeEnum.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ObjectClassTypeEnum.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ObjectClassTypeEnum.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ObjectClassTypeEnum.java
Sat May 28 20:18:45 2005
@@ -38,6 +38,7 @@
  */
 public class ObjectClassTypeEnum extends ValuedEnum
 {
+    static final long serialVersionUID = -5916723482518366208L;
     /** The enumeration constant value for the abstract objectClasses */
     public static final int ABSTRACT_VAL = 0;
     /** The enumeration constant value for the auxillary objectClasses */

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/UsageEnum.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/UsageEnum.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/UsageEnum.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/schema/UsageEnum.java
Sat May 28 20:18:45 2005
@@ -39,6 +39,7 @@
  */
 public class UsageEnum extends ValuedEnum
 {
+    static final long serialVersionUID = -5838426429165435227L;
     /** value for attributes with userApplications usage */
     public static final int USERAPPLICATIONS_VAL = 0;
     /** value for attributes with directoryOperation usage */

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableDelegate.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableDelegate.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableDelegate.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableDelegate.java
Sat May 28 20:18:45 2005
@@ -42,6 +42,8 @@
  */
 public class NestableDelegate implements Serializable {
 
+    static final long serialVersionUID = -4140246270875850555L;
+
     /**
      * Constructor error message.
      */

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableError.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableError.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableError.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableError.java
Sat May 28 20:18:45 2005
@@ -27,6 +27,8 @@
  */
 public class NestableError extends Error implements Nestable {
 
+    static final long serialVersionUID = -9211839990752243375L;
+
     /**
      * The helper instance which contains much of the code which we
      * delegate to.

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableException.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableException.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableException.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableException.java
Sat May 28 20:18:45 2005
@@ -88,6 +88,8 @@
  */
 public class NestableException extends Exception implements Nestable {
     
+    static final long serialVersionUID = 3485795588970325053L;
+
     /**
      * The helper instance which contains much of the code which we
      * delegate to.

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableRuntimeException.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableRuntimeException.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableRuntimeException.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NestableRuntimeException.java
Sat May 28 20:18:45 2005
@@ -31,6 +31,8 @@
  */
 public class NestableRuntimeException extends RuntimeException implements Nestable {
     
+    static final long serialVersionUID = -833907851887600575L;
+
     /**
      * The helper instance which contains much of the code which we
      * delegate to.

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/ToStringStyle.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/ToStringStyle.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/ToStringStyle.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/ToStringStyle.java
Sat May 28 20:18:45 2005
@@ -49,6 +49,8 @@
  * @version $Id: ToStringStyle.java,v 1.32 2004/07/01 17:40:10 ggregory Exp $
  */
 public abstract class ToStringStyle implements Serializable {
+    
+    static final long serialVersionUID = -3594451267200535036L;
 
     /**
      * The default toString style.
@@ -1963,6 +1965,8 @@
      */
     private static final class DefaultToStringStyle extends ToStringStyle {
 
+        static final long serialVersionUID = -3594451267200535036L;
+
         /**
          * <p>Constructor.</p>
          *
@@ -1994,6 +1998,8 @@
      */
     private static final class NoFieldNameToStringStyle extends ToStringStyle {
 
+        static final long serialVersionUID = -3594451267200535036L;
+
         /**
          * <p>Constructor.</p>
          *
@@ -2026,6 +2032,8 @@
      */
     private static final class ShortPrefixToStringStyle extends ToStringStyle {
 
+        static final long serialVersionUID = -3594451267200535036L;
+
         /**
          * <p>Constructor.</p>
          *
@@ -2055,6 +2063,8 @@
      * <code>StandardToStringStyle</code> to ensure its immutability.</p>
      */
     private static final class SimpleToStringStyle extends ToStringStyle {
+        
+        static final long serialVersionUID = -3594451267200535036L;
 
         /**
          * <p>Constructor.</p>
@@ -2089,6 +2099,8 @@
      * <code>StandardToStringStyle</code> to ensure its immutability.</p>
      */
     private static final class MultiLineToStringStyle extends ToStringStyle {
+
+        static final long serialVersionUID = -3594451267200535036L;
 
         /**
          * <p>Constructor.</p>

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractMessageTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractMessageTest.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractMessageTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractMessageTest.java
Sat May 28 20:18:45 2005
@@ -36,7 +36,8 @@
     public void testEqualsSameObj()
     {
         AbstractMessage msg;
-        msg = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         assertTrue( msg.equals( msg ) );
     }
 
@@ -48,8 +49,10 @@
     {
         AbstractMessage msg0;
         AbstractMessage msg1;
-        msg0 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {};
-        msg1 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg0 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
+        msg1 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         assertTrue( msg0.equals( msg1 ) );
         assertTrue( msg1.equals( msg0 ) );
     }
@@ -62,8 +65,10 @@
     {
         AbstractMessage msg0;
         AbstractMessage msg1;
-        msg0 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {};
-        msg1 = new AbstractMessage( 6, MessageTypeEnum.BINDREQUEST ) {};
+        msg0 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
+        msg1 = new AbstractMessage( 6, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         assertFalse( msg0.equals( msg1 ) );
         assertFalse( msg1.equals( msg0 ) );
     }
@@ -76,8 +81,10 @@
     {
         AbstractMessage msg0;
         AbstractMessage msg1;
-        msg0 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {};
-        msg1 = new AbstractMessage( 5, MessageTypeEnum.UNBINDREQUEST ) {};
+        msg0 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
+        msg1 = new AbstractMessage( 5, MessageTypeEnum.UNBINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         assertFalse( msg0.equals( msg1 ) );
         assertFalse( msg1.equals( msg0 ) );
     }
@@ -90,8 +97,10 @@
     {
         AbstractMessage msg0;
         AbstractMessage msg1;
-        msg0 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg0 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         msg0.add( new Control() {
+            private static final long serialVersionUID = 1L;
             public Lockable getParent()
             {
                 return null;
@@ -153,7 +162,8 @@
                 return null;
             }
         });
-        msg1 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg1 = new AbstractMessage( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         assertFalse( msg0.equals( msg1 ) );
         assertFalse( msg1.equals( msg0 ) );
     }

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractResultResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractResultResponseTest.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractResultResponseTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/AbstractResultResponseTest.java
Sat May 28 20:18:45 2005
@@ -37,7 +37,8 @@
     public void testEqualsSameObj()
     {
         AbstractResultResponse msg;
-        msg = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         assertTrue( msg.equals( msg ) );
     }
 
@@ -69,9 +70,11 @@
 
         AbstractResultResponse msg0;
         AbstractResultResponse msg1;
-        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         msg0.setLdapResult( r0 );
-        msg1 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg1 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         msg1.setLdapResult( r1 );
         assertTrue( msg0.equals( msg1 ) );
         assertTrue( msg1.equals( msg0 ) );
@@ -105,9 +108,11 @@
 
         AbstractResultResponse msg0;
         AbstractResultResponse msg1;
-        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         msg0.setLdapResult( r0 );
-        msg1 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg1 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         msg1.setLdapResult( r1 );
         assertFalse( msg0.equals( msg1 ) );
         assertFalse( msg1.equals( msg0 ) );
@@ -121,8 +126,10 @@
     {
         AbstractResultResponse msg0;
         AbstractResultResponse msg1;
-        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {};
-        msg1 = new AbstractResultResponse( 6, MessageTypeEnum.BINDREQUEST ) {};
+        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
+        msg1 = new AbstractResultResponse( 6, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         assertFalse( msg0.equals( msg1 ) );
         assertFalse( msg1.equals( msg0 ) );
     }
@@ -135,8 +142,10 @@
     {
         AbstractResultResponse msg0;
         AbstractResultResponse msg1;
-        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {};
-        msg1 = new AbstractResultResponse( 5, MessageTypeEnum.UNBINDREQUEST ) {};
+        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
+        msg1 = new AbstractResultResponse( 5, MessageTypeEnum.UNBINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         assertFalse( msg0.equals( msg1 ) );
         assertFalse( msg1.equals( msg0 ) );
     }
@@ -149,8 +158,10 @@
     {
         AbstractResultResponse msg0;
         AbstractResultResponse msg1;
-        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg0 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         msg0.add( new Control() {
+            private static final long serialVersionUID = 1L;
             public Lockable getParent()
             {
                 return null;
@@ -212,7 +223,8 @@
                 return null;
             }
         });
-        msg1 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {};
+        msg1 = new AbstractResultResponse( 5, MessageTypeEnum.BINDREQUEST ) {
+            private static final long serialVersionUID = 1L;};
         assertFalse( msg0.equals( msg1 ) );
         assertFalse( msg1.equals( msg0 ) );
     }

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/LdapResultImplTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/LdapResultImplTest.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/LdapResultImplTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/LdapResultImplTest.java
Sat May 28 20:18:45 2005
@@ -60,7 +60,8 @@
      */
     public void testEqualsDiffLockableParent()
     {
-        LdapResultImpl r0 = new LdapResultImpl( new AbstractLockable(){} );
+        LdapResultImpl r0 = new LdapResultImpl( new AbstractLockable(){
+            private static final long serialVersionUID = 1L;} );
         LdapResultImpl r1 = new LdapResultImpl( null );
 
         assertTrue( "default copy with different lockable parents " +
@@ -75,7 +76,8 @@
      */
     public void testEqualsDiffImpl()
     {
-        LdapResultImpl r0 = new LdapResultImpl( new AbstractLockable(){} );
+        LdapResultImpl r0 = new LdapResultImpl( new AbstractLockable(){
+            private static final long serialVersionUID = 1L;} );
         LdapResult r1 = new LdapResult()
         {
             public ResultCodeEnum getResultCode()

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ModifyRequestImplTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ModifyRequestImplTest.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ModifyRequestImplTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ModifyRequestImplTest.java
Sat May 28 20:18:45 2005
@@ -21,10 +21,8 @@
 
 import javax.naming.directory.DirContext;
 import javax.naming.directory.ModificationItem;
-import javax.naming.directory.Attributes;
 import java.util.Collection;
 import java.util.Collections;
-import java.util.Iterator;
 import java.util.ArrayList;
 
 import org.apache.ldap.common.Lockable;

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ReferralImplTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ReferralImplTest.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ReferralImplTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/message/ReferralImplTest.java
Sat May 28 20:18:45 2005
@@ -161,7 +161,8 @@
      */
     public void testEqualsDifferentLockableParents()
     {
-        ReferralImpl refs0 = new ReferralImpl( new AbstractLockable(){} );
+        ReferralImpl refs0 = new ReferralImpl( new AbstractLockable(){
+            private static final long serialVersionUID = 1L;} );
         ReferralImpl refs1 = new ReferralImpl( null );
 
         assertTrue( "Empty Referrals should be equal",

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java
Sat May 28 20:18:45 2005
@@ -14,19 +14,17 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.common.name ;
+package org.apache.ldap.common.name;
 
-import java.io.IOException ;
 
-import java.util.ArrayList ;
-import java.util.Comparator ;
-import java.util.Enumeration ;
-import java.util.Collections ;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.Enumeration;
 
-import javax.naming.Name ;
-import javax.naming.NamingException;
+import javax.naming.Name;
 
-import junit.framework.TestCase ;
+import junit.framework.TestCase;
 
 
 /**
@@ -35,8 +33,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class LdapNameTest 
-    extends TestCase 
+public class LdapNameTest extends TestCase 
 {
     /** Parser to use */
     private DnParser m_parser ;

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/schema/SchemaUtilsTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/schema/SchemaUtilsTest.java?rev=178921&r1=178920&r2=178921&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/schema/SchemaUtilsTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/schema/SchemaUtilsTest.java
Sat May 28 20:18:45 2005
@@ -206,6 +206,8 @@
 
     static class AttributeTypeImpl extends AbstractAttributeType
     {
+        private static final long serialVersionUID = 1L;
+
         Syntax syntax;
         AttributeType sup;
         MatchingRule equality;



Mime
View raw message