/*******************************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 2011, 2012 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* root node is created for each tree. Using the tree node ID the statistics
* tree can be retrieved.
*
+ * @author Mathieu Denis
* @version 2.0
* @since 2.0
- * @author Mathieu Denis
*/
public class TmfStatisticsTreeManager {
if (tree == null) {
return null;
}
- return tree.getOrCreate(TmfStatisticsTree.ROOT);
+ return tree.getRootNode();
}
/**
return null;
}
fTreeInstances.put(traceUniqueId, statsData);
- // if called for the first time, create the root node
- return statsData.getOrCreate(TmfStatisticsTree.ROOT);
+ return statsData.getRootNode();
}
/**