Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@471560 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
e6e70c16c1
19 changed files with 72 additions and 73 deletions
  1. +6
    -8
      src/main/org/apache/tools/ant/util/ClasspathUtils.java
  2. +10
    -10
      src/main/org/apache/tools/ant/util/DOMElementWriter.java
  3. +1
    -1
      src/main/org/apache/tools/ant/util/DeweyDecimal.java
  4. +1
    -1
      src/main/org/apache/tools/ant/util/FileUtils.java
  5. +5
    -5
      src/main/org/apache/tools/ant/util/JavaEnvUtils.java
  6. +1
    -1
      src/main/org/apache/tools/ant/util/LeadPipeInputStream.java
  7. +8
    -8
      src/main/org/apache/tools/ant/util/ProxySetup.java
  8. +6
    -6
      src/main/org/apache/tools/ant/util/RetryHandler.java
  9. +3
    -3
      src/main/org/apache/tools/ant/util/Retryable.java
  10. +2
    -2
      src/main/org/apache/tools/ant/util/ScriptRunner.java
  11. +8
    -5
      src/main/org/apache/tools/ant/util/StringUtils.java
  12. +5
    -5
      src/main/org/apache/tools/ant/util/UUEncoder.java
  13. +1
    -1
      src/main/org/apache/tools/ant/util/WeakishReference.java
  14. +1
    -1
      src/main/org/apache/tools/ant/util/XMLFragment.java
  15. +1
    -1
      src/main/org/apache/tools/ant/util/XmlConstants.java
  16. +10
    -11
      src/main/org/apache/tools/ant/util/java15/ProxyDiagnostics.java
  17. +1
    -1
      src/main/org/apache/tools/ant/util/optional/ScriptRunner.java
  18. +1
    -1
      src/main/org/apache/tools/ant/util/optional/WeakishReference12.java
  19. +1
    -2
      src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java

+ 6
- 8
src/main/org/apache/tools/ant/util/ClasspathUtils.java View File

@@ -240,8 +240,6 @@ public class ClasspathUtils {
return newInstance(className, userDefinedLoader, Object.class); return newInstance(className, userDefinedLoader, Object.class);
} }


/** /**
* Creates a fresh object instance of the specified classname. * Creates a fresh object instance of the specified classname.
* *
@@ -253,7 +251,7 @@ public class ClasspathUtils {
* @param userDefinedLoader the classloader to use. * @param userDefinedLoader the classloader to use.
* @param expectedType the Class that the result should be assignment * @param expectedType the Class that the result should be assignment
* compatible with. (No ClassCastException will be thrown in case * compatible with. (No ClassCastException will be thrown in case
* the result of this method is casted to the expectedType)
* the result of this method is casted to the expectedType)
* @return The fresh object instance * @return The fresh object instance
* @throws BuildException when loading or instantiation failed. * @throws BuildException when loading or instantiation failed.
* @since Ant 1.7 * @since Ant 1.7
@@ -263,14 +261,14 @@ public class ClasspathUtils {
ClassLoader userDefinedLoader, ClassLoader userDefinedLoader,
Class expectedType) { Class expectedType) {
try { try {
Class clazz = Class.forName(className, true, userDefinedLoader);
Class clazz = Class.forName(className, true, userDefinedLoader);
Object o = clazz.newInstance(); Object o = clazz.newInstance();
if (!expectedType.isInstance(o)) if (!expectedType.isInstance(o))
{ {
throw new BuildException( throw new BuildException(
"Class of unexpected Type: "
"Class of unexpected Type: "
+ className + className
+ " expected :"
+ " expected :"
+ expectedType); + expectedType);
} }
return o; return o;
@@ -297,11 +295,11 @@ public class ClasspathUtils {
throw new BuildException( throw new BuildException(
"Class " "Class "
+ className + className
+ " could not be loaded because of an invalid dependency.",
+ " could not be loaded because of an invalid dependency.",
e); e);
} }
} }
/** /**
* Obtains a delegate that helps out with classic classpath configuration. * Obtains a delegate that helps out with classic classpath configuration.
* *


+ 10
- 10
src/main/org/apache/tools/ant/util/DOMElementWriter.java View File

@@ -47,7 +47,7 @@ public class DOMElementWriter {
private static final String NS = "ns"; private static final String NS = "ns";


/** xml declaration is on by default */ /** xml declaration is on by default */
private boolean xmlDeclaration=true;
private boolean xmlDeclaration = true;


/** /**
* XML Namespaces are ignored by default. * XML Namespaces are ignored by default.
@@ -115,7 +115,7 @@ public class DOMElementWriter {
} }


/** /**
* Create an element writer
* Create an element writer
* XML namespaces will be ignored. * XML namespaces will be ignored.
* @param xmlDeclaration flag to indicate whether the ?xml? declaration * @param xmlDeclaration flag to indicate whether the ?xml? declaration
* should be included. * should be included.
@@ -126,7 +126,7 @@ public class DOMElementWriter {
} }


/** /**
* Create an element writer
* Create an element writer
* XML namespaces will be ignored. * XML namespaces will be ignored.
* @param xmlDeclaration flag to indicate whether the ?xml? declaration * @param xmlDeclaration flag to indicate whether the ?xml? declaration
* should be included. * should be included.
@@ -196,9 +196,9 @@ public class DOMElementWriter {
if (hasChildren) { if (hasChildren) {
for (int i = 0; i < children.getLength(); i++) { for (int i = 0; i < children.getLength(); i++) {
Node child = children.item(i); Node child = children.item(i);
switch (child.getNodeType()) { switch (child.getNodeType()) {
case Node.ELEMENT_NODE: case Node.ELEMENT_NODE:
hasChildElements = true; hasChildElements = true;
if (i == 0) { if (i == 0) {
@@ -206,29 +206,29 @@ public class DOMElementWriter {
} }
write((Element) child, out, indent + 1, indentWith); write((Element) child, out, indent + 1, indentWith);
break; break;
case Node.TEXT_NODE: case Node.TEXT_NODE:
out.write(encode(child.getNodeValue())); out.write(encode(child.getNodeValue()));
break; break;
case Node.COMMENT_NODE: case Node.COMMENT_NODE:
out.write("<!--"); out.write("<!--");
out.write(encode(child.getNodeValue())); out.write(encode(child.getNodeValue()));
out.write("-->"); out.write("-->");
break; break;
case Node.CDATA_SECTION_NODE: case Node.CDATA_SECTION_NODE:
out.write("<![CDATA["); out.write("<![CDATA[");
out.write(encodedata(((Text) child).getData())); out.write(encodedata(((Text) child).getData()));
out.write("]]>"); out.write("]]>");
break; break;
case Node.ENTITY_REFERENCE_NODE: case Node.ENTITY_REFERENCE_NODE:
out.write('&'); out.write('&');
out.write(child.getNodeName()); out.write(child.getNodeName());
out.write(';'); out.write(';');
break; break;
case Node.PROCESSING_INSTRUCTION_NODE: case Node.PROCESSING_INSTRUCTION_NODE:
out.write("<?"); out.write("<?");
out.write(child.getNodeName()); out.write(child.getNodeName());


+ 1
- 1
src/main/org/apache/tools/ant/util/DeweyDecimal.java View File

@@ -32,7 +32,7 @@ public class DeweyDecimal {


/** Array of components that make up DeweyDecimal */ /** Array of components that make up DeweyDecimal */
private int[] components; private int[] components;
/** /**
* Construct a DeweyDecimal from an array of integer components. * Construct a DeweyDecimal from an array of integer components.
* *


+ 1
- 1
src/main/org/apache/tools/ant/util/FileUtils.java View File

@@ -1455,7 +1455,7 @@ public class FileUtils {
Object[] tokens = StringUtils.split(normalizedPath, '/').toArray(); Object[] tokens = StringUtils.split(normalizedPath, '/').toArray();
String[] rv = new String[tokens.length]; String[] rv = new String[tokens.length];
System.arraycopy(tokens, 0, rv, 0, tokens.length); System.arraycopy(tokens, 0, rv, 0, tokens.length);
return rv; return rv;
} }




+ 5
- 5
src/main/org/apache/tools/ant/util/JavaEnvUtils.java View File

@@ -132,7 +132,7 @@ public final class JavaEnvUtils {


/** /**
* Returns the version of Java this class is running under. * Returns the version of Java this class is running under.
* This number can be used for comparisions; it will always be
* This number can be used for comparisions; it will always be
* @return the version of Java as a number 10x the major/minor, * @return the version of Java as a number 10x the major/minor,
* e.g Java1.5 has a value of 15 * e.g Java1.5 has a value of 15
*/ */
@@ -292,11 +292,11 @@ public final class JavaEnvUtils {
switch(javaVersionNumber) { switch(javaVersionNumber) {
case 16: case 16:
case 15: case 15:
//In Java1.5, the apache stuff moved.
//In Java1.5, the apache stuff moved.
jrePackages.addElement("com.sun.org.apache"); jrePackages.addElement("com.sun.org.apache");
//fall through.
//fall through.
case 14: case 14:
if(javaVersionNumber == 14) {
if (javaVersionNumber == 14) {
jrePackages.addElement("org.apache.crimson"); jrePackages.addElement("org.apache.crimson");
jrePackages.addElement("org.apache.xalan"); jrePackages.addElement("org.apache.xalan");
jrePackages.addElement("org.apache.xml"); jrePackages.addElement("org.apache.xml");
@@ -345,7 +345,7 @@ public final class JavaEnvUtils {
tests.addElement("com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl "); tests.addElement("com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl ");
case 14: case 14:
tests.addElement("sun.audio.AudioPlayer"); tests.addElement("sun.audio.AudioPlayer");
if(javaVersionNumber == 14) {
if (javaVersionNumber == 14) {
tests.addElement("org.apache.crimson.parser.ContentModel"); tests.addElement("org.apache.crimson.parser.ContentModel");
tests.addElement("org.apache.xalan.processor.ProcessorImport"); tests.addElement("org.apache.xalan.processor.ProcessorImport");
tests.addElement("org.apache.xml.utils.URI"); tests.addElement("org.apache.xml.utils.URI");


+ 1
- 1
src/main/org/apache/tools/ant/util/LeadPipeInputStream.java View File

@@ -106,7 +106,7 @@ public class LeadPipeInputStream extends PipedInputStream {
int outlen = buffer.length - out; int outlen = buffer.length - out;
System.arraycopy(buffer, out, newBuffer, 0, outlen); System.arraycopy(buffer, out, newBuffer, 0, outlen);
System.arraycopy(buffer, 0, newBuffer, outlen, in); System.arraycopy(buffer, 0, newBuffer, outlen, in);
in+= outlen;
in += outlen;
out = 0; out = 0;
} }
} }


+ 8
- 8
src/main/org/apache/tools/ant/util/ProxySetup.java View File

@@ -37,7 +37,7 @@ public class ProxySetup {
* Java1.5 property that enables use of system proxies. * Java1.5 property that enables use of system proxies.
* @value * @value
*/ */
public static final String USE_SYSTEM_PROXIES="java.net.useSystemProxies";
public static final String USE_SYSTEM_PROXIES = "java.net.useSystemProxies";
public static final String HTTP_PROXY_HOST = "http.proxyHost"; public static final String HTTP_PROXY_HOST = "http.proxyHost";
public static final String HTTP_PROXY_PORT = "http.proxyPort"; public static final String HTTP_PROXY_PORT = "http.proxyPort";
public static final String HTTPS_PROXY_HOST = "https.proxyHost"; public static final String HTTPS_PROXY_HOST = "https.proxyHost";
@@ -83,19 +83,19 @@ public class ProxySetup {
* is set, use that instead. Else set to "true". * is set, use that instead. Else set to "true".
*/ */
public void enableProxies() { public void enableProxies() {
if(!(getSystemProxySetting() != null)) {
String proxies =owner.getProperty(USE_SYSTEM_PROXIES);
if(proxies ==null || Project.toBoolean(proxies)) {
proxies ="true";
if (!(getSystemProxySetting() != null)) {
String proxies = owner.getProperty(USE_SYSTEM_PROXIES);
if (proxies == null || Project.toBoolean(proxies)) {
proxies = "true";
} }
String message = "setting " + USE_SYSTEM_PROXIES + " to " + proxies; String message = "setting " + USE_SYSTEM_PROXIES + " to " + proxies;
try { try {
owner.log(message,Project.MSG_DEBUG);
System.setProperty(USE_SYSTEM_PROXIES,proxies);
owner.log(message, Project.MSG_DEBUG);
System.setProperty(USE_SYSTEM_PROXIES, proxies);
} catch (SecurityException e) { } catch (SecurityException e) {
//log security exceptions and continue; it aint that //log security exceptions and continue; it aint that
//important and may be quite common running Ant embedded. //important and may be quite common running Ant embedded.
owner.log("Security Exception when "+message);
owner.log("Security Exception when " + message);
} }
} }
} }


+ 6
- 6
src/main/org/apache/tools/ant/util/RetryHandler.java View File

@@ -23,8 +23,8 @@ import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task; import org.apache.tools.ant.Task;


/** /**
* A simple utility class to take a piece of code (that implements
* <code>Retryable</code> interface) and executes that with possibility to
* A simple utility class to take a piece of code (that implements
* <code>Retryable</code> interface) and executes that with possibility to
* retry the execution in case of IOException. * retry the execution in case of IOException.
*/ */
public class RetryHandler { public class RetryHandler {
@@ -34,7 +34,7 @@ public class RetryHandler {


/** /**
* Create a new RetryingHandler. * Create a new RetryingHandler.
*
*
* @param retriesAllowed how many times to retry * @param retriesAllowed how many times to retry
* @param task the Ant task that is is executed from, used for logging only * @param task the Ant task that is is executed from, used for logging only
*/ */
@@ -45,7 +45,7 @@ public class RetryHandler {


/** /**
* Execute the <code>Retryable</code> code with specified number of retries. * Execute the <code>Retryable</code> code with specified number of retries.
*
*
* @param exe the code to execute * @param exe the code to execute
* @param desc some descriptive text for this piece of code, used for logging * @param desc some descriptive text for this piece of code, used for logging
* @throws IOException if the number of retries has exceeded the allowed limit * @throws IOException if the number of retries has exceeded the allowed limit
@@ -59,8 +59,8 @@ public class RetryHandler {
} catch (IOException e) { } catch (IOException e) {
retries++; retries++;
if (retries > this.retriesAllowed && this.retriesAllowed > -1) { if (retries > this.retriesAllowed && this.retriesAllowed > -1) {
task.log("try #" + retries + ": IO error ("
+ desc + "), number of maximum retries reached ("
task.log("try #" + retries + ": IO error ("
+ desc + "), number of maximum retries reached ("
+ this.retriesAllowed + "), giving up", Project.MSG_WARN); + this.retriesAllowed + "), giving up", Project.MSG_WARN);
throw e; throw e;
} else { } else {


+ 3
- 3
src/main/org/apache/tools/ant/util/Retryable.java View File

@@ -21,13 +21,13 @@ import java.io.IOException;




/** /**
* Simple interface for executing a piece of code. Used for writing anonymous inner
* Simple interface for executing a piece of code. Used for writing anonymous inner
* classes in FTP task for retry-on-IOException behaviour. * classes in FTP task for retry-on-IOException behaviour.
*
*
* @see RetryHandler * @see RetryHandler
*/ */
public interface Retryable { public interface Retryable {
public static final int RETRY_FOREVER = -1; public static final int RETRY_FOREVER = -1;
void execute() throws IOException; void execute() throws IOException;


}
}

+ 2
- 2
src/main/org/apache/tools/ant/util/ScriptRunner.java View File

@@ -19,9 +19,9 @@ package org.apache.tools.ant.util;


/** /**
* This class is here for backwards compatiblity. * This class is here for backwards compatiblity.
* @deprecated Implementation moved to another location. Use
* @deprecated Implementation moved to another location. Use
* that org.apache.tools.ant.types.optional.ScriptRunner instead. * that org.apache.tools.ant.types.optional.ScriptRunner instead.
*/ */
public class ScriptRunner public class ScriptRunner
extends org.apache.tools.ant.util.optional.ScriptRunner { extends org.apache.tools.ant.util.optional.ScriptRunner {
}
}

+ 8
- 5
src/main/org/apache/tools/ant/util/StringUtils.java View File

@@ -115,14 +115,17 @@ public final class StringUtils {
if (suffix.length() > buffer.length()) { if (suffix.length() > buffer.length()) {
return false; return false;
} }
// this loop is done on purpose to avoid memory allocation performance problems on various JDKs
// StringBuffer.lastIndexOf() was introduced in jdk 1.4 and implementation is ok though does allocation/copying
// StringBuffer.toString().endsWith() does massive memory allocation/copying on JDK 1.5
// this loop is done on purpose to avoid memory allocation performance
// problems on various JDKs
// StringBuffer.lastIndexOf() was introduced in jdk 1.4 and
// implementation is ok though does allocation/copying
// StringBuffer.toString().endsWith() does massive memory
// allocation/copying on JDK 1.5
// See http://issues.apache.org/bugzilla/show_bug.cgi?id=37169 // See http://issues.apache.org/bugzilla/show_bug.cgi?id=37169
int endIndex = suffix.length() - 1; int endIndex = suffix.length() - 1;
int bufferIndex = buffer.length() - 1; int bufferIndex = buffer.length() - 1;
while ( endIndex >= 0 ) {
if ( buffer.charAt(bufferIndex) != suffix.charAt(endIndex) ) {
while (endIndex >= 0) {
if (buffer.charAt(bufferIndex) != suffix.charAt(endIndex)) {
return false; return false;
} }
bufferIndex--; bufferIndex--;


+ 5
- 5
src/main/org/apache/tools/ant/util/UUEncoder.java View File

@@ -107,7 +107,7 @@ public class UUEncoder {
byte[] data, int offset, int length, OutputStream out) byte[] data, int offset, int length, OutputStream out)
throws IOException { throws IOException {
// write out the number of characters encoded in this line. // write out the number of characters encoded in this line.
out.write((byte)((length & 0x3F) + ' '));
out.write((byte) ((length & 0x3F) + ' '));
byte a; byte a;
byte b; byte b;
byte c; byte c;
@@ -125,10 +125,10 @@ public class UUEncoder {
} }
} }


byte d1 = (byte)(((a >>> 2) & 0x3F) + ' ');
byte d2 = (byte)(((( a << 4) & 0x30) | ((b >>> 4) & 0x0F)) + ' ');
byte d3 = (byte)((((b << 2) & 0x3C) | ((c >>> 6) & 0x3)) + ' ');
byte d4 = (byte)((c & 0x3F) + ' ');
byte d1 = (byte) (((a >>> 2) & 0x3F) + ' ');
byte d2 = (byte) ((((a << 4) & 0x30) | ((b >>> 4) & 0x0F)) + ' ');
byte d3 = (byte) ((((b << 2) & 0x3C) | ((c >>> 6) & 0x3)) + ' ');
byte d4 = (byte) ((c & 0x3F) + ' ');


out.write(d1); out.write(d1);
out.write(d2); out.write(d2);


+ 1
- 1
src/main/org/apache/tools/ant/util/WeakishReference.java View File

@@ -71,7 +71,7 @@ public class WeakishReference {


/** /**
* This was a hard reference for Java 1.1. Since Ant1.7, * This was a hard reference for Java 1.1. Since Ant1.7,
* @deprecated since 1.7.
* @deprecated since 1.7.
* Hopefully nobody is using this. * Hopefully nobody is using this.
*/ */
public static class HardReference extends WeakishReference { public static class HardReference extends WeakishReference {


+ 1
- 1
src/main/org/apache/tools/ant/util/XMLFragment.java View File

@@ -87,7 +87,7 @@ public class XMLFragment extends ProjectComponent implements DynamicElementNS {
} }


/** /**
* Add text to a node.
* Add text to a node.
* @param n node * @param n node
* @param s value * @param s value
*/ */


+ 1
- 1
src/main/org/apache/tools/ant/util/XmlConstants.java View File

@@ -41,7 +41,7 @@ public class XmlConstants {
"http://java.sun.com/xml/jaxp/properties/schemaSource"; "http://java.sun.com/xml/jaxp/properties/schemaSource";
public static final String URI_XSD = public static final String URI_XSD =
"http://www.w3.org/2001/XMLSchema"; "http://www.w3.org/2001/XMLSchema";
public static final String FEATURE_EXTERNAL_ENTITIES =
public static final String FEATURE_EXTERNAL_ENTITIES =
"http://xml.org/sax/features/external-general-entities"; "http://xml.org/sax/features/external-general-entities";
public static final String FEATURE_DISALLOW_DTD = public static final String FEATURE_DISALLOW_DTD =
"http://apache.org/xml/features/disallow-doctype-decl"; "http://apache.org/xml/features/disallow-doctype-decl";


+ 10
- 11
src/main/org/apache/tools/ant/util/java15/ProxyDiagnostics.java View File

@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
* *
*/
*/


package org.apache.tools.ant.util.java15; package org.apache.tools.ant.util.java15;


@@ -55,14 +55,14 @@ public class ProxyDiagnostics {
public ProxyDiagnostics(String destination) { public ProxyDiagnostics(String destination) {
this.destination = destination; this.destination = destination;
try { try {
this.destURI=new URI(destination);
this.destURI = new URI(destination);
} catch (URISyntaxException e) { } catch (URISyntaxException e) {
throw new BuildException(e); throw new BuildException(e);
} }
} }


/** /**
* create a proxy diagnostics tool bound to
* create a proxy diagnostics tool bound to
* {@link #DEFAULT_DESTINATION} * {@link #DEFAULT_DESTINATION}
*/ */
public ProxyDiagnostics() { public ProxyDiagnostics() {
@@ -70,24 +70,24 @@ public class ProxyDiagnostics {
} }


public String toString() { public String toString() {
ProxySelector selector=ProxySelector.getDefault();
ProxySelector selector = ProxySelector.getDefault();
List list = selector.select(destURI); List list = selector.select(destURI);
StringBuffer result=new StringBuffer();
Iterator proxies=list.listIterator();
StringBuffer result = new StringBuffer();
Iterator proxies = list.listIterator();
while (proxies.hasNext()) { while (proxies.hasNext()) {
Proxy proxy = (Proxy) proxies.next(); Proxy proxy = (Proxy) proxies.next();
SocketAddress address = proxy.address(); SocketAddress address = proxy.address();
if(address==null) {
if (address == null) {
result.append("Direct connection\n"); result.append("Direct connection\n");
} else { } else {
result.append(proxy.toString()); result.append(proxy.toString());
if(address instanceof InetSocketAddress) {
InetSocketAddress ina=(InetSocketAddress) address;
if (address instanceof InetSocketAddress) {
InetSocketAddress ina = (InetSocketAddress) address;
result.append(' '); result.append(' ');
result.append(ina.getHostName()); result.append(ina.getHostName());
result.append(':'); result.append(':');
result.append(ina.getPort()); result.append(ina.getPort());
if(ina.isUnresolved()) {
if (ina.isUnresolved()) {
result.append(" [unresolved]"); result.append(" [unresolved]");
} else { } else {
InetAddress addr = ina.getAddress(); InetAddress addr = ina.getAddress();
@@ -98,7 +98,6 @@ public class ProxyDiagnostics {
} }
result.append('\n'); result.append('\n');
} }
} }
return result.toString(); return result.toString();
} }


+ 1
- 1
src/main/org/apache/tools/ant/util/optional/ScriptRunner.java View File

@@ -191,7 +191,7 @@ public class ScriptRunner {
public void setClasspath(Path classpath) { public void setClasspath(Path classpath) {
this.classpath = classpath; this.classpath = classpath;
} }
/** /**
* Load the script from an external file ; optional. * Load the script from an external file ; optional.
* *


+ 1
- 1
src/main/org/apache/tools/ant/util/optional/WeakishReference12.java View File

@@ -30,7 +30,7 @@ import java.lang.ref.WeakReference;
* Note that in ant1.7 is parent was changed to extend HardReference. * Note that in ant1.7 is parent was changed to extend HardReference.
* This is because the latter has access to the (package scoped) * This is because the latter has access to the (package scoped)
* WeakishReference(Object) constructor, and both that and this are thin * WeakishReference(Object) constructor, and both that and this are thin
* facades on the underlying no-longer-abstract base class.
* facades on the underlying no-longer-abstract base class.
*/ */
public class WeakishReference12 extends WeakishReference.HardReference { public class WeakishReference12 extends WeakishReference.HardReference {




+ 1
- 2
src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java View File

@@ -114,8 +114,7 @@ public class RegexpMatcherFactory {
* @exception BuildException if an error occurs * @exception BuildException if an error occurs
*/ */
protected RegexpMatcher createInstance(String className) protected RegexpMatcher createInstance(String className)
throws BuildException
{
throws BuildException {
return (RegexpMatcher) ClasspathUtils.newInstance(className, return (RegexpMatcher) ClasspathUtils.newInstance(className,
RegexpMatcherFactory.class.getClassLoader(), RegexpMatcher.class); RegexpMatcherFactory.class.getClassLoader(), RegexpMatcher.class);
} }


Loading…
Cancel
Save