@Inject
public SubAlarmDAOImpl(DBI db) {
this.db = db;
}
@Override
<BUG>public List<SubAlarm> find(MetricDefinition metricDefinition) {
</BUG>
Handle h = db.open();
try {
<BUG>String sql = null;
if (metricDefinition.dimensions == null || metricDefinition.dimensions.isEmpty())</BUG>
sql = FIND_BY_METRIC_DEF_NO_DIMS_SQL;

@Inject
public SubAlarmDAOImpl(DBI db) {
this.db = db;
}
@Override
public List<SubAlarm> find(MetricDefinitionAndTenantId metricDefinitionTenantId) {
Handle h = db.open();
try {
final MetricDefinition metricDefinition = metricDefinitionTenantId.metricDefinition;
final String sql;
if (metricDefinition.dimensions == null || metricDefinition.dimensions.isEmpty())
sql = FIND_BY_METRIC_DEF_NO_DIMS_SQL;
