ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/types EnumeratedAttribute.java
Date Sun, 13 Jan 2002 05:36:13 GMT
donaldp     02/01/12 21:36:13

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/types
                        EnumeratedAttribute.java
  Log:
  Made attribute private
  
  Revision  Changes    Path
  1.5       +6 -13     jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java
  
  Index: EnumeratedAttribute.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/types/EnumeratedAttribute.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- EnumeratedAttribute.java	30 Dec 2001 03:46:59 -0000	1.4
  +++ EnumeratedAttribute.java	13 Jan 2002 05:36:13 -0000	1.5
  @@ -19,11 +19,7 @@
    */
   public abstract class EnumeratedAttribute
   {
  -    protected String value;
  -
  -    public EnumeratedAttribute()
  -    {
  -    }
  +    private String m_value;
   
       /**
        * Invoked by {@link org.apache.tools.ant.IntrospectionHelper
  @@ -32,14 +28,14 @@
        * @param value The new Value value
        * @exception TaskException Description of Exception
        */
  -    public final void setValue( String value )
  +    public final void setValue( final String value )
           throws TaskException
       {
           if( !containsValue( value ) )
           {
               throw new TaskException( value + " is not a legal value for this attribute"
);
           }
  -        this.value = value;
  +        this.m_value = value;
       }
   
       /**
  @@ -49,7 +45,7 @@
        */
       public final String getValue()
       {
  -        return value;
  +        return m_value;
       }
   
       /**
  @@ -61,13 +57,10 @@
   
       /**
        * Is this value included in the enumeration?
  -     *
  -     * @param value Description of Parameter
  -     * @return Description of the Returned Value
        */
  -    public final boolean containsValue( String value )
  +    public final boolean containsValue( final String value )
       {
  -        String[] values = getValues();
  +        final String[] values = getValues();
           if( values == null || value == null )
           {
               return false;
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message