abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r773610 - /abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Discover.java
Date Mon, 11 May 2009 15:53:16 GMT
Author: jmsnell
Date: Mon May 11 15:53:15 2009
New Revision: 773610

URL: http://svn.apache.org/viewvc?rev=773610&view=rev
Log:
Fix compiler error

Modified:
    abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Discover.java

Modified: abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Discover.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Discover.java?rev=773610&r1=773609&r2=773610&view=diff
==============================================================================
--- abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Discover.java (original)
+++ abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Discover.java Mon May 11 15:53:15
2009
@@ -20,7 +20,7 @@
     String id, 
     String defaultImpl, 
     Object... args) {
-      return locate(
+      return (T)locate(
         id,
         defaultImpl,
         getLoader(),
@@ -45,7 +45,7 @@
         }
         if (instance == null) {
           instance = 
-            load(
+            (T)load(
               loader,
               defaultImpl,
               false,
@@ -189,7 +189,7 @@
     } 
     protected T create(String spec, Object[] args) {
       try {
-        return load(cl,spec,classesonly,args);
+        return (T)load(cl,spec,classesonly,args);
       } catch (RuntimeException e) {
         throw e;
       } catch (Throwable t) {



Mime
View raw message