[
https://issues.apache.org/jira/browse/MAVIBOT-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13734430#comment-13734430
]
Stefan Seelmann commented on MAVIBOT-2:
---------------------------------------
I think at least the method signatures we can add type parameters. Within the
method implementation we still need to cast and get warnings. But for the
caller all looks clean. I tested it for two methods:
- public <K, V> BTree<K, V> getManagedTree( String name )
- public <K, V> BTree<K, V> addBTree( String name, ElementSerializer<K>
keySerializer, ElementSerializer<V> valueSerializer, boolean allowDuplicates )
> Unchecked assignment in RecordManager.addBTree
> ----------------------------------------------
>
> Key: MAVIBOT-2
> URL: https://issues.apache.org/jira/browse/MAVIBOT-2
> Project: Mavibot
> Issue Type: Improvement
> Affects Versions: 1.0.0-M1
> Reporter: David Gageot
> Assignee: Emmanuel Lecharny
> Priority: Minor
>
> RecordManager.addBTree should not return a raw Btree but a Btree<K,V>
> Same goes for all methods that return Btrees
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira