diff --git a/src/main/org/apache/tools/ant/types/CommandlineJava.java b/src/main/org/apache/tools/ant/types/CommandlineJava.java index 7c5f7cfff..f05acd449 100644 --- a/src/main/org/apache/tools/ant/types/CommandlineJava.java +++ b/src/main/org/apache/tools/ant/types/CommandlineJava.java @@ -93,7 +93,7 @@ public class CommandlineJava implements Cloneable { Properties sys = null; public String[] getVariables() throws BuildException { - String props[] = super.getVariables(); + String[] props = super.getVariables(); if (props == null) { return null; diff --git a/src/main/org/apache/tools/ant/types/FileList.java b/src/main/org/apache/tools/ant/types/FileList.java index d3e5cfe66..a348fd264 100644 --- a/src/main/org/apache/tools/ant/types/FileList.java +++ b/src/main/org/apache/tools/ant/types/FileList.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2001 The Apache Software Foundation. All rights + * Copyright (c) 2001-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -145,7 +145,7 @@ public class FileList extends DataType { throw new BuildException("No files specified for filelist."); } - String result[] = new String[filenames.size()]; + String[] result = new String[filenames.size()]; filenames.copyInto(result); return result; } diff --git a/src/main/org/apache/tools/ant/types/FileSet.java b/src/main/org/apache/tools/ant/types/FileSet.java index 4ba5c885c..a5f09e464 100644 --- a/src/main/org/apache/tools/ant/types/FileSet.java +++ b/src/main/org/apache/tools/ant/types/FileSet.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000-2001 The Apache Software Foundation. All rights + * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -290,13 +290,14 @@ public class FileSet extends DataType implements Cloneable { ds.setBasedir(dir); - for (int i=0; i