import javax.annotation.Nullable;
import java.sql.*;
-import java.util.Comparator;
-import java.util.List;
+import java.sql.Date;
+import java.util.*;
class MeasureFilterSql {
}
private void appendDateConditions(StringBuilder sb) {
- if (filter.getFromDate() != null) {
+ java.util.Date fromDate = filter.getFromDate();
+ if (fromDate != null) {
sb.append(" AND s.created_at >= ? ");
- dateParameters.add(new Date(filter.getFromDate().getTime()));
+ dateParameters.add(new Date(fromDate.getTime()));
}
- if (filter.getToDate() != null) {
+ java.util.Date toDate = filter.getToDate();
+ if (toDate != null) {
sb.append(" AND s.created_at <= ? ");
- dateParameters.add(new Date(filter.getToDate().getTime()));
+ dateParameters.add(new Date(toDate.getTime()));
}
}
*/
package org.sonar.api.batch.rule;
-import com.google.common.annotations.Beta;
import org.sonar.api.batch.debt.DebtRemediationFunction;
import org.sonar.api.rule.RuleKey;
import org.sonar.api.rule.RuleStatus;
import javax.annotation.CheckForNull;
-
import java.util.Collection;
/**