Removed some more warnings

pull/14/head
Tim Su 14 years ago
parent 3d2a67741e
commit 38529e515c

@ -5,7 +5,6 @@ import java.util.HashMap;
import android.database.Cursor; import android.database.Cursor;
import com.todoroo.astrid.backup.BackupDateUtilities;
import com.todoroo.astrid.legacy.data.AbstractController; import com.todoroo.astrid.legacy.data.AbstractController;
import com.todoroo.astrid.legacy.data.enums.RepeatInterval; import com.todoroo.astrid.legacy.data.enums.RepeatInterval;
@ -56,15 +55,6 @@ public class TaskModelForXml extends AbstractTaskModel {
taskAttributesMap = new HashMap<String, String>(FIELD_LIST.length); taskAttributesMap = new HashMap<String, String>(FIELD_LIST.length);
} }
/* Safely add a value from a date field (in case of null values) to the
taskAttributesMap.
*/
private void safePutDate(String field, Date value) {
if (value != null) {
taskAttributesMap.put(field, BackupDateUtilities.getIso8601String(value));
}
}
// --- getters and setters // --- getters and setters
@Override @Override

@ -35,6 +35,7 @@ import com.todoroo.astrid.tags.TagService;
import com.todoroo.astrid.tags.TagService.Tag; import com.todoroo.astrid.tags.TagService.Tag;
import com.todoroo.astrid.test.DatabaseTestCase; import com.todoroo.astrid.test.DatabaseTestCase;
@SuppressWarnings("deprecation")
public class Astrid2To3UpgradeTests extends DatabaseTestCase { public class Astrid2To3UpgradeTests extends DatabaseTestCase {
// --- legacy table names // --- legacy table names

Loading…
Cancel
Save