You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2004/08/16 14:16:45 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input WorkflowModule.java

andreas     2004/08/16 05:16:45

  Modified:    src/java/org/apache/lenya/cms/cocoon/components/modules/input
                        WorkflowModule.java
  Log:
  using Boolean.valueOf instead of constructor
  
  Revision  Changes    Path
  1.6       +3 -3      cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input/WorkflowModule.java
  
  Index: WorkflowModule.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/components/modules/input/WorkflowModule.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- WorkflowModule.java	1 Mar 2004 16:18:24 -0000	1.5
  +++ WorkflowModule.java	16 Aug 2004 12:16:45 -0000	1.6
  @@ -39,7 +39,7 @@
       public static final String VARIABLE_PREFIX = "variable.";
       public static final String HISTORY_PATH = "history-path";
   
  -    protected static final String[] PARAMETER_NAMES = { STATE, HISTORY_PATH };
  +    static final String[] PARAMETER_NAMES = { STATE, HISTORY_PATH };
   
       /**
        * @see org.apache.cocoon.components.modules.input.InputModule#getAttribute(java.lang.String, org.apache.avalon.framework.configuration.Configuration, java.util.Map)
  @@ -64,7 +64,7 @@
                       String variableName = name.substring(VARIABLE_PREFIX.length());
                       String[] variableNames = instance.getWorkflow().getVariableNames();
                       if (Arrays.asList(variableNames).contains(variableName)) {
  -                        value = new Boolean(instance.getValue(variableName));
  +                        value = Boolean.valueOf(instance.getValue(variableName));
                       }
                   }
                   else if (name.equals(HISTORY_PATH)) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org