You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/06/09 00:05:54 UTC

svn commit: r189657 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java

Author: elecharny
Date: Wed Jun  8 15:05:54 2005
New Revision: 189657

URL: http://svn.apache.org/viewcvs?rev=189657&view=rev
Log:
the getGrammarName methods are not anymore static.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java?rev=189657&r1=189656&r2=189657&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java Wed Jun  8 15:05:54 2005
@@ -16,6 +16,7 @@
  */
 package org.apache.asn1.ldap.codec.grammars;
 
+import org.apache.asn1.ber.grammar.IGrammar;
 import org.apache.asn1.ber.grammar.IStates;
 
 
@@ -1115,7 +1116,7 @@
      * @param The grammar code
      * @return The grammar name
      */
-    public static String getGrammarName(int grammar)
+    public String getGrammarName(int grammar)
     {
         switch (grammar)
         {
@@ -1143,7 +1144,7 @@
      * @param The grammar class
      * @return The grammar name
      */
-    public static String getGrammarName(Object grammar)
+    public String getGrammarName(IGrammar grammar)
     {
         if (grammar instanceof LdapMessageGrammar)
         {