No effective change - suppress warnings, simplify if

This commit is contained in:
Robin Bygrave
2015-08-01 21:16:03 +12:00
parent 6e5e5fb666
commit 0d2615522f
15 changed files with 51 additions and 60 deletions
@@ -123,15 +123,13 @@ public class Statistics implements Serializable {
*/
public void collectUsageInfo(NodeUsageCollector profile) {
if (profile.isEmpty()){
// no usage was collected
} else {
ObjectGraphNode node = profile.getNode();
StatisticsNodeUsage nodeStats = getNodeStats(node.getPath());
nodeStats.publish(profile);
}
}
if (!profile.isEmpty()) {
ObjectGraphNode node = profile.getNode();
StatisticsNodeUsage nodeStats = getNodeStats(node.getPath());
nodeStats.publish(profile);
}
}
private StatisticsNodeUsage getNodeStats(String path) {