[mule-scm] [mule][25314] branches/mule-3.2.x/core/src/main/java/org/mule/util/store/ MuleObjectStoreManager.java: MULE-6064 - fixing generics usage

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[mule-scm] [mule][25314] branches/mule-3.2.x/core/src/main/java/org/mule/util/store/ MuleObjectStoreManager.java: MULE-6064 - fixing generics usage

pablo.lagreca
[mule][25314] branches/mule-3.2.x/core/src/main/java/org/mule/util/store/MuleObjectStoreManager.java: MULE-6064 - fixing generics usage
Revision
25314
Author
pablo.lagreca
Date
2013-02-27 14:18:03 -0600 (Wed, 27 Feb 2013)

Log Message

MULE-6064 - fixing generics usage

Modified Paths

Diff

Modified: branches/mule-3.2.x/core/src/main/java/org/mule/util/store/MuleObjectStoreManager.java (25313 => 25314)


--- branches/mule-3.2.x/core/src/main/java/org/mule/util/store/MuleObjectStoreManager.java	2013-02-27 19:27:40 UTC (rev 25313)
+++ branches/mule-3.2.x/core/src/main/java/org/mule/util/store/MuleObjectStoreManager.java	2013-02-27 20:18:03 UTC (rev 25314)
@@ -62,7 +62,7 @@
     }
 
     @SuppressWarnings({"unchecked"})
-    synchronized public <T extends ObjectStore<? extends Serializable>> T internalCreateStore(ListableObjectStore<?> baseStore, String name,
+    synchronized public <T extends ObjectStore<? extends Serializable>> T internalCreateStore(ListableObjectStore<? extends Serializable> baseStore, String name,
                                                                                               int maxEntries,
                                                                                               int entryTTL,
                                                                                               int expirationInterval)
@@ -91,24 +91,24 @@
         }
     }
 
-    private ListableObjectStore<?> getBaseStore(boolean persistent)
+    private ListableObjectStore<? extends Serializable> getBaseStore(boolean persistent)
     {
         ListableObjectStore<?> baseStore;
         if (persistent)
         {
-            baseStore = (ListableObjectStore<?>) muleContext.getRegistry().lookupObject(
+            baseStore = (ListableObjectStore<? extends Serializable>) muleContext.getRegistry().lookupObject(
                     MuleProperties.OBJECT_STORE_DEFAULT_PERSISTENT_NAME);
         }
         else
         {
-            baseStore =  (ListableObjectStore<?>) muleContext.getRegistry().lookupObject(
+            baseStore =  (ListableObjectStore<? extends Serializable>) muleContext.getRegistry().lookupObject(
                     MuleProperties.OBJECT_STORE_DEFAULT_IN_MEMORY_NAME);
         }
         return baseStore;
     }
 
     @SuppressWarnings({"rawtypes", "unchecked"})
-    private <T extends ObjectStore<? extends Serializable>> T getPartitionFromBaseObjectStore(ListableObjectStore baseStore, String partitionName) throws ObjectStoreException
+    private <T extends ObjectStore<? extends Serializable>> T getPartitionFromBaseObjectStore(ListableObjectStore<? extends Serializable> baseStore, String partitionName) throws ObjectStoreException
     {
         if (baseStore instanceof PartitionableObjectStore)
         {

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email