commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: svn commit: r1088302 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClass.java
Date Sun, 03 Apr 2011 17:34:10 GMT
thanks! of course it wasn't my intention :P

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Sun, Apr 3, 2011 at 3:53 PM,  <sebb@apache.org> wrote:
> Author: sebb
> Date: Sun Apr  3 13:53:54 2011
> New Revision: 1088302
>
> URL: http://svn.apache.org/viewvc?rev=1088302&view=rev
> Log:
> Casting once is normally sufficient ...
>
> Modified:
>    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClass.java
>
> Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClass.java
> URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClass.java?rev=1088302&r1=1088301&r2=1088302&view=diff
> ==============================================================================
> --- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClass.java
(original)
> +++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClass.java
Sun Apr  3 13:53:54 2011
> @@ -76,7 +76,7 @@ public class ResourceClass<T> extends Re
>                     public Class<? extends T> run() {
>                         try {
>                             @SuppressWarnings("unchecked") // this can
raise a ClassCastException at runtime
> -                            Class<S> returned = (Class<S>)
 (Class<S>) getClassLoader().loadClass(getName());
> +                            Class<S> returned = (Class<S>)
getClassLoader().loadClass(getName());
>                             return returned;
>                         } catch (ClassNotFoundException e) {
>                             return null;
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message