james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r690752 - in /james/jsieve/trunk/src/main/java/org/apache/jsieve: SieveValidationVisitor.java Test.java
Date Sun, 31 Aug 2008 18:36:01 GMT
Author: rdonkin
Date: Sun Aug 31 11:36:01 2008
New Revision: 690752

URL: http://svn.apache.org/viewvc?rev=690752&view=rev
Log:
Consolidated calls

Modified:
    james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveValidationVisitor.java
    james/jsieve/trunk/src/main/java/org/apache/jsieve/Test.java

Modified: james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveValidationVisitor.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveValidationVisitor.java?rev=690752&r1=690751&r2=690752&view=diff
==============================================================================
--- james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveValidationVisitor.java (original)
+++ james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveValidationVisitor.java Sun Aug
31 11:36:01 2008
@@ -119,7 +119,7 @@
                     commandManager.newInstance(name);
                 } catch (LookupException e) {
                     //TODO: catching is inefficient, should just check
-                    Test.lookup(name);
+                    TestManager.getInstance().newInstance(name);
                 }
             }
         }

Modified: james/jsieve/trunk/src/main/java/org/apache/jsieve/Test.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/main/java/org/apache/jsieve/Test.java?rev=690752&r1=690751&r2=690752&view=diff
==============================================================================
--- james/jsieve/trunk/src/main/java/org/apache/jsieve/Test.java (original)
+++ james/jsieve/trunk/src/main/java/org/apache/jsieve/Test.java Sun Aug 31 11:36:01 2008
@@ -34,10 +34,6 @@
  */
 public class Test implements Executable {
     
-    public static ExecutableTest lookup(final String name) throws LookupException {
-        return TestManager.getInstance().newInstance(name);
-    }
-    
     private SieveContext context;
 
     /** The name of this Test */
@@ -55,7 +51,7 @@
             log.debug(toString());
         }
         final String name = getName();
-        final ExecutableTest test = lookup(name);
+        final ExecutableTest test = TestManager.getInstance().newInstance(name);
         final boolean result = test.execute(mail, getArguments(), context);
         return new Boolean(result);
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message