Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277460 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
12d182f4cc
2 changed files with 4 additions and 3 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/launch/Launcher.java
  2. +2
    -1
      src/main/org/apache/tools/ant/launch/Locator.java

+ 2
- 2
src/main/org/apache/tools/ant/launch/Launcher.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -150,7 +150,7 @@ public class Launcher {
argList.add(args[i]);
}
}
//decide whether to copy the existing arg set, or
//build a new one from the list of all args excluding the special
//operations that only we handle


+ 2
- 1
src/main/org/apache/tools/ant/launch/Locator.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -106,6 +106,7 @@ public final class Locator {
try {
url = new URL(uri);
} catch (MalformedURLException emYouEarlEx) {
// Ignore malformed exception
}
if (url == null || !("file".equals(url.getProtocol()))) {
throw new IllegalArgumentException("Can only handle valid file: URIs");


Loading…
Cancel
Save