Browse Source

Zap some audit warnings

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271234 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
711320d7de
2 changed files with 30 additions and 30 deletions
  1. +11
    -11
      proposal/myrmidon/src/java/org/apache/aut/vfs/FileType.java
  2. +19
    -19
      proposal/myrmidon/src/java/org/apache/aut/vfs/NameScope.java

+ 11
- 11
proposal/myrmidon/src/java/org/apache/aut/vfs/FileType.java View File

@@ -20,6 +20,17 @@ public final class FileType
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 @@ public final class FileType
{
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" ) );
}

+ 19
- 19
proposal/myrmidon/src/java/org/apache/aut/vfs/NameScope.java View File

@@ -15,25 +15,6 @@ package org.apache.aut.vfs;
*/
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 @@ public final class NameScope
* 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;
}
}

Loading…
Cancel
Save