Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557212 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
c72c5d65d1
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      src/main/org/apache/tools/ant/ComponentHelper.java

+ 3
- 4
src/main/org/apache/tools/ant/ComponentHelper.java View File

@@ -913,7 +913,7 @@ public class ComponentHelper {
*/
private void printUnknownDefinition(PrintWriter out, String componentName, String dirListing) {
boolean isAntlib = componentName.indexOf(MagicNames.ANTLIB_PREFIX) == 0;
String uri=ProjectHelper.extractUriFromComponentName(componentName);
String uri = ProjectHelper.extractUriFromComponentName(componentName);
out.println("Cause: The name is undefined.");
out.println("Action: Check the spelling.");
out.println("Action: Check that any custom tasks/types have been declared.");
@@ -982,7 +982,6 @@ public class ComponentHelper {
*/
private static class AntTypeTable extends Hashtable {
private static final long serialVersionUID = -3060442320477772028L;
private Project project;

AntTypeTable(Project project) {
@@ -1033,8 +1032,8 @@ public class ComponentHelper {
* @return the (possibly empty) list of definitions
*/
public List/*<AntTypeDefinition>*/ findMatches(String prefix) {
ArrayList matches=new ArrayList();
for (Iterator i = values().iterator(); i.hasNext() ;) {
ArrayList matches = new ArrayList();
for (Iterator i = values().iterator(); i.hasNext();) {
AntTypeDefinition def = (AntTypeDefinition) (i.next());
if (def.getName().startsWith(prefix)) {
matches.add(def);


Loading…
Cancel
Save