From 12d182f4cc348c477d5971753faf4868c0df5ee7 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Tue, 25 Jan 2005 15:47:57 +0000 Subject: [PATCH] checkstyle git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277460 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/launch/Launcher.java | 4 ++-- src/main/org/apache/tools/ant/launch/Locator.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/launch/Launcher.java b/src/main/org/apache/tools/ant/launch/Launcher.java index a8534bb7c..5ff0d189b 100644 --- a/src/main/org/apache/tools/ant/launch/Launcher.java +++ b/src/main/org/apache/tools/ant/launch/Launcher.java @@ -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 diff --git a/src/main/org/apache/tools/ant/launch/Locator.java b/src/main/org/apache/tools/ant/launch/Locator.java index b8f73c5c9..8771e0532 100644 --- a/src/main/org/apache/tools/ant/launch/Locator.java +++ b/src/main/org/apache/tools/ant/launch/Locator.java @@ -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");