git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271861 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -51,7 +51,7 @@ public class DefaultAspectManager | |||||
| rebuildArrays(); | rebuildArrays(); | ||||
| } | } | ||||
| public synchronized void removeAspectHandler( final String name, final AspectHandler handler ) | |||||
| public synchronized void removeAspectHandler( final String name ) | |||||
| throws TaskException | throws TaskException | ||||
| { | { | ||||
| final AspectHandler entry = (AspectHandler)m_aspectMap.remove( name ); | final AspectHandler entry = (AspectHandler)m_aspectMap.remove( name ); | ||||
| @@ -59,7 +59,7 @@ class DefaultObjectConfigurer | |||||
| * created configurer will not handle any attributes, elements, or content. | * created configurer will not handle any attributes, elements, or content. | ||||
| * Use the various <code>enable</code> methods to enable handling of these. | * Use the various <code>enable</code> methods to enable handling of these. | ||||
| */ | */ | ||||
| public DefaultObjectConfigurer( final Class classInfo ) | |||||
| private DefaultObjectConfigurer( final Class classInfo ) | |||||
| { | { | ||||
| m_class = classInfo; | m_class = classInfo; | ||||
| } | } | ||||
| @@ -67,7 +67,7 @@ class DefaultObjectConfigurer | |||||
| /** | /** | ||||
| * Enables all properties and content handling. | * Enables all properties and content handling. | ||||
| */ | */ | ||||
| public void enableAll() | |||||
| private void enableAll() | |||||
| throws ConfigurationException | throws ConfigurationException | ||||
| { | { | ||||
| enableProperties(); | enableProperties(); | ||||
| @@ -72,7 +72,7 @@ class TypeDescriptorBuilder | |||||
| /** | /** | ||||
| * Creates a type definition. | * Creates a type definition. | ||||
| */ | */ | ||||
| public TypeDefinition createTypeDefinition( final Configuration configuration ) | |||||
| private TypeDefinition createTypeDefinition( final Configuration configuration ) | |||||
| throws ConfigurationException | throws ConfigurationException | ||||
| { | { | ||||
| final String roleShorthand = configuration.getName(); | final String roleShorthand = configuration.getName(); | ||||
| @@ -17,7 +17,7 @@ class TypelibDescriptor | |||||
| { | { | ||||
| private final String m_url; | private final String m_url; | ||||
| public TypelibDescriptor( final String url ) | |||||
| protected TypelibDescriptor( final String url ) | |||||
| { | { | ||||
| m_url = url; | m_url = url; | ||||
| } | } | ||||
| @@ -328,7 +328,7 @@ public class AspectAwareExecutor | |||||
| return parameters; | return parameters; | ||||
| } | } | ||||
| protected final AspectManager getAspectManager() | |||||
| private final AspectManager getAspectManager() | |||||
| { | { | ||||
| return m_aspectManager; | return m_aspectManager; | ||||
| } | } | ||||
| @@ -117,7 +117,7 @@ public class DefaultExtensionManager | |||||
| return tools; | return tools; | ||||
| } | } | ||||
| private Extension createToolsExtension() | |||||
| private static Extension createToolsExtension() | |||||
| { | { | ||||
| return new Extension( "com.sun.tools", | return new Extension( "com.sun.tools", | ||||
| "1.0", | "1.0", | ||||
| @@ -99,8 +99,8 @@ public class DefaultPropertyResolver | |||||
| * @return the reolved property | * @return the reolved property | ||||
| * @exception TaskException if an error occurs | * @exception TaskException if an error occurs | ||||
| */ | */ | ||||
| protected Object recursiveResolveProperty( final String content, | |||||
| final Context context ) | |||||
| private Object recursiveResolveProperty( final String content, | |||||
| final Context context ) | |||||
| throws TaskException | throws TaskException | ||||
| { | { | ||||
| int start = findNextProperty( content, 0 ); | int start = findNextProperty( content, 0 ); | ||||
| @@ -44,7 +44,7 @@ public class DefaultTypeManager | |||||
| this( null ); | this( null ); | ||||
| } | } | ||||
| public DefaultTypeManager( final DefaultTypeManager parent ) | |||||
| private DefaultTypeManager( final DefaultTypeManager parent ) | |||||
| { | { | ||||
| m_parent = parent; | m_parent = parent; | ||||
| if( m_parent != null ) | if( m_parent != null ) | ||||
| @@ -79,7 +79,7 @@ public class DefaultTypeManager | |||||
| return new DefaultTypeManager( this ); | return new DefaultTypeManager( this ); | ||||
| } | } | ||||
| protected final MultiSourceTypeFactory lookupFactory( final String roleName ) | |||||
| private final MultiSourceTypeFactory lookupFactory( final String roleName ) | |||||
| { | { | ||||
| return (MultiSourceTypeFactory)m_roleMap.get( roleName ); | return (MultiSourceTypeFactory)m_roleMap.get( roleName ); | ||||
| } | } | ||||
| @@ -111,12 +111,12 @@ public class MultiSourceTypeFactory | |||||
| * | * | ||||
| * @return the type class | * @return the type class | ||||
| */ | */ | ||||
| protected final Class getType() | |||||
| private final Class getType() | |||||
| { | { | ||||
| return m_type; | return m_type; | ||||
| } | } | ||||
| protected final TypeFactory getTypeFactory( final String name ) | |||||
| private final TypeFactory getTypeFactory( final String name ) | |||||
| { | { | ||||
| return (TypeFactory)m_factories.get( name ); | return (TypeFactory)m_factories.get( name ); | ||||
| } | } | ||||
| @@ -391,7 +391,7 @@ public class DefaultTaskContext | |||||
| * @param value the value of proeprty | * @param value the value of proeprty | ||||
| * @exception TaskException if an error occurs | * @exception TaskException if an error occurs | ||||
| */ | */ | ||||
| protected void checkPropertyValid( final String name, final Object value ) | |||||
| private void checkPropertyValid( final String name, final Object value ) | |||||
| throws TaskException | throws TaskException | ||||
| { | { | ||||
| if( BASE_DIRECTORY.equals( name ) && !( value instanceof File ) ) | if( BASE_DIRECTORY.equals( name ) && !( value instanceof File ) ) | ||||
| @@ -26,7 +26,7 @@ import org.apache.myrmidon.api.TaskContext; | |||||
| public class AndCondition | public class AndCondition | ||||
| implements Condition | implements Condition | ||||
| { | { | ||||
| final ArrayList m_conditions = new ArrayList(); | |||||
| private final ArrayList m_conditions = new ArrayList(); | |||||
| /** | /** | ||||
| * Adds a condition. | * Adds a condition. | ||||
| @@ -26,7 +26,7 @@ import org.apache.myrmidon.api.TaskContext; | |||||
| public class OrCondition | public class OrCondition | ||||
| implements Condition | implements Condition | ||||
| { | { | ||||
| final ArrayList m_conditions = new ArrayList(); | |||||
| private final ArrayList m_conditions = new ArrayList(); | |||||
| /** | /** | ||||
| * Adds a condition. | * Adds a condition. | ||||
| @@ -31,6 +31,6 @@ public interface AspectManager | |||||
| void addAspectHandler( String name, AspectHandler handler ) | void addAspectHandler( String name, AspectHandler handler ) | ||||
| throws TaskException; | throws TaskException; | ||||
| void removeAspectHandler( String name, AspectHandler handler ) | |||||
| void removeAspectHandler( String name ) | |||||
| throws TaskException; | throws TaskException; | ||||
| } | } | ||||