From 711320d7de498c500e6adcafe158a6e403e26b36 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sat, 9 Feb 2002 03:21:36 +0000 Subject: [PATCH] Zap some audit warnings git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271234 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/aut/vfs/FileType.java | 22 +++++------ .../java/org/apache/aut/vfs/NameScope.java | 38 +++++++++---------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/proposal/myrmidon/src/java/org/apache/aut/vfs/FileType.java b/proposal/myrmidon/src/java/org/apache/aut/vfs/FileType.java index 79d7327ec..66d9ec8fd 100644 --- a/proposal/myrmidon/src/java/org/apache/aut/vfs/FileType.java +++ b/proposal/myrmidon/src/java/org/apache/aut/vfs/FileType.java @@ -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" ) ); } diff --git a/proposal/myrmidon/src/java/org/apache/aut/vfs/NameScope.java b/proposal/myrmidon/src/java/org/apache/aut/vfs/NameScope.java index fbf6870d9..b76e9d07d 100644 --- a/proposal/myrmidon/src/java/org/apache/aut/vfs/NameScope.java +++ b/proposal/myrmidon/src/java/org/apache/aut/vfs/NameScope.java @@ -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; + } }