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/java/org/apache/aut/vfs NameScope.java FileType.java
Date Sat, 09 Feb 2002 03:21:36 GMT
donaldp     02/02/08 19:21:36

  Modified:    proposal/myrmidon/src/java/org/apache/aut/vfs NameScope.java
                        FileType.java
  Log:
  Zap some audit warnings
  
  Revision  Changes    Path
  1.2       +19 -19    jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/vfs/NameScope.java
  
  Index: NameScope.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/vfs/NameScope.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NameScope.java	2 Feb 2002 03:29:07 -0000	1.1
  +++ NameScope.java	9 Feb 2002 03:21:36 -0000	1.2
  @@ -15,25 +15,6 @@
    */
   public final class NameScope
   {
  -    private String m_name;
  -
  -    private NameScope( String name )
  -    {
  -        m_name = name;
  -    }
  -
  -    /** Returns the name of the scope. */
  -    public String toString()
  -    {
  -        return m_name;
  -    }
  -
  -    /** Returns the name of the scope. */
  -    public String getName()
  -    {
  -        return m_name;
  -    }
  -
       /**
        * Resolve against the children of the base file.
        *
  @@ -59,4 +40,23 @@
        * and relative if it does not.
        */
       public static final NameScope FILE_SYSTEM = new NameScope( "filesystem" );
  +
  +    private String m_name;
  +
  +    private NameScope( final String name )
  +    {
  +        m_name = name;
  +    }
  +
  +    /** Returns the name of the scope. */
  +    public String toString()
  +    {
  +        return m_name;
  +    }
  +
  +    /** Returns the name of the scope. */
  +    public String getName()
  +    {
  +        return m_name;
  +    }
   }
  
  
  
  1.3       +11 -11    jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/vfs/FileType.java
  
  Index: FileType.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/vfs/FileType.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FileType.java	6 Feb 2002 13:34:07 -0000	1.2
  +++ FileType.java	9 Feb 2002 03:21:36 -0000	1.3
  @@ -20,6 +20,17 @@
       private final static Resources REZ =
           ResourceManager.getPackageResources( FileType.class );
   
  +    /**
  +     * A folder, which can contain other files, but does not have any data
  +     * content.
  +     */
  +    public final static FileType FOLDER = new FileType( REZ.getString( "folder.name" )
);
  +
  +    /**
  +     * A regular file, which has data content, but cannot contain other files.
  +     */
  +    public final static FileType FILE = new FileType( REZ.getString( "file.name" ) );
  +
       private String m_name;
   
       private FileType( String name )
  @@ -38,15 +49,4 @@
       {
           return m_name;
       }
  -
  -    /**
  -     * A folder, which can contain other files, but does not have any data
  -     * content.
  -     */
  -    public static final FileType FOLDER = new FileType( REZ.getString( "folder.name" )
);
  -
  -    /**
  -     * A regular file, which has data content, but cannot contain other files.
  -     */
  -    public static final FileType FILE = new FileType( REZ.getString( "file.name" ) );
   }
  
  
  

--
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