directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r664298 - in /directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl: BogusSyntax.java NoMatchingRuleAttributeType.java OrderingOnlyMatchingRuleAttributeType.java
Date Sat, 07 Jun 2008 08:28:55 GMT
Author: akarasulu
Date: Sat Jun  7 01:28:54 2008
New Revision: 664298

URL: http://svn.apache.org/viewvc?rev=664298&view=rev
Log:
adding this getNamesRef() method

Modified:
    directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java
    directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/NoMatchingRuleAttributeType.java
    directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/OrderingOnlyMatchingRuleAttributeType.java

Modified: directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java?rev=664298&r1=664297&r2=664298&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java
(original)
+++ directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java
Sat Jun  7 01:28:54 2008
@@ -35,6 +35,9 @@
  */
 public class BogusSyntax implements Syntax
 {
+    private static final long serialVersionUID = 1L;
+
+
     public boolean isHumanReadable()
     {
         return false;
@@ -86,4 +89,10 @@
     public void setSchema( String schemaName )
     {
     }
+
+
+    public String[] getNamesRef()
+    {
+        return new String[] { "bogus" };
+    }
 }

Modified: directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/NoMatchingRuleAttributeType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/NoMatchingRuleAttributeType.java?rev=664298&r1=664297&r2=664298&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/NoMatchingRuleAttributeType.java
(original)
+++ directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/NoMatchingRuleAttributeType.java
Sat Jun  7 01:28:54 2008
@@ -38,6 +38,8 @@
  */
 public class NoMatchingRuleAttributeType implements AttributeType
 {
+    private static final long serialVersionUID = 1L;
+
 
     public boolean isSingleValue()
     {
@@ -150,4 +152,10 @@
     public void setSchema( String schemaName )
     {
     }
+
+
+    public String[] getNamesRef()
+    {
+        return new String[] { "bogus" };
+    }
 }

Modified: directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/OrderingOnlyMatchingRuleAttributeType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/OrderingOnlyMatchingRuleAttributeType.java?rev=664298&r1=664297&r2=664298&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/OrderingOnlyMatchingRuleAttributeType.java
(original)
+++ directory/apacheds/branches/bigbang/xdbm-search/src/test/java/org/apache/directory/server/xdbm/search/impl/OrderingOnlyMatchingRuleAttributeType.java
Sat Jun  7 01:28:54 2008
@@ -38,6 +38,8 @@
  */
 public class OrderingOnlyMatchingRuleAttributeType implements AttributeType
 {
+    private static final long serialVersionUID = 1L;
+
 
     public boolean isSingleValue()
     {
@@ -91,6 +93,8 @@
     {
         return new MatchingRule()
         {
+            private static final long serialVersionUID = 1L;
+
 
             public Syntax getSyntax() throws NamingException
             {
@@ -98,7 +102,8 @@
             }
 
 
-            public Comparator getComparator() throws NamingException
+            @SuppressWarnings("unchecked")
+            public Comparator<String> getComparator() throws NamingException
             {
                 return new StringComparator();
             }
@@ -122,12 +127,6 @@
             }
 
 
-            public String[] getNames()
-            {
-                return new String[0];
-            }
-
-
             public String getName()
             {
                 return null;
@@ -149,6 +148,12 @@
             public void setSchema( String schemaName )
             {
             }
+
+
+            public String[] getNamesRef()
+            {
+                return null;
+            }
         };
     }
 
@@ -210,4 +215,10 @@
     public void setSchema( String schemaName )
     {
     }
+
+
+    public String[] getNamesRef()
+    {
+        return new String[] { "bogus" } ;
+    }
 }
\ No newline at end of file



Mime
View raw message