You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jl...@apache.org on 2015/09/24 20:45:20 UTC

ant-easyant-core git commit: Compliance with J2SE 1.7 https://issues.apache.org/jira/browse/EASYANT-75

Repository: ant-easyant-core
Updated Branches:
  refs/heads/master b4f4c709d -> 7444b32bc


Compliance with J2SE 1.7
https://issues.apache.org/jira/browse/EASYANT-75

This closes #1


Project: http://git-wip-us.apache.org/repos/asf/ant-easyant-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-easyant-core/commit/7444b32b
Tree: http://git-wip-us.apache.org/repos/asf/ant-easyant-core/tree/7444b32b
Diff: http://git-wip-us.apache.org/repos/asf/ant-easyant-core/diff/7444b32b

Branch: refs/heads/master
Commit: 7444b32bcf07aea455f66126435fbbef5cdf7ea9
Parents: b4f4c70
Author: Adrien Quillet <aq...@is2t.com>
Authored: Wed Sep 23 09:37:46 2015 +0200
Committer: Jean-Louis Boudart <je...@gmail.com>
Committed: Thu Sep 24 20:44:56 2015 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/easyant/core/EasyAntEngine.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-easyant-core/blob/7444b32b/src/main/java/org/apache/easyant/core/EasyAntEngine.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/easyant/core/EasyAntEngine.java b/src/main/java/org/apache/easyant/core/EasyAntEngine.java
index f06e94e..03d61fd 100755
--- a/src/main/java/org/apache/easyant/core/EasyAntEngine.java
+++ b/src/main/java/org/apache/easyant/core/EasyAntEngine.java
@@ -154,11 +154,11 @@ public class EasyAntEngine {
                     if (getLocalURL == null
                             && "org.eclipse.osgi.framework.internal.core.BundleURLConnection".equals(conn.getClass()
                             .getName())) {
-                        EasyAntEngine.getLocalURL = conn.getClass().getMethod("getLocalURL", (Class<?>) null);
+                        EasyAntEngine.getLocalURL = conn.getClass().getMethod("getLocalURL", null);
                         getLocalURL.setAccessible(true);
                     }
                     if (getLocalURL != null && conn != null) {
-                        URL localJarUrl = (URL) getLocalURL.invoke(conn, (Class<?>) null);
+                        URL localJarUrl = (URL) getLocalURL.invoke(conn,  null);
                         return getJarUrl(localJarUrl);
                     }
                 } catch (Throwable throwable) {