abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r420813 - /incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/opensearch/OpenSearchExtensionFactory.java
Date Tue, 11 Jul 2006 12:12:37 GMT
Author: rooneg
Date: Tue Jul 11 05:12:36 2006
New Revision: 420813

URL: http://svn.apache.org/viewvc?rev=420813&view=rev
Log:
Add a cast to keep the compiler happy.

Pointed out by: Charles Adkins <formofmind gmail.com>

[ in extensions/src/main/java/org/apache/abdera/ext/opensearch ]

* OpenSearchExtensionFactory.java
  (OpenSearchExtensionFactory.newExtensionElement): Add a cast to T.

Modified:
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/opensearch/OpenSearchExtensionFactory.java

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/opensearch/OpenSearchExtensionFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/opensearch/OpenSearchExtensionFactory.java?rev=420813&r1=420812&r2=420813&view=diff
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/opensearch/OpenSearchExtensionFactory.java
(original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/opensearch/OpenSearchExtensionFactory.java
Tue Jul 11 05:12:36 2006
@@ -48,7 +48,7 @@
                                                    Base base,
                                                    Factory factory)
   {
-    return newExtensionElement(qname, base, factory, null);
+    return (T) newExtensionElement(qname, base, factory, null);
   }
 
   @SuppressWarnings("unchecked")
@@ -60,7 +60,7 @@
     OMContainer cbase = (OMContainer) base;
     OMFactory cfactory = (OMFactory) factory;
     if (OpenSearchConstants.TOTAL_RESULTS.equals(qname)) {
-      return (parserWrapper != null) ? 
+      return (parserWrapper != null) ?
         (T) new FOMTotalResults(qname, cbase, cfactory, parserWrapper) :
         (T) new FOMTotalResults(qname, cbase, cfactory);
     }



Mime
View raw message