Author: simonetripodi Date: Sun Apr 3 18:35:46 2011 New Revision: 1088372 URL: http://svn.apache.org/viewvc?rev=1088372&view=rev Log: removed unnecessary casts
Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK11Hooks.java commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK11Hooks.java URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK11Hooks.java?rev=1088372&r1=1088371&r2=1088372&view=diff ============================================================================== --- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK11Hooks.java (original) +++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK11Hooks.java Sun Apr 3 18:35:46 2011 @@ -99,7 +99,7 @@ public class JDK11Hooks extends JDKHooks * and eliminate the redundent element. */ - final URL first = (URL)loader.getResource(resourceName); + final URL first = loader.getResource(resourceName); final Enumeration<URL> rest = loader.getResources(resourceName); return new Enumeration<URL>() { Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java?rev=1088372&r1=1088371&r2=1088372&view=diff ============================================================================== --- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java (original) +++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java Sun Apr 3 18:35:46 2011 @@ -209,7 +209,7 @@ public class JDK12Hooks extends JDKHooks */ n = null; while (rest.hasMoreElements() && n == null) { - n = (URL)rest.nextElement(); + n = rest.nextElement(); if (first != null && n != null && n.equals(first))