mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 03:50:19 +02:00
unnecessary cast
This commit is contained in:
parent
be93250e6d
commit
06fa6d9f76
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ public abstract class TreeActivity<T extends FBTree> extends ListActivity {
|
|||
protected void init(Intent intent) {
|
||||
final FBTree.Key key = (FBTree.Key)intent.getSerializableExtra(TREE_KEY_KEY);
|
||||
final FBTree.Key selectedKey = (FBTree.Key)intent.getSerializableExtra(SELECTED_TREE_KEY_KEY);
|
||||
myCurrentTree = (T)getTreeByKey(key);
|
||||
myCurrentTree = getTreeByKey(key);
|
||||
// not myCurrentKey = key
|
||||
// because key might be null
|
||||
myCurrentKey = myCurrentTree.getUniqueKey();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue