diff --git a/api/src/com/todoroo/andlib/data/AbstractDatabase.java b/api/src/com/todoroo/andlib/data/AbstractDatabase.java index a5843c293..a14cd6cb7 100644 --- a/api/src/com/todoroo/andlib/data/AbstractDatabase.java +++ b/api/src/com/todoroo/andlib/data/AbstractDatabase.java @@ -39,7 +39,6 @@ import com.todoroo.andlib.utility.AndroidUtilities; * @author Tim Su * */ -@SuppressWarnings("nls") abstract public class AbstractDatabase { // --- abstract methods diff --git a/api/src/com/todoroo/andlib/data/AbstractModel.java b/api/src/com/todoroo/andlib/data/AbstractModel.java index 45a9143c3..2458a115d 100644 --- a/api/src/com/todoroo/andlib/data/AbstractModel.java +++ b/api/src/com/todoroo/andlib/data/AbstractModel.java @@ -145,7 +145,6 @@ public abstract class AbstractModel implements Parcelable, Cloneable { } @Override - @SuppressWarnings("nls") public String toString() { StringBuilder builder = new StringBuilder(); builder.append(getClass().getSimpleName()).append("\n") diff --git a/api/src/com/todoroo/andlib/data/Property.java b/api/src/com/todoroo/andlib/data/Property.java index c6b66406b..4d1560e8c 100644 --- a/api/src/com/todoroo/andlib/data/Property.java +++ b/api/src/com/todoroo/andlib/data/Property.java @@ -28,7 +28,6 @@ import com.todoroo.andlib.sql.UnaryCriterion; * @param * a database supported type, such as String or Integer */ -@SuppressWarnings("nls") public abstract class Property extends Field implements Cloneable { // --- implementation diff --git a/api/src/com/todoroo/andlib/data/Table.java b/api/src/com/todoroo/andlib/data/Table.java index c09131734..46ac7cb2d 100644 --- a/api/src/com/todoroo/andlib/data/Table.java +++ b/api/src/com/todoroo/andlib/data/Table.java @@ -34,7 +34,6 @@ public final class Table extends SqlTable { * Reads a list of properties from model class by reflection * @return property array */ - @SuppressWarnings("nls") public Property[] getProperties() { try { return (Property[])modelClass.getField("PROPERTIES").get(null); @@ -64,7 +63,6 @@ public final class Table extends SqlTable { * @param property * @return */ - @SuppressWarnings("nls") public Field field(Property property) { if(alias != null) { return Field.field(alias + "." + property.name); @@ -86,4 +84,4 @@ public final class Table extends SqlTable { } return name; } -} \ No newline at end of file +} diff --git a/api/src/com/todoroo/andlib/data/package-info.java b/api/src/com/todoroo/andlib/data/package-info.java index 3be4c791d..d63e49e7b 100644 --- a/api/src/com/todoroo/andlib/data/package-info.java +++ b/api/src/com/todoroo/andlib/data/package-info.java @@ -2,4 +2,4 @@ * Todoroo Library classes for the data layer: accessing data from a database or * {@link ContentResolver} */ -package com.todoroo.andlib.data; \ No newline at end of file +package com.todoroo.andlib.data; diff --git a/api/src/com/todoroo/andlib/service/DependencyInjectionService.java b/api/src/com/todoroo/andlib/service/DependencyInjectionService.java index 1d861bf83..51175da76 100644 --- a/api/src/com/todoroo/andlib/service/DependencyInjectionService.java +++ b/api/src/com/todoroo/andlib/service/DependencyInjectionService.java @@ -38,7 +38,6 @@ public class DependencyInjectionService { * @param caller * object to perform DI on */ - @SuppressWarnings("nls") public void inject(Object caller) { // Traverse through class and all parent classes, looking for // fields declared with the @Autowired annotation and using @@ -73,7 +72,6 @@ public class DependencyInjectionService { } } - @SuppressWarnings("nls") private boolean isQualifiedPackage(String packageName) { if(packageName.startsWith("com.todoroo")) { return true; @@ -96,7 +94,6 @@ public class DependencyInjectionService { * @param field * field to inject */ - @SuppressWarnings("nls") private synchronized void handleField(Object caller, Field field) throws IllegalStateException, IllegalArgumentException, IllegalAccessException { @@ -130,7 +127,6 @@ public class DependencyInjectionService { // --- default dependency injector private class DefaultDependencyInjector extends AbstractDependencyInjector { - @SuppressWarnings("nls") @Override protected void addInjectables() { injectables.put("debug", false); diff --git a/api/src/com/todoroo/andlib/service/HttpRestClient.java b/api/src/com/todoroo/andlib/service/HttpRestClient.java index 00bbc1a1c..8e26de7bf 100644 --- a/api/src/com/todoroo/andlib/service/HttpRestClient.java +++ b/api/src/com/todoroo/andlib/service/HttpRestClient.java @@ -61,7 +61,6 @@ public class HttpRestClient implements RestClient { private int timeout = TIMEOUT_MILLIS; - @SuppressWarnings("nls") public HttpRestClient() { DependencyInjectionService.getInstance().inject(this); @@ -101,7 +100,6 @@ public class HttpRestClient implements RestClient { return httpClient.get(); } - @SuppressWarnings("nls") protected void actsAsGzippable(DefaultHttpClient client) { client.addRequestInterceptor(new HttpRequestInterceptor() { @Override diff --git a/api/src/com/todoroo/andlib/service/RestClient.java b/api/src/com/todoroo/andlib/service/RestClient.java index 5c0851835..6b9e5e1b3 100644 --- a/api/src/com/todoroo/andlib/service/RestClient.java +++ b/api/src/com/todoroo/andlib/service/RestClient.java @@ -19,4 +19,4 @@ import org.apache.http.HttpEntity; public interface RestClient { public String get(String url) throws IOException; public String post(String url, HttpEntity data, Header... headers) throws IOException; -} \ No newline at end of file +} diff --git a/api/src/com/todoroo/andlib/service/package-info.java b/api/src/com/todoroo/andlib/service/package-info.java index eab263732..3392896b0 100644 --- a/api/src/com/todoroo/andlib/service/package-info.java +++ b/api/src/com/todoroo/andlib/service/package-info.java @@ -2,4 +2,4 @@ * Todoroo Library classes for the service layer: dependency injection, * exceptions, HTTP requests, etc. */ -package com.todoroo.andlib.service; \ No newline at end of file +package com.todoroo.andlib.service; diff --git a/api/src/com/todoroo/andlib/sql/Field.java b/api/src/com/todoroo/andlib/sql/Field.java index 0c4a1ce23..ad0a8a7c7 100644 --- a/api/src/com/todoroo/andlib/sql/Field.java +++ b/api/src/com/todoroo/andlib/sql/Field.java @@ -37,7 +37,6 @@ public class Field extends DBObject { * @param value string which field must equal * @return the criterion */ - @SuppressWarnings("nls") public Criterion eqCaseInsensitive(String value) { if(value == null) { return UnaryCriterion.isNull(this); diff --git a/api/src/com/todoroo/andlib/sql/Functions.java b/api/src/com/todoroo/andlib/sql/Functions.java index 1436f1857..2e3604f80 100644 --- a/api/src/com/todoroo/andlib/sql/Functions.java +++ b/api/src/com/todoroo/andlib/sql/Functions.java @@ -12,7 +12,6 @@ import com.todoroo.andlib.data.Property.StringProperty; -@SuppressWarnings("nls") public final class Functions { public static String caseStatement(Criterion when, Object ifTrue, Object ifFalse) { diff --git a/api/src/com/todoroo/andlib/sql/Join.java b/api/src/com/todoroo/andlib/sql/Join.java index b318bb005..7cd9fa13b 100644 --- a/api/src/com/todoroo/andlib/sql/Join.java +++ b/api/src/com/todoroo/andlib/sql/Join.java @@ -38,7 +38,6 @@ public class Join { } @Override - @SuppressWarnings("nls") public String toString() { StringBuilder sb = new StringBuilder(); sb.append(joinType).append(SPACE).append(JOIN).append(SPACE).append(joinTable).append(SPACE).append(ON).append(SPACE).append("("); diff --git a/api/src/com/todoroo/andlib/sql/Operator.java b/api/src/com/todoroo/andlib/sql/Operator.java index 5e28d8e79..f8d551d1d 100644 --- a/api/src/com/todoroo/andlib/sql/Operator.java +++ b/api/src/com/todoroo/andlib/sql/Operator.java @@ -10,7 +10,6 @@ import static com.todoroo.andlib.sql.SqlConstants.SPACE; import java.util.HashMap; import java.util.Map; -@SuppressWarnings("nls") public final class Operator { private final String operator; diff --git a/api/src/com/todoroo/andlib/sql/Query.java b/api/src/com/todoroo/andlib/sql/Query.java index 35873c91b..0bdead45f 100644 --- a/api/src/com/todoroo/andlib/sql/Query.java +++ b/api/src/com/todoroo/andlib/sql/Query.java @@ -145,7 +145,6 @@ public final class Query { sql.deleteCharAt(sql.length() - 1).append(SPACE); } - @SuppressWarnings("nls") private void visitGroupByClause(StringBuilder sql) { if (groupBies.isEmpty()) { return; @@ -303,7 +302,6 @@ public final class Query { public static class QueryTemplateHelper { /** build a content resolver query */ - @SuppressWarnings("nls") public static void queryForContentResolver(String queryTemplate, StringBuilder selectionClause, StringBuilder orderClause, StringBuilder groupByClause) { diff --git a/api/src/com/todoroo/andlib/sql/QueryTemplate.java b/api/src/com/todoroo/andlib/sql/QueryTemplate.java index 1579cccc1..111f8672c 100644 --- a/api/src/com/todoroo/andlib/sql/QueryTemplate.java +++ b/api/src/com/todoroo/andlib/sql/QueryTemplate.java @@ -75,7 +75,6 @@ public final class QueryTemplate { sql.deleteCharAt(sql.length() - 1).append(SPACE); } - @SuppressWarnings("nls") private void visitGroupByClause(StringBuilder sql) { if (groupBies.isEmpty()) { return; diff --git a/api/src/com/todoroo/andlib/sql/SqlConstants.java b/api/src/com/todoroo/andlib/sql/SqlConstants.java index d6ffaafe2..aadd247dd 100644 --- a/api/src/com/todoroo/andlib/sql/SqlConstants.java +++ b/api/src/com/todoroo/andlib/sql/SqlConstants.java @@ -5,7 +5,6 @@ */ package com.todoroo.andlib.sql; -@SuppressWarnings("nls") public final class SqlConstants { public static final String SELECT = "SELECT"; public static final String DISTINCT = "DISTINCT"; diff --git a/api/src/com/todoroo/andlib/sql/SqlTable.java b/api/src/com/todoroo/andlib/sql/SqlTable.java index a486df954..04e3d8c2d 100644 --- a/api/src/com/todoroo/andlib/sql/SqlTable.java +++ b/api/src/com/todoroo/andlib/sql/SqlTable.java @@ -15,7 +15,6 @@ public class SqlTable extends DBObject { return new SqlTable(table); } - @SuppressWarnings("nls") protected String fieldExpression(String fieldName) { if (hasAlias()) { return alias + "." + fieldName; diff --git a/api/src/com/todoroo/andlib/sql/UnaryCriterion.java b/api/src/com/todoroo/andlib/sql/UnaryCriterion.java index 26ba3e47e..374b941d8 100644 --- a/api/src/com/todoroo/andlib/sql/UnaryCriterion.java +++ b/api/src/com/todoroo/andlib/sql/UnaryCriterion.java @@ -36,7 +36,6 @@ public class UnaryCriterion extends Criterion { sb.append(operator); } - @SuppressWarnings("nls") protected void afterPopulateOperator(StringBuilder sb) { if(value == null) { return; @@ -52,7 +51,6 @@ public class UnaryCriterion extends Criterion { * @param input * @return */ - @SuppressWarnings("nls") public static String sanitize(String input) { return input.replace("'", "''"); } @@ -110,7 +108,6 @@ public class UnaryCriterion extends Criterion { protected void populateOperator(StringBuilder sb) { sb.append(SPACE).append(operator).append(SPACE); } - @SuppressWarnings("nls") @Override protected void afterPopulateOperator(StringBuilder sb) { super.afterPopulateOperator(sb); diff --git a/api/src/com/todoroo/andlib/sql/package-info.java b/api/src/com/todoroo/andlib/sql/package-info.java index e8d170b15..e647fcf38 100644 --- a/api/src/com/todoroo/andlib/sql/package-info.java +++ b/api/src/com/todoroo/andlib/sql/package-info.java @@ -1,4 +1,4 @@ /** * Fork of sql-dsl */ -package com.todoroo.andlib.sql; \ No newline at end of file +package com.todoroo.andlib.sql; diff --git a/api/src/com/todoroo/andlib/utility/AndroidUtilities.java b/api/src/com/todoroo/andlib/utility/AndroidUtilities.java index 22050a34c..f78b10e79 100644 --- a/api/src/com/todoroo/andlib/utility/AndroidUtilities.java +++ b/api/src/com/todoroo/andlib/utility/AndroidUtilities.java @@ -411,7 +411,6 @@ public class AndroidUtilities { public void put(T object, String key, char type, String value) throws NumberFormatException; } - @SuppressWarnings("nls") private static void fromSerialized(String string, T object, SerializedPut putter) { String[] pairs = string.split("\\" + SERIALIZATION_SEPARATOR); //$NON-NLS-1$ for(int i = 0; i < pairs.length; i += 2) { @@ -438,7 +437,6 @@ public class AndroidUtilities { * @param string * @return */ - @SuppressWarnings("nls") public static ContentValues contentValuesFromString(String string) { if(string == null) { return null; @@ -665,7 +663,6 @@ public class AndroidUtilities { * @param args arguments * @return method return value, or null if nothing was called or exception */ - @SuppressWarnings("nls") public static Object callApiStaticMethod(int minSdk, String className, String methodName, Class[] params, Object... args) { if(getSdkVersion() < minSdk) { @@ -690,7 +687,6 @@ public class AndroidUtilities { * @param args arguments * @return method return value, or null if nothing was called or exception */ - @SuppressWarnings("nls") public static Object callMethod(Class cls, Object receiver, String methodName, Class[] params, Object... args) { try { @@ -771,7 +767,6 @@ public class AndroidUtilities { * @param input * @return */ - @SuppressWarnings("nls") public static String md5(String input) { try { byte[] bytesOfMessage = input.getBytes("UTF-8"); @@ -1008,7 +1003,6 @@ public class AndroidUtilities { * @param file * @return */ - @SuppressWarnings("nls") public static String getFileExtension(String file) { int index = file.lastIndexOf('.'); String extension = ""; @@ -1024,7 +1018,6 @@ public class AndroidUtilities { /** * Logs a JSONObject using in a readable way */ - @SuppressWarnings("nls") public static void logJSONObject(String tag, JSONObject object) { if (object == null) { Log.e(tag, "JSONOBject: null"); diff --git a/api/src/com/todoroo/andlib/utility/DateUtilities.java b/api/src/com/todoroo/andlib/utility/DateUtilities.java index 43884ba79..d41f4e303 100644 --- a/api/src/com/todoroo/andlib/utility/DateUtilities.java +++ b/api/src/com/todoroo/andlib/utility/DateUtilities.java @@ -99,7 +99,6 @@ public class DateUtilities { * @param date time to format * @return time, with hours and minutes */ - @SuppressWarnings("nls") public static String getTimeString(Context context, Date date, boolean excludeZeroMinutes) { String value; if (is24HourFormat(context)) { @@ -128,7 +127,6 @@ public class DateUtilities { * @param date date to format * @return date, with month, day, and year */ - @SuppressWarnings("nls") public static String getDateString(Context context, Date date, boolean includeYear) { String month = DateUtils.getMonthString(date.getMonth() + Calendar.JANUARY, DateUtils.LENGTH_MEDIUM); @@ -163,7 +161,6 @@ public class DateUtilities { * @param date date to format * @return date, with month, day, and year */ - @SuppressWarnings("nls") public static String getDateStringHideYear(Context context, Date date) { String month = DateUtils.getMonthString(date.getMonth() + Calendar.JANUARY, DateUtils.LENGTH_MEDIUM); @@ -194,7 +191,6 @@ public class DateUtilities { /** * @return date format as getDateFormat with weekday */ - @SuppressWarnings("nls") public static String getDateStringWithWeekday(Context context, Date date) { String weekday = getWeekday(date); return weekday + ", " + getDateString(context, date); @@ -220,7 +216,6 @@ public class DateUtilities { /** * @return date format as getDateFormat with weekday */ - @SuppressWarnings("nls") public static String getDateStringWithTimeAndWeekday(Context context, Date date) { return getDateStringWithWeekday(context, date) + " " + getTimeString(context, date); } @@ -228,7 +223,6 @@ public class DateUtilities { /** * @return date with time at the end */ - @SuppressWarnings("nls") public static String getDateStringWithTime(Context context, Date date) { return getDateString(context, date) + " " + getTimeString(context, date); } diff --git a/api/src/com/todoroo/andlib/utility/DialogUtilities.java b/api/src/com/todoroo/andlib/utility/DialogUtilities.java index ac9c4dffd..888b96dce 100644 --- a/api/src/com/todoroo/andlib/utility/DialogUtilities.java +++ b/api/src/com/todoroo/andlib/utility/DialogUtilities.java @@ -55,7 +55,6 @@ public class DialogUtilities { * @param html * @param title */ - @SuppressWarnings("nls") public static void htmlDialog(Context context, String html, int title) { WebView webView = new WebView(context); webView.loadDataWithBaseURL("file:///android_asset/", html, "text/html", "utf-8", null); diff --git a/api/src/com/todoroo/andlib/utility/TodorooPreferenceActivity.java b/api/src/com/todoroo/andlib/utility/TodorooPreferenceActivity.java index cce5f6919..06e44c239 100644 --- a/api/src/com/todoroo/andlib/utility/TodorooPreferenceActivity.java +++ b/api/src/com/todoroo/andlib/utility/TodorooPreferenceActivity.java @@ -100,4 +100,4 @@ abstract public class TodorooPreferenceActivity extends PreferenceActivity { } } -} \ No newline at end of file +} diff --git a/api/src/com/todoroo/andlib/utility/package-info.java b/api/src/com/todoroo/andlib/utility/package-info.java index d8457ff4e..25441d72d 100644 --- a/api/src/com/todoroo/andlib/utility/package-info.java +++ b/api/src/com/todoroo/andlib/utility/package-info.java @@ -1,4 +1,4 @@ /** * Todoroo Library utility classes */ -package com.todoroo.andlib.utility; \ No newline at end of file +package com.todoroo.andlib.utility; diff --git a/api/src/com/todoroo/astrid/api/AstridApiConstants.java b/api/src/com/todoroo/astrid/api/AstridApiConstants.java index 4f691b911..d03114730 100644 --- a/api/src/com/todoroo/astrid/api/AstridApiConstants.java +++ b/api/src/com/todoroo/astrid/api/AstridApiConstants.java @@ -13,7 +13,6 @@ import android.widget.RemoteViews; * * @author Tim Su */ -@SuppressWarnings("nls") public class AstridApiConstants { // --- General Constants diff --git a/api/src/com/todoroo/astrid/api/FilterCategoryWithNewButton.java b/api/src/com/todoroo/astrid/api/FilterCategoryWithNewButton.java index eb460711a..4a483c20b 100644 --- a/api/src/com/todoroo/astrid/api/FilterCategoryWithNewButton.java +++ b/api/src/com/todoroo/astrid/api/FilterCategoryWithNewButton.java @@ -72,7 +72,6 @@ public class FilterCategoryWithNewButton extends FilterCategory { /** * Parcelable creator */ - @SuppressWarnings("hiding") public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { /** diff --git a/api/src/com/todoroo/astrid/api/FilterWithCustomIntent.java b/api/src/com/todoroo/astrid/api/FilterWithCustomIntent.java index 2becb3443..1deceaace 100644 --- a/api/src/com/todoroo/astrid/api/FilterWithCustomIntent.java +++ b/api/src/com/todoroo/astrid/api/FilterWithCustomIntent.java @@ -87,7 +87,6 @@ public class FilterWithCustomIntent extends Filter { /** * Parcelable Creator Object */ - @SuppressWarnings("hiding") public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { /** diff --git a/api/src/com/todoroo/astrid/api/FilterWithUpdate.java b/api/src/com/todoroo/astrid/api/FilterWithUpdate.java index d7413cbd3..4f7034589 100644 --- a/api/src/com/todoroo/astrid/api/FilterWithUpdate.java +++ b/api/src/com/todoroo/astrid/api/FilterWithUpdate.java @@ -68,7 +68,6 @@ public class FilterWithUpdate extends FilterWithCustomIntent { /** * Parcelable Creator Object */ - @SuppressWarnings("hiding") public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { /** diff --git a/api/src/com/todoroo/astrid/api/package-info.java b/api/src/com/todoroo/astrid/api/package-info.java index c1d700d1e..9f7bf2117 100644 --- a/api/src/com/todoroo/astrid/api/package-info.java +++ b/api/src/com/todoroo/astrid/api/package-info.java @@ -1,4 +1,4 @@ /** * Astrid API constants and container packages */ -package com.todoroo.astrid.api; \ No newline at end of file +package com.todoroo.astrid.api; diff --git a/api/src/com/todoroo/astrid/core/SortHelper.java b/api/src/com/todoroo/astrid/core/SortHelper.java index f6d2b0805..9a4a64feb 100644 --- a/api/src/com/todoroo/astrid/core/SortHelper.java +++ b/api/src/com/todoroo/astrid/core/SortHelper.java @@ -45,7 +45,6 @@ public class SortHelper { * @param sort * @return */ - @SuppressWarnings("nls") public static String adjustQueryForFlagsAndSort(String originalSql, int flags, int sort) { // sort if(originalSql == null) { @@ -89,7 +88,6 @@ public class SortHelper { return flags; } - @SuppressWarnings("nls") public static Order orderForSortType(int sortType) { Order order; switch(sortType) { @@ -124,7 +122,6 @@ public class SortHelper { * Returns SQL task ordering that is astrid's default algorithm * @return */ - @SuppressWarnings("nls") public static Order defaultTaskOrder() { return Order.asc(Functions.caseStatement(Task.DUE_DATE.eq(0), Functions.now() + "*2", @@ -132,7 +129,6 @@ public class SortHelper { Task.IMPORTANCE + " + 2*" + Task.COMPLETION_DATE); } - @SuppressWarnings("nls") private static String adjustedDueDateFunction() { return new StringBuilder("(CASE WHEN (").append(Task.DUE_DATE.name).append(" / 1000) % 60 > 0") .append(" THEN ").append(Task.DUE_DATE.name).append(" ELSE ").append("(").append(Task.DUE_DATE.name) diff --git a/api/src/com/todoroo/astrid/data/History.java b/api/src/com/todoroo/astrid/data/History.java index fb34d63c2..f0cedb01e 100644 --- a/api/src/com/todoroo/astrid/data/History.java +++ b/api/src/com/todoroo/astrid/data/History.java @@ -11,7 +11,6 @@ import com.todoroo.andlib.data.Table; import com.todoroo.andlib.data.TodorooCursor; import com.todoroo.astrid.api.AstridApiConstants; -@SuppressWarnings("nls") public class History extends AbstractModel { /** table for this model */ diff --git a/api/src/com/todoroo/astrid/data/Metadata.java b/api/src/com/todoroo/astrid/data/Metadata.java index 0ef33eec8..e8eac2ca6 100644 --- a/api/src/com/todoroo/astrid/data/Metadata.java +++ b/api/src/com/todoroo/astrid/data/Metadata.java @@ -23,7 +23,6 @@ import com.todoroo.astrid.api.AstridApiConstants; * @author Tim Su * */ -@SuppressWarnings("nls") public class Metadata extends AbstractModel { // --- table diff --git a/api/src/com/todoroo/astrid/data/OutstandingEntry.java b/api/src/com/todoroo/astrid/data/OutstandingEntry.java index 879281869..f70ed448d 100644 --- a/api/src/com/todoroo/astrid/data/OutstandingEntry.java +++ b/api/src/com/todoroo/astrid/data/OutstandingEntry.java @@ -4,7 +4,6 @@ import com.todoroo.andlib.data.AbstractModel; import com.todoroo.andlib.data.Property.LongProperty; import com.todoroo.andlib.data.Property.StringProperty; -@SuppressWarnings("nls") public abstract class OutstandingEntry extends AbstractModel { public static final String ENTITY_ID_PROPERTY_NAME = "entityId"; diff --git a/api/src/com/todoroo/astrid/data/RemoteModel.java b/api/src/com/todoroo/astrid/data/RemoteModel.java index 75f7bccb1..814d880fe 100644 --- a/api/src/com/todoroo/astrid/data/RemoteModel.java +++ b/api/src/com/todoroo/astrid/data/RemoteModel.java @@ -137,7 +137,6 @@ abstract public class RemoteModel extends AbstractModel { return String.format("cached::%s%s", tagData.getValue(TagData.NAME), tag_date); } - @SuppressWarnings("nls") public static JSONObject savePictureJson(Context context, Bitmap bitmap) { try { String name = DateUtilities.now() + ".jpg"; @@ -189,7 +188,6 @@ abstract public class RemoteModel extends AbstractModel { } } - @SuppressWarnings("nls") public static Bitmap getPictureBitmap(String value) { try { if (value == null) { diff --git a/api/src/com/todoroo/astrid/data/StoreObject.java b/api/src/com/todoroo/astrid/data/StoreObject.java index 4131e713e..af905ed45 100644 --- a/api/src/com/todoroo/astrid/data/StoreObject.java +++ b/api/src/com/todoroo/astrid/data/StoreObject.java @@ -23,7 +23,6 @@ import com.todoroo.astrid.api.AstridApiConstants; * @author Tim Su * */ -@SuppressWarnings("nls") public class StoreObject extends AbstractModel { // --- table diff --git a/api/src/com/todoroo/astrid/data/SyncFlags.java b/api/src/com/todoroo/astrid/data/SyncFlags.java index 74057a28c..7774e34ca 100644 --- a/api/src/com/todoroo/astrid/data/SyncFlags.java +++ b/api/src/com/todoroo/astrid/data/SyncFlags.java @@ -5,7 +5,6 @@ */ package com.todoroo.astrid.data; -@SuppressWarnings("nls") public class SyncFlags { public static final String GTASKS_SUPPRESS_SYNC = "gtasks_suppress_sync"; diff --git a/api/src/com/todoroo/astrid/data/TagData.java b/api/src/com/todoroo/astrid/data/TagData.java index d3e1265ec..802e61a41 100644 --- a/api/src/com/todoroo/astrid/data/TagData.java +++ b/api/src/com/todoroo/astrid/data/TagData.java @@ -24,7 +24,6 @@ import com.todoroo.astrid.api.AstridApiConstants; * @author Tim Su * */ -@SuppressWarnings("nls") public final class TagData extends RemoteModel { // --- table and uri diff --git a/api/src/com/todoroo/astrid/data/TagMetadata.java b/api/src/com/todoroo/astrid/data/TagMetadata.java index 56dcef837..97b31d5fe 100644 --- a/api/src/com/todoroo/astrid/data/TagMetadata.java +++ b/api/src/com/todoroo/astrid/data/TagMetadata.java @@ -11,7 +11,6 @@ import com.todoroo.andlib.data.Table; import com.todoroo.andlib.data.TodorooCursor; import com.todoroo.astrid.api.AstridApiConstants; -@SuppressWarnings("nls") public class TagMetadata extends AbstractModel { public static final Table TABLE = new Table("tag_metadata", TagMetadata.class); diff --git a/api/src/com/todoroo/astrid/data/TagOutstanding.java b/api/src/com/todoroo/astrid/data/TagOutstanding.java index a1198362a..984d7e1a4 100644 --- a/api/src/com/todoroo/astrid/data/TagOutstanding.java +++ b/api/src/com/todoroo/astrid/data/TagOutstanding.java @@ -8,7 +8,6 @@ import com.todoroo.andlib.data.Property.LongProperty; import com.todoroo.andlib.data.Property.StringProperty; import com.todoroo.andlib.data.Table; -@SuppressWarnings("nls") public class TagOutstanding extends OutstandingEntry { /** table for this model */ diff --git a/api/src/com/todoroo/astrid/data/Task.java b/api/src/com/todoroo/astrid/data/Task.java index 5db3e87fa..7686a11c5 100644 --- a/api/src/com/todoroo/astrid/data/Task.java +++ b/api/src/com/todoroo/astrid/data/Task.java @@ -29,7 +29,6 @@ import org.astrid.api.R; * @author Tim Su * */ -@SuppressWarnings("nls") public final class Task extends RemoteModel { // --- table and uri diff --git a/api/src/com/todoroo/astrid/data/TaskApiDao.java b/api/src/com/todoroo/astrid/data/TaskApiDao.java index 858ac82aa..ab76fd539 100644 --- a/api/src/com/todoroo/astrid/data/TaskApiDao.java +++ b/api/src/com/todoroo/astrid/data/TaskApiDao.java @@ -89,7 +89,6 @@ public class TaskApiDao extends ContentResolverDao { } /** @return tasks that have a blank or null title */ - @SuppressWarnings("nls") public static Criterion hasNoTitle() { return Criterion.or(Task.TITLE.isNull(), Task.TITLE.eq("")); } diff --git a/api/src/com/todoroo/astrid/data/TaskAttachment.java b/api/src/com/todoroo/astrid/data/TaskAttachment.java index 26f7b0bdb..c5416e6b4 100644 --- a/api/src/com/todoroo/astrid/data/TaskAttachment.java +++ b/api/src/com/todoroo/astrid/data/TaskAttachment.java @@ -25,7 +25,6 @@ import com.todoroo.astrid.api.AstridApiConstants; * @author Tim Su * */ -@SuppressWarnings("nls") public final class TaskAttachment extends RemoteModel { // --- table and uri diff --git a/api/src/com/todoroo/astrid/data/TaskAttachmentOutstanding.java b/api/src/com/todoroo/astrid/data/TaskAttachmentOutstanding.java index a51960dc6..9dbad03f0 100644 --- a/api/src/com/todoroo/astrid/data/TaskAttachmentOutstanding.java +++ b/api/src/com/todoroo/astrid/data/TaskAttachmentOutstanding.java @@ -8,7 +8,6 @@ import com.todoroo.andlib.data.Property.LongProperty; import com.todoroo.andlib.data.Property.StringProperty; import com.todoroo.andlib.data.Table; -@SuppressWarnings("nls") public class TaskAttachmentOutstanding extends OutstandingEntry { /** table for this model */ diff --git a/api/src/com/todoroo/astrid/data/TaskListMetadata.java b/api/src/com/todoroo/astrid/data/TaskListMetadata.java index d772b53f5..58b348caa 100644 --- a/api/src/com/todoroo/astrid/data/TaskListMetadata.java +++ b/api/src/com/todoroo/astrid/data/TaskListMetadata.java @@ -25,7 +25,6 @@ import com.todoroo.astrid.api.AstridApiConstants; * @author Tim Su * */ -@SuppressWarnings("nls") public final class TaskListMetadata extends RemoteModel { // --- table and uri diff --git a/api/src/com/todoroo/astrid/data/TaskListMetadataOutstanding.java b/api/src/com/todoroo/astrid/data/TaskListMetadataOutstanding.java index 52e60e61c..585f86f0e 100644 --- a/api/src/com/todoroo/astrid/data/TaskListMetadataOutstanding.java +++ b/api/src/com/todoroo/astrid/data/TaskListMetadataOutstanding.java @@ -8,7 +8,6 @@ import com.todoroo.andlib.data.Property.LongProperty; import com.todoroo.andlib.data.Property.StringProperty; import com.todoroo.andlib.data.Table; -@SuppressWarnings("nls") public class TaskListMetadataOutstanding extends OutstandingEntry { /** table for this model */ diff --git a/api/src/com/todoroo/astrid/data/TaskOutstanding.java b/api/src/com/todoroo/astrid/data/TaskOutstanding.java index 6a90ae5c1..93cd3053b 100644 --- a/api/src/com/todoroo/astrid/data/TaskOutstanding.java +++ b/api/src/com/todoroo/astrid/data/TaskOutstanding.java @@ -8,7 +8,6 @@ import com.todoroo.andlib.data.Property.LongProperty; import com.todoroo.andlib.data.Property.StringProperty; import com.todoroo.andlib.data.Table; -@SuppressWarnings("nls") public class TaskOutstanding extends OutstandingEntry { /** table for this model */ diff --git a/api/src/com/todoroo/astrid/data/Update.java b/api/src/com/todoroo/astrid/data/Update.java index aa04bc25f..02b6fd5fd 100644 --- a/api/src/com/todoroo/astrid/data/Update.java +++ b/api/src/com/todoroo/astrid/data/Update.java @@ -24,7 +24,6 @@ import com.todoroo.astrid.api.AstridApiConstants; * @author Tim Su * */ -@SuppressWarnings("nls") @Deprecated public class Update extends RemoteModel { diff --git a/api/src/com/todoroo/astrid/data/User.java b/api/src/com/todoroo/astrid/data/User.java index fa08c7a3e..caa18335b 100644 --- a/api/src/com/todoroo/astrid/data/User.java +++ b/api/src/com/todoroo/astrid/data/User.java @@ -24,7 +24,6 @@ import com.todoroo.astrid.api.AstridApiConstants; * @author Tim Su * */ -@SuppressWarnings("nls") public final class User extends RemoteModel { // --- table and uri diff --git a/api/src/com/todoroo/astrid/data/UserActivity.java b/api/src/com/todoroo/astrid/data/UserActivity.java index 590c13e39..726eec078 100644 --- a/api/src/com/todoroo/astrid/data/UserActivity.java +++ b/api/src/com/todoroo/astrid/data/UserActivity.java @@ -11,7 +11,6 @@ import com.todoroo.andlib.data.Table; import com.todoroo.andlib.data.TodorooCursor; import com.todoroo.astrid.api.AstridApiConstants; -@SuppressWarnings("nls") public class UserActivity extends RemoteModel { // --- table diff --git a/api/src/com/todoroo/astrid/data/UserActivityOutstanding.java b/api/src/com/todoroo/astrid/data/UserActivityOutstanding.java index 9291f37d1..3ec5985a7 100644 --- a/api/src/com/todoroo/astrid/data/UserActivityOutstanding.java +++ b/api/src/com/todoroo/astrid/data/UserActivityOutstanding.java @@ -8,7 +8,6 @@ import com.todoroo.andlib.data.Property.LongProperty; import com.todoroo.andlib.data.Property.StringProperty; import com.todoroo.andlib.data.Table; -@SuppressWarnings("nls") public class UserActivityOutstanding extends OutstandingEntry { /** table for this model */ diff --git a/api/src/com/todoroo/astrid/data/WaitingOnMe.java b/api/src/com/todoroo/astrid/data/WaitingOnMe.java index 81ca04ea0..a1b0e39db 100644 --- a/api/src/com/todoroo/astrid/data/WaitingOnMe.java +++ b/api/src/com/todoroo/astrid/data/WaitingOnMe.java @@ -12,7 +12,6 @@ import com.todoroo.andlib.data.Table; import com.todoroo.andlib.data.TodorooCursor; import com.todoroo.astrid.api.AstridApiConstants; -@SuppressWarnings("nls") public class WaitingOnMe extends RemoteModel { /** table for this model */ diff --git a/api/src/com/todoroo/astrid/data/WaitingOnMeOutstanding.java b/api/src/com/todoroo/astrid/data/WaitingOnMeOutstanding.java index 2e8479983..6fa56d73b 100644 --- a/api/src/com/todoroo/astrid/data/WaitingOnMeOutstanding.java +++ b/api/src/com/todoroo/astrid/data/WaitingOnMeOutstanding.java @@ -8,7 +8,6 @@ import com.todoroo.andlib.data.Property.LongProperty; import com.todoroo.andlib.data.Property.StringProperty; import com.todoroo.andlib.data.Table; -@SuppressWarnings("nls") public class WaitingOnMeOutstanding extends OutstandingEntry { /** table for this model */ diff --git a/api/src/com/todoroo/astrid/data/package-info.java b/api/src/com/todoroo/astrid/data/package-info.java index ad7c7e063..9205a2000 100644 --- a/api/src/com/todoroo/astrid/data/package-info.java +++ b/api/src/com/todoroo/astrid/data/package-info.java @@ -1,4 +1,4 @@ /** * Astrid data model classes and ContentResolver data access objects */ -package com.todoroo.astrid.data; \ No newline at end of file +package com.todoroo.astrid.data; diff --git a/api/src/com/todoroo/astrid/sync/SyncContainer.java b/api/src/com/todoroo/astrid/sync/SyncContainer.java index 6070ecaf6..3069c107c 100644 --- a/api/src/com/todoroo/astrid/sync/SyncContainer.java +++ b/api/src/com/todoroo/astrid/sync/SyncContainer.java @@ -43,4 +43,4 @@ public class SyncContainer { public void prepareForSaving() { // override me necessary } -} \ No newline at end of file +} diff --git a/api/src/com/todoroo/astrid/sync/SyncProvider.java b/api/src/com/todoroo/astrid/sync/SyncProvider.java index a177fc4e2..0f7daa93e 100644 --- a/api/src/com/todoroo/astrid/sync/SyncProvider.java +++ b/api/src/com/todoroo/astrid/sync/SyncProvider.java @@ -241,7 +241,6 @@ public abstract class SyncProvider { readRemotelyUpdated(data); } - @SuppressWarnings("nls") protected String getFinalSyncStatus() { if (getUtilities().getLastError() != null || getUtilities().getLastAttemptedSyncDate() != 0) { if (getUtilities().getLastAttemptedSyncDate() == 0) { diff --git a/api/src/com/todoroo/astrid/sync/SyncProviderPreferences.java b/api/src/com/todoroo/astrid/sync/SyncProviderPreferences.java index b28932613..fb2f87e89 100644 --- a/api/src/com/todoroo/astrid/sync/SyncProviderPreferences.java +++ b/api/src/com/todoroo/astrid/sync/SyncProviderPreferences.java @@ -193,7 +193,6 @@ abstract public class SyncProviderPreferences extends TodorooPreferenceActivity preference.setOnPreferenceClickListener(new OnPreferenceClickListener() { @Override - @SuppressWarnings("nls") public boolean onPreferenceClick(Preference pref) { // Show last error new AlertDialog.Builder(SyncProviderPreferences.this) @@ -256,7 +255,6 @@ abstract public class SyncProviderPreferences extends TodorooPreferenceActivity */ private static HashMap exceptionsToDisplayMessages; - @SuppressWarnings("nls") private static HashMap getExceptionMap() { if (exceptionsToDisplayMessages == null) { exceptionsToDisplayMessages = new HashMap(); @@ -292,4 +290,4 @@ abstract public class SyncProviderPreferences extends TodorooPreferenceActivity } } -} \ No newline at end of file +} diff --git a/api/src/com/todoroo/astrid/sync/SyncResultCallback.java b/api/src/com/todoroo/astrid/sync/SyncResultCallback.java index 0bb844b91..09eb239dd 100644 --- a/api/src/com/todoroo/astrid/sync/SyncResultCallback.java +++ b/api/src/com/todoroo/astrid/sync/SyncResultCallback.java @@ -27,4 +27,4 @@ public interface SyncResultCallback { * Provider finished sync */ public void finished(); -} \ No newline at end of file +} diff --git a/api/src/com/todoroo/astrid/sync/package-info.java b/api/src/com/todoroo/astrid/sync/package-info.java index cb6c32013..17b0bd67d 100644 --- a/api/src/com/todoroo/astrid/sync/package-info.java +++ b/api/src/com/todoroo/astrid/sync/package-info.java @@ -1,4 +1,4 @@ /** * Astrid synchronization helpers */ -package com.todoroo.astrid.sync; \ No newline at end of file +package com.todoroo.astrid.sync; diff --git a/astrid/src/com/commonsware/cwac/merge/MergeAdapter.java b/astrid/src/com/commonsware/cwac/merge/MergeAdapter.java index 846299d17..866c996ec 100644 --- a/astrid/src/com/commonsware/cwac/merge/MergeAdapter.java +++ b/astrid/src/com/commonsware/cwac/merge/MergeAdapter.java @@ -376,4 +376,4 @@ public class MergeAdapter extends BaseAdapter implements SectionIndexer { notifyDataSetInvalidated(); } } -} \ No newline at end of file +} diff --git a/astrid/src/com/commonsware/cwac/tlv/TouchListView.java b/astrid/src/com/commonsware/cwac/tlv/TouchListView.java index b6bdec91f..492dedb3e 100644 --- a/astrid/src/com/commonsware/cwac/tlv/TouchListView.java +++ b/astrid/src/com/commonsware/cwac/tlv/TouchListView.java @@ -37,7 +37,6 @@ import org.astrid.R; import com.todoroo.andlib.utility.AndroidUtilities; import com.todoroo.astrid.ui.ErrorCatchingListView; -@SuppressWarnings("nls") public class TouchListView extends ErrorCatchingListView { private ImageView mDragView; private View mOriginalView; diff --git a/astrid/src/com/mdimension/jchronic/AstridChronic.java b/astrid/src/com/mdimension/jchronic/AstridChronic.java index 42948e5ea..c5397f9ba 100644 --- a/astrid/src/com/mdimension/jchronic/AstridChronic.java +++ b/astrid/src/com/mdimension/jchronic/AstridChronic.java @@ -20,7 +20,6 @@ import com.mdimension.jchronic.tags.TimeZone; import com.mdimension.jchronic.utils.Span; import com.mdimension.jchronic.utils.Token; -@SuppressWarnings("nls") public class AstridChronic { public static final String VERSION = "0.2.3"; @@ -71,7 +70,6 @@ public class AstridChronic { * will be made, and the first matching instance of that time will * be used. */ - @SuppressWarnings("unchecked") public static Span parse(String text, Options options) { // store now for later =) //_now = options.getNow(); diff --git a/astrid/src/com/timsu/astrid/data/LegacyAbstractController.java b/astrid/src/com/timsu/astrid/data/LegacyAbstractController.java index e90e8cc7e..a31470f0d 100644 --- a/astrid/src/com/timsu/astrid/data/LegacyAbstractController.java +++ b/astrid/src/com/timsu/astrid/data/LegacyAbstractController.java @@ -16,7 +16,6 @@ import com.todoroo.andlib.service.Autowired; import com.todoroo.andlib.service.DependencyInjectionService; /** Abstract controller class. Mostly contains some static fields */ -@SuppressWarnings("nls") abstract public class LegacyAbstractController { protected Context context; diff --git a/astrid/src/com/timsu/astrid/data/LegacyAbstractModel.java b/astrid/src/com/timsu/astrid/data/LegacyAbstractModel.java index 9522bbef8..07b6c20b8 100644 --- a/astrid/src/com/timsu/astrid/data/LegacyAbstractModel.java +++ b/astrid/src/com/timsu/astrid/data/LegacyAbstractModel.java @@ -12,7 +12,6 @@ import android.content.ContentValues; import android.database.Cursor; /** A data object backed by a database */ -@SuppressWarnings("nls") public abstract class LegacyAbstractModel { /* Data Source Ordering: diff --git a/astrid/src/com/timsu/astrid/data/alerts/Alert.java b/astrid/src/com/timsu/astrid/data/alerts/Alert.java index 37a9c92a6..8ac5f286e 100644 --- a/astrid/src/com/timsu/astrid/data/alerts/Alert.java +++ b/astrid/src/com/timsu/astrid/data/alerts/Alert.java @@ -20,7 +20,6 @@ import com.timsu.astrid.data.task.TaskIdentifier; /** A single alert on a task */ -@SuppressWarnings("nls") public class Alert extends LegacyAbstractModel { /** Version number of this model */ diff --git a/astrid/src/com/timsu/astrid/data/alerts/AlertController.java b/astrid/src/com/timsu/astrid/data/alerts/AlertController.java index d10a17c89..1502c557a 100644 --- a/astrid/src/com/timsu/astrid/data/alerts/AlertController.java +++ b/astrid/src/com/timsu/astrid/data/alerts/AlertController.java @@ -22,7 +22,6 @@ import com.timsu.astrid.data.alerts.Alert.AlertDatabaseHelper; import com.timsu.astrid.data.task.TaskIdentifier; /** Controller for Tag-related operations */ -@SuppressWarnings("nls") public class AlertController extends LegacyAbstractController { private SQLiteDatabase alertDatabase; diff --git a/astrid/src/com/timsu/astrid/data/sync/SyncDataController.java b/astrid/src/com/timsu/astrid/data/sync/SyncDataController.java index f21735e0e..4116e97eb 100644 --- a/astrid/src/com/timsu/astrid/data/sync/SyncDataController.java +++ b/astrid/src/com/timsu/astrid/data/sync/SyncDataController.java @@ -21,7 +21,6 @@ import com.timsu.astrid.data.task.TaskIdentifier; import com.timsu.astrid.data.task.TaskModelForSync; /** Controller for Tag-related operations */ -@SuppressWarnings("nls") public class SyncDataController extends LegacyAbstractController { private SQLiteDatabase syncDatabase; diff --git a/astrid/src/com/timsu/astrid/data/sync/SyncMapping.java b/astrid/src/com/timsu/astrid/data/sync/SyncMapping.java index 0f5a04738..476bc4c3b 100644 --- a/astrid/src/com/timsu/astrid/data/sync/SyncMapping.java +++ b/astrid/src/com/timsu/astrid/data/sync/SyncMapping.java @@ -18,7 +18,6 @@ import com.timsu.astrid.data.task.TaskIdentifier; /** A single tag on a task */ -@SuppressWarnings("nls") public class SyncMapping extends LegacyAbstractModel { diff --git a/astrid/src/com/timsu/astrid/data/tag/AbstractTagModel.java b/astrid/src/com/timsu/astrid/data/tag/AbstractTagModel.java index d42c56125..c742fc31e 100644 --- a/astrid/src/com/timsu/astrid/data/tag/AbstractTagModel.java +++ b/astrid/src/com/timsu/astrid/data/tag/AbstractTagModel.java @@ -24,7 +24,6 @@ import com.timsu.astrid.data.LegacyAbstractModel; * @author timsu * */ -@SuppressWarnings("nls") public abstract class AbstractTagModel extends LegacyAbstractModel { /** Version number of this model */ diff --git a/astrid/src/com/timsu/astrid/data/tag/TagController.java b/astrid/src/com/timsu/astrid/data/tag/TagController.java index efe7b741a..bcd22703d 100644 --- a/astrid/src/com/timsu/astrid/data/tag/TagController.java +++ b/astrid/src/com/timsu/astrid/data/tag/TagController.java @@ -23,7 +23,6 @@ import com.timsu.astrid.data.task.TaskIdentifier; import com.todoroo.astrid.provider.Astrid2TaskProvider; /** Controller for Tag-related operations */ -@SuppressWarnings("nls") @Deprecated public class TagController extends LegacyAbstractController { diff --git a/astrid/src/com/timsu/astrid/data/tag/TagModelForView.java b/astrid/src/com/timsu/astrid/data/tag/TagModelForView.java index 082a50d43..e166c81b0 100644 --- a/astrid/src/com/timsu/astrid/data/tag/TagModelForView.java +++ b/astrid/src/com/timsu/astrid/data/tag/TagModelForView.java @@ -11,7 +11,6 @@ import com.timsu.astrid.data.LegacyAbstractController; /** Tag model for viewing purposes. Contains task name */ -@SuppressWarnings("nls") public class TagModelForView extends AbstractTagModel { static String[] FIELD_LIST = new String[] { diff --git a/astrid/src/com/timsu/astrid/data/tag/TagToTaskMapping.java b/astrid/src/com/timsu/astrid/data/tag/TagToTaskMapping.java index 151b22be5..1be2ab962 100644 --- a/astrid/src/com/timsu/astrid/data/tag/TagToTaskMapping.java +++ b/astrid/src/com/timsu/astrid/data/tag/TagToTaskMapping.java @@ -18,7 +18,6 @@ import com.timsu.astrid.data.task.TaskIdentifier; /** A single tag on a task */ -@SuppressWarnings("nls") public class TagToTaskMapping extends LegacyAbstractModel { /** Version number of this model */ diff --git a/astrid/src/com/timsu/astrid/data/task/AbstractTaskModel.java b/astrid/src/com/timsu/astrid/data/task/AbstractTaskModel.java index 10be901ee..445d6bdc6 100644 --- a/astrid/src/com/timsu/astrid/data/task/AbstractTaskModel.java +++ b/astrid/src/com/timsu/astrid/data/task/AbstractTaskModel.java @@ -27,7 +27,6 @@ import com.timsu.astrid.data.enums.RepeatInterval; * @author timsu * */ -@SuppressWarnings("nls") public abstract class AbstractTaskModel extends LegacyAbstractModel { /** Version number of this model */ @@ -140,7 +139,6 @@ public abstract class AbstractTaskModel extends LegacyAbstractModel { } @Override - @SuppressWarnings("fallthrough") public synchronized void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.w(getClass().getSimpleName(), "Upgrading database from version " + oldVersion + " to " + newVersion + "."); diff --git a/astrid/src/com/timsu/astrid/data/task/TaskController.java b/astrid/src/com/timsu/astrid/data/task/TaskController.java index 7decb1f51..6530c2680 100644 --- a/astrid/src/com/timsu/astrid/data/task/TaskController.java +++ b/astrid/src/com/timsu/astrid/data/task/TaskController.java @@ -37,7 +37,6 @@ import com.todoroo.astrid.widget.TasksWidget.WidgetUpdateService; * */ @Deprecated -@SuppressWarnings("nls") public class TaskController extends LegacyAbstractController { private SQLiteDatabase database; diff --git a/astrid/src/com/timsu/astrid/data/task/TaskModelForHandlers.java b/astrid/src/com/timsu/astrid/data/task/TaskModelForHandlers.java index 78869e7c8..8318686d5 100644 --- a/astrid/src/com/timsu/astrid/data/task/TaskModelForHandlers.java +++ b/astrid/src/com/timsu/astrid/data/task/TaskModelForHandlers.java @@ -43,7 +43,6 @@ public class TaskModelForHandlers extends AbstractTaskModel { * @param taskController * @param repeatInfo */ - @SuppressWarnings("deprecation") public void repeatTaskBy(Context context, TaskController taskController, RepeatInfo repeatInfo) { diff --git a/astrid/src/com/timsu/astrid/data/task/TaskModelForProvider.java b/astrid/src/com/timsu/astrid/data/task/TaskModelForProvider.java index 8061f2e0a..9d0190fad 100644 --- a/astrid/src/com/timsu/astrid/data/task/TaskModelForProvider.java +++ b/astrid/src/com/timsu/astrid/data/task/TaskModelForProvider.java @@ -16,7 +16,6 @@ import com.timsu.astrid.data.enums.Importance; /** Fields that you would want to see in the TaskView activity */ -@SuppressWarnings("nls") public class TaskModelForProvider extends AbstractTaskModel { static String[] FIELD_LIST = new String[] { diff --git a/astrid/src/com/timsu/astrid/data/task/TaskModelForWidget.java b/astrid/src/com/timsu/astrid/data/task/TaskModelForWidget.java index f12fcccb5..059bffeb7 100644 --- a/astrid/src/com/timsu/astrid/data/task/TaskModelForWidget.java +++ b/astrid/src/com/timsu/astrid/data/task/TaskModelForWidget.java @@ -15,7 +15,6 @@ import com.timsu.astrid.data.enums.Importance; /** Fields that you would want to see in the TaskView activity */ -@SuppressWarnings("nls") public class TaskModelForWidget extends AbstractTaskModel { static String[] FIELD_LIST = new String[] { diff --git a/astrid/src/com/timsu/astrid/data/task/TaskModelForXml.java b/astrid/src/com/timsu/astrid/data/task/TaskModelForXml.java index ef70421d7..7bb19e1c2 100644 --- a/astrid/src/com/timsu/astrid/data/task/TaskModelForXml.java +++ b/astrid/src/com/timsu/astrid/data/task/TaskModelForXml.java @@ -15,7 +15,6 @@ import com.timsu.astrid.data.enums.Importance; import com.timsu.astrid.data.enums.RepeatInterval; import com.todoroo.astrid.backup.BackupDateUtilities; -@SuppressWarnings("nls") public class TaskModelForXml extends AbstractTaskModel { static String[] FIELD_LIST = new String[] { diff --git a/astrid/src/com/timsu/astrid/utilities/LegacyTasksXmlExporter.java b/astrid/src/com/timsu/astrid/utilities/LegacyTasksXmlExporter.java index 119f91a7e..e7cfaa236 100644 --- a/astrid/src/com/timsu/astrid/utilities/LegacyTasksXmlExporter.java +++ b/astrid/src/com/timsu/astrid/utilities/LegacyTasksXmlExporter.java @@ -35,7 +35,6 @@ import com.timsu.astrid.data.task.TaskIdentifier; import com.timsu.astrid.data.task.TaskModelForXml; import com.todoroo.astrid.backup.BackupDateUtilities; -@SuppressWarnings({"nls", "deprecation"}) public class LegacyTasksXmlExporter { private TaskController taskController; diff --git a/astrid/src/com/todoroo/astrid/actfm/ActFmCameraModule.java b/astrid/src/com/todoroo/astrid/actfm/ActFmCameraModule.java index 3801a92ae..84cbe8cff 100644 --- a/astrid/src/com/todoroo/astrid/actfm/ActFmCameraModule.java +++ b/astrid/src/com/todoroo/astrid/actfm/ActFmCameraModule.java @@ -57,7 +57,6 @@ public class ActFmCameraModule { android.R.layout.simple_spinner_dropdown_item, options.toArray(new String[options.size()])); DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() { - @SuppressWarnings("nls") @Override public void onClick(DialogInterface d, int which) { if(which == 0 && cameraAvailable) { @@ -107,7 +106,6 @@ public class ActFmCameraModule { android.R.layout.simple_spinner_dropdown_item, options.toArray(new String[options.size()])); DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() { - @SuppressWarnings("nls") @Override public void onClick(DialogInterface d, int which) { if(which == 0 && cameraAvailable) { @@ -135,7 +133,6 @@ public class ActFmCameraModule { .show().setOwnerActivity(fragment.getActivity()); } - @SuppressWarnings("nls") private static File getTempFile(Activity activity) { try { String storageState = Environment.getExternalStorageState(); diff --git a/astrid/src/com/todoroo/astrid/actfm/TagSettingsActivity.java b/astrid/src/com/todoroo/astrid/actfm/TagSettingsActivity.java index e1e67b5bb..fbbb9370a 100644 --- a/astrid/src/com/todoroo/astrid/actfm/TagSettingsActivity.java +++ b/astrid/src/com/todoroo/astrid/actfm/TagSettingsActivity.java @@ -274,7 +274,6 @@ public class TagSettingsActivity extends SherlockFragmentActivity { } } - @SuppressWarnings("nls") private void saveSettings() { String oldName = tagData.getValue(TagData.NAME); String newName = tagName.getText().toString().trim(); @@ -413,7 +412,6 @@ public class TagSettingsActivity extends SherlockFragmentActivity { } - @SuppressWarnings("nls") private void updateMembers(String peopleJson, String tagUuid) { JSONArray people = null; try { diff --git a/astrid/src/com/todoroo/astrid/actfm/TagViewFragment.java b/astrid/src/com/todoroo/astrid/actfm/TagViewFragment.java index f5aab27ab..3e8caf839 100644 --- a/astrid/src/com/todoroo/astrid/actfm/TagViewFragment.java +++ b/astrid/src/com/todoroo/astrid/actfm/TagViewFragment.java @@ -438,7 +438,6 @@ public class TagViewFragment extends TaskListFragment { // --- receivers private final BroadcastReceiver notifyReceiver = new BroadcastReceiver() { - @SuppressWarnings("nls") @Override public void onReceive(Context context, Intent intent) { if(!intent.hasExtra("tag_id")) { diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java index 58bade02a..aa6cabf93 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java @@ -33,7 +33,6 @@ import com.todoroo.andlib.utility.Pair; import com.todoroo.andlib.utility.Preferences; import com.todoroo.astrid.utility.Constants; -@SuppressWarnings("nls") public class ActFmInvoker { /** NOTE: these values are development values & will not work on production */ diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmPreferenceService.java b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmPreferenceService.java index 6da5414f5..8372ce5f8 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmPreferenceService.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmPreferenceService.java @@ -134,7 +134,6 @@ public class ActFmPreferenceService extends SyncProviderUtilities { populateUser(); } - @SuppressWarnings("nls") private static void populateUser() { try { user.put("name", Preferences.getStringValue(PREF_NAME)); @@ -177,7 +176,6 @@ public class ActFmPreferenceService extends SyncProviderUtilities { return name; } - @SuppressWarnings("nls") public static String thisUserName() { JSONObject thisUser = thisUser(); diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncMonitor.java b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncMonitor.java index 1d4c85716..ddc3979bd 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncMonitor.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncMonitor.java @@ -7,4 +7,4 @@ public class ActFmSyncMonitor { public static ActFmSyncMonitor getInstance() { return INSTANCE; } -} \ No newline at end of file +} diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java index 07ee67db2..577f18229 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java @@ -30,7 +30,6 @@ import com.todoroo.astrid.tags.reusable.FeaturedListFilterExposer; * @author Tim Su * */ -@SuppressWarnings("nls") public final class ActFmSyncService { // --- instance variables diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java index 1e8ab1d75..9a2bbafb2 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java @@ -247,7 +247,6 @@ public class ActFmSyncThread { public void runOnErrors(List errors) {/**/} }; - @SuppressWarnings("nls") private void sync() { try { int batchSize = 4; @@ -432,7 +431,6 @@ public class ActFmSyncThread { private JSONObject clientVersion = null; - @SuppressWarnings("nls") private JSONObject getClientVersion() { if (clientVersion == null) { try { diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/AstridNewSyncMigrator.java b/astrid/src/com/todoroo/astrid/actfm/sync/AstridNewSyncMigrator.java index 7c21ce9b5..1635908d3 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/AstridNewSyncMigrator.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/AstridNewSyncMigrator.java @@ -51,7 +51,6 @@ import com.todoroo.astrid.subtasks.SubtasksHelper; import com.todoroo.astrid.subtasks.SubtasksUpdater; import com.todoroo.astrid.tags.TaskToTagMetadata; -@SuppressWarnings("nls") public class AstridNewSyncMigrator { @Autowired private MetadataService metadataService; @@ -75,7 +74,6 @@ public class AstridNewSyncMigrator { DependencyInjectionService.getInstance().inject(this); } - @SuppressWarnings("deprecation") public void performMigration() { if (Preferences.getBoolean(PREF_SYNC_MIGRATION, false)) { return; diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java index da4357f62..91ada58e8 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java @@ -40,7 +40,6 @@ import com.todoroo.astrid.data.UserActivityOutstanding; import com.todoroo.astrid.data.WaitingOnMe; import com.todoroo.astrid.data.WaitingOnMeOutstanding; -@SuppressWarnings("nls") public class ChangesHappened> extends ClientToServerMessage { private static final String ERROR_TAG = "actfm-changes-happened"; diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ClientToServerMessage.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ClientToServerMessage.java index d6976c741..7de6781f8 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ClientToServerMessage.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ClientToServerMessage.java @@ -11,7 +11,6 @@ import com.todoroo.astrid.dao.DaoReflectionHelpers; import com.todoroo.astrid.dao.RemoteModelDao; import com.todoroo.astrid.data.RemoteModel; -@SuppressWarnings("nls") public abstract class ClientToServerMessage { protected final Class modelClass; diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ConstructOutstandingTableFromMasterTable.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ConstructOutstandingTableFromMasterTable.java index 83880f36a..69f33c5cc 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ConstructOutstandingTableFromMasterTable.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ConstructOutstandingTableFromMasterTable.java @@ -15,7 +15,6 @@ import com.todoroo.astrid.dao.RemoteModelDao; import com.todoroo.astrid.data.OutstandingEntry; import com.todoroo.astrid.data.RemoteModel; -@SuppressWarnings("nls") public class ConstructOutstandingTableFromMasterTable> { protected final String table; diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/Debug.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/Debug.java index 44a2dcd2d..126a16b5b 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/Debug.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/Debug.java @@ -12,7 +12,6 @@ public class Debug extends ServerToClientMessage { } @Override - @SuppressWarnings("nls") public void processMessage(String serverTime) { String message = json.optString("message"); if (!TextUtils.isEmpty(message)) { diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/FetchHistory.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/FetchHistory.java index 184ec0059..ec282fba7 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/FetchHistory.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/FetchHistory.java @@ -65,7 +65,6 @@ public class FetchHistory { this.done = done; } - @SuppressWarnings("nls") public void execute() { new Thread(new Runnable() { @Override diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/JSONChangeToPropertyVisitor.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/JSONChangeToPropertyVisitor.java index dea5d7548..28d3d748d 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/JSONChangeToPropertyVisitor.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/JSONChangeToPropertyVisitor.java @@ -17,7 +17,6 @@ import com.todoroo.astrid.actfm.sync.ActFmPreferenceService; import com.todoroo.astrid.data.Task; -@SuppressWarnings("nls") public class JSONChangeToPropertyVisitor implements PropertyVisitor { private static final String ERROR_TAG = "actfm-make-changes"; diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/MakeChanges.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/MakeChanges.java index 819308042..bcf1adbca 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/MakeChanges.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/MakeChanges.java @@ -41,7 +41,6 @@ import com.todoroo.astrid.service.MetadataService; import com.todoroo.astrid.tags.TagService; import com.todoroo.astrid.tags.TaskToTagMetadata; -@SuppressWarnings("nls") public class MakeChanges extends ServerToClientMessage { private static final String ERROR_TAG = "actfm-make-changes"; @@ -217,7 +216,6 @@ public class MakeChanges extends ServerToClientMessage super(model, changes, uuid); } - @SuppressWarnings("deprecation") @Override public void performChanges() { JSONArray addMembers = changes.optJSONArray("member_added"); @@ -237,7 +235,6 @@ public class MakeChanges extends ServerToClientMessage this.oldUuid = oldUuid; } - @SuppressWarnings("null") @Override public void performChanges() { if (!TextUtils.isEmpty(oldUuid) && !oldUuid.equals(uuid)) { @@ -332,7 +329,6 @@ public class MakeChanges extends ServerToClientMessage this.oldUuid = oldUuid; } - @SuppressWarnings("null") @Override public void performChanges() { if (!TextUtils.isEmpty(oldUuid) && !oldUuid.equals(uuid)) { diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/NameMaps.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/NameMaps.java index 0cc2b3859..607d4f6b6 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/NameMaps.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/NameMaps.java @@ -17,7 +17,6 @@ import com.todoroo.astrid.data.User; import com.todoroo.astrid.data.UserActivity; import com.todoroo.astrid.data.WaitingOnMe; -@SuppressWarnings("nls") public class NameMaps { // -------------------------------- diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/NowBriefed.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/NowBriefed.java index cb39539bb..faca69a1b 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/NowBriefed.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/NowBriefed.java @@ -16,7 +16,6 @@ import com.todoroo.astrid.data.TagData; import com.todoroo.astrid.data.Task; import com.todoroo.astrid.data.User; -@SuppressWarnings("nls") public class NowBriefed extends ServerToClientMessage { private static final String ERROR_TAG = "actfm-now-briefed"; diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ReplayOutstandingEntries.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ReplayOutstandingEntries.java index 3ef67c02d..fde4376f4 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ReplayOutstandingEntries.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ReplayOutstandingEntries.java @@ -15,7 +15,6 @@ import com.todoroo.astrid.data.OutstandingEntry; import com.todoroo.astrid.data.RemoteModel; import com.todoroo.astrid.data.SyncFlags; -@SuppressWarnings("nls") public class ReplayOutstandingEntries> { private static final String ERROR_TAG = "actfm-replay-outstanding"; diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ServerToClientMessage.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ServerToClientMessage.java index bdac8ab07..cbcf47ad6 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/ServerToClientMessage.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/ServerToClientMessage.java @@ -11,7 +11,6 @@ import com.todoroo.astrid.data.User; import com.todoroo.astrid.data.UserActivity; import com.todoroo.astrid.data.WaitingOnMe; -@SuppressWarnings("nls") public abstract class ServerToClientMessage { public abstract void processMessage(String serverTime); diff --git a/astrid/src/com/todoroo/astrid/actfm/sync/messages/UserData.java b/astrid/src/com/todoroo/astrid/actfm/sync/messages/UserData.java index 9dc644f2c..f573de141 100644 --- a/astrid/src/com/todoroo/astrid/actfm/sync/messages/UserData.java +++ b/astrid/src/com/todoroo/astrid/actfm/sync/messages/UserData.java @@ -19,7 +19,6 @@ public class UserData extends ServerToClientMessage { } @Override - @SuppressWarnings("nls") public void processMessage(String serverTime) { String uuid = json.optString("uuid"); String email = json.optString("email"); diff --git a/astrid/src/com/todoroo/astrid/activity/AboutActivity.java b/astrid/src/com/todoroo/astrid/activity/AboutActivity.java index bc5a23769..da7d2a089 100644 --- a/astrid/src/com/todoroo/astrid/activity/AboutActivity.java +++ b/astrid/src/com/todoroo/astrid/activity/AboutActivity.java @@ -34,7 +34,6 @@ class About { * * @param activity For context. */ - @SuppressWarnings("nls") public static void showAbout(final Activity activity, final String versionName) { Resources r = activity.getResources(); diff --git a/astrid/src/com/todoroo/astrid/activity/ExpandableListFragment.java b/astrid/src/com/todoroo/astrid/activity/ExpandableListFragment.java index e0065cd8c..e399106d4 100644 --- a/astrid/src/com/todoroo/astrid/activity/ExpandableListFragment.java +++ b/astrid/src/com/todoroo/astrid/activity/ExpandableListFragment.java @@ -22,7 +22,6 @@ import android.widget.ListAdapter; import android.widget.ListView; import android.widget.TextView; -@SuppressWarnings("nls") public class ExpandableListFragment extends Fragment implements OnCreateContextMenuListener, ExpandableListView.OnChildClickListener, ExpandableListView.OnGroupCollapseListener, diff --git a/astrid/src/com/todoroo/astrid/activity/FilterShortcutActivity.java b/astrid/src/com/todoroo/astrid/activity/FilterShortcutActivity.java index 5c7ee6fc5..128becff4 100644 --- a/astrid/src/com/todoroo/astrid/activity/FilterShortcutActivity.java +++ b/astrid/src/com/todoroo/astrid/activity/FilterShortcutActivity.java @@ -19,7 +19,6 @@ import com.todoroo.astrid.adapter.FilterAdapter; import com.todoroo.astrid.api.Filter; import com.todoroo.astrid.service.ThemeService; -@SuppressWarnings("nls") public class FilterShortcutActivity extends ListActivity { private FilterAdapter adapter = null; diff --git a/astrid/src/com/todoroo/astrid/activity/TaskEditFragment.java b/astrid/src/com/todoroo/astrid/activity/TaskEditFragment.java index da5fba394..80db3824a 100755 --- a/astrid/src/com/todoroo/astrid/activity/TaskEditFragment.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskEditFragment.java @@ -724,7 +724,6 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener { * * @param intent */ - @SuppressWarnings("nls") protected void loadItem(Intent intent) { if (model != null) { // came from bundle @@ -1169,7 +1168,6 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener { createNewFileAttachment(path, name, type); } - @SuppressWarnings("nls") private void attachImage(Bitmap bitmap) { AtomicReference nameRef = new AtomicReference(); diff --git a/astrid/src/com/todoroo/astrid/activity/TaskListFragment.java b/astrid/src/com/todoroo/astrid/activity/TaskListFragment.java index a437c0f80..b268ba367 100644 --- a/astrid/src/com/todoroo/astrid/activity/TaskListFragment.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskListFragment.java @@ -235,7 +235,6 @@ public class TaskListFragment extends SherlockListFragment implements OnSortSele * @param customComponent * @return */ - @SuppressWarnings("nls") public static TaskListFragment instantiateWithFilterAndExtras(Filter filter, Bundle extras, Class customComponent) { Class component = customComponent; if (filter instanceof FilterWithCustomIntent && component == null) { @@ -995,7 +994,6 @@ public class TaskListFragment extends SherlockListFragment implements OnSortSele return filter; } - @SuppressWarnings("nls") private TodorooCursor constructCursor() { String tagName = null; if (getActiveTagData() != null) { diff --git a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java index 49d67e872..084612772 100644 --- a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java +++ b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java @@ -108,11 +108,8 @@ public class TaskAdapter extends CursorAdapter implements Filterable { public static final String BROADCAST_EXTRA_TASK = "model"; //$NON-NLS-1$ - @SuppressWarnings("nls") private static final StringProperty TAGS = new StringProperty(null, "group_concat(nullif(" + TaskListFragment.TAGS_METADATA_JOIN + "." + TaskToTagMetadata.TAG_NAME.name + ", '')"+ ", ' | ')").as("tags"); - @SuppressWarnings("nls") private static final LongProperty FILE_ID_PROPERTY = TaskAttachment.ID.cloneAs(TaskListFragment.FILE_METADATA_JOIN, "fileId"); - @SuppressWarnings("nls") private static final IntegerProperty HAS_NOTES_PROPERTY = new IntegerProperty(null, "length(" + Task.NOTES + ") > 0").as("hasNotes"); private static final StringProperty PICTURE = User.PICTURE.cloneAs(TaskListFragment.USER_IMAGE_JOIN, null); @@ -562,7 +559,6 @@ public class TaskAdapter extends CursorAdapter implements Filterable { } } - @SuppressWarnings("nls") private void drawDetails(ViewHolder viewHolder, String details, float rightWidth) { SpannableStringBuilder prospective = new SpannableStringBuilder(); SpannableStringBuilder actual = new SpannableStringBuilder(); @@ -726,7 +722,6 @@ public class TaskAdapter extends CursorAdapter implements Filterable { private final HashMap dateCache = new HashMap(8); - @SuppressWarnings("nls") private String formatDate(long date) { if(dateCache.containsKey(date)) { return dateCache.get(date); @@ -871,7 +866,6 @@ public class TaskAdapter extends CursorAdapter implements Filterable { private final HashMap cache = new HashMap(3); @Override - @SuppressWarnings("nls") public Drawable getDrawable(String source) { int drawable = 0; if(source.equals("silk_clock")) { diff --git a/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java b/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java index 1081730fc..7d904e2a9 100644 --- a/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java +++ b/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java @@ -494,7 +494,6 @@ public class UpdateAdapter extends CursorAdapter { return builder; } - @SuppressWarnings("nls") public static String getHistoryComment(final AstridActivity context, History history, User user, String linkColor, String fromView) { boolean hasTask = false; JSONArray taskAttrs = null; @@ -735,10 +734,8 @@ public class UpdateAdapter extends CursorAdapter { INTERVAL_LABELS.put("MINUTELY", R.string.repeat_minutes); //$NON-NLS-1$ } - @SuppressWarnings("nls") private static final String[] SORTED_WEEKDAYS = { "SU", "MO", "TU", "WE", "TH", "FR", "SA" }; - @SuppressWarnings("nls") private static String getRepeatString(Context context, String value) { if (TextUtils.isEmpty(value) || "null".equals(value)) { return null; @@ -823,7 +820,6 @@ public class UpdateAdapter extends CursorAdapter { } } - @SuppressWarnings("nls") private static String userDisplay(Context context, String historyUserId, JSONObject userJson) { try { String id = userJson.getString("id"); @@ -843,7 +839,6 @@ public class UpdateAdapter extends CursorAdapter { } } - @SuppressWarnings("nls") private static final String[] PRIORITY_STRINGS = { "!!!", "!!", "!", "o" }; private static String priorityString(int priority) { return PRIORITY_STRINGS[priority]; diff --git a/astrid/src/com/todoroo/astrid/alarms/AlarmService.java b/astrid/src/com/todoroo/astrid/alarms/AlarmService.java index a2792a1a6..87e00d4f5 100644 --- a/astrid/src/com/todoroo/astrid/alarms/AlarmService.java +++ b/astrid/src/com/todoroo/astrid/alarms/AlarmService.java @@ -184,7 +184,6 @@ public class AlarmService { * @param shouldPerformPropertyCheck * whether to check if task has requisite properties */ - @SuppressWarnings("nls") private void scheduleAlarm(Metadata alarm) { if(alarm == null) { return; diff --git a/astrid/src/com/todoroo/astrid/backup/BackupConstants.java b/astrid/src/com/todoroo/astrid/backup/BackupConstants.java index 3ef4ff2e8..16c431085 100644 --- a/astrid/src/com/todoroo/astrid/backup/BackupConstants.java +++ b/astrid/src/com/todoroo/astrid/backup/BackupConstants.java @@ -16,7 +16,6 @@ import android.os.Environment; * @author Tim Su * */ -@SuppressWarnings("nls") public class BackupConstants { // Do NOT edit the constants in this file! You will break compatibility with old backups diff --git a/astrid/src/com/todoroo/astrid/backup/BackupDateUtilities.java b/astrid/src/com/todoroo/astrid/backup/BackupDateUtilities.java index 147ea8e1e..a24238cb3 100644 --- a/astrid/src/com/todoroo/astrid/backup/BackupDateUtilities.java +++ b/astrid/src/com/todoroo/astrid/backup/BackupDateUtilities.java @@ -18,7 +18,6 @@ import android.util.Log; * @author Tim Su * */ -@SuppressWarnings("nls") public class BackupDateUtilities { private static final String ISO_8601_FORMAT = "yyyy-MM-dd'T'HH:mm:ssz"; diff --git a/astrid/src/com/todoroo/astrid/backup/FilePickerBuilder.java b/astrid/src/com/todoroo/astrid/backup/FilePickerBuilder.java index 4146392cf..cf97c2558 100644 --- a/astrid/src/com/todoroo/astrid/backup/FilePickerBuilder.java +++ b/astrid/src/com/todoroo/astrid/backup/FilePickerBuilder.java @@ -16,7 +16,6 @@ import android.util.Log; import org.astrid.R; import com.todoroo.andlib.utility.AndroidUtilities; -@SuppressWarnings("nls") public class FilePickerBuilder extends AlertDialog.Builder implements DialogInterface.OnClickListener { public interface OnFilePickedListener { diff --git a/astrid/src/com/todoroo/astrid/backup/TasksXmlExporter.java b/astrid/src/com/todoroo/astrid/backup/TasksXmlExporter.java index 77e834f06..96f18b892 100644 --- a/astrid/src/com/todoroo/astrid/backup/TasksXmlExporter.java +++ b/astrid/src/com/todoroo/astrid/backup/TasksXmlExporter.java @@ -157,7 +157,6 @@ public class TasksXmlExporter { } - @SuppressWarnings("nls") private void doTasksExport(String output) throws IOException { File xmlFile = new File(output); xmlFile.createNewFile(); diff --git a/astrid/src/com/todoroo/astrid/backup/TasksXmlImporter.java b/astrid/src/com/todoroo/astrid/backup/TasksXmlImporter.java index 8c352a8eb..0bd8dd605 100644 --- a/astrid/src/com/todoroo/astrid/backup/TasksXmlImporter.java +++ b/astrid/src/com/todoroo/astrid/backup/TasksXmlImporter.java @@ -132,7 +132,6 @@ public class TasksXmlImporter { }).start(); } - @SuppressWarnings("nls") private void performImport() throws IOException, XmlPullParserException { XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); XmlPullParser xpp = factory.newPullParser(); @@ -246,7 +245,6 @@ public class TasksXmlImporter { } } - @SuppressWarnings("nls") private void parseTask() { taskCount++; setProgressMessage(context.getString(R.string.import_progress_read, @@ -492,7 +490,6 @@ public class TasksXmlImporter { tags.clear(); } - @SuppressWarnings("nls") private Task parseTask() { taskCount++; setProgressMessage(context.getString(R.string.import_progress_read, @@ -553,7 +550,6 @@ public class TasksXmlImporter { } /** helper method to set field on a task */ - @SuppressWarnings("nls") private final boolean setTaskField(Task task, String field, String value) { if(field.equals(LegacyTaskModel.ID)) { // ignore diff --git a/astrid/src/com/todoroo/astrid/calls/PhoneStateChangedReceiver.java b/astrid/src/com/todoroo/astrid/calls/PhoneStateChangedReceiver.java index 33a89dc0f..fdc5f51dc 100644 --- a/astrid/src/com/todoroo/astrid/calls/PhoneStateChangedReceiver.java +++ b/astrid/src/com/todoroo/astrid/calls/PhoneStateChangedReceiver.java @@ -23,7 +23,6 @@ import com.todoroo.andlib.utility.AndroidUtilities; import com.todoroo.andlib.utility.DateUtilities; import com.todoroo.andlib.utility.Preferences; -@SuppressWarnings("nls") public class PhoneStateChangedReceiver extends BroadcastReceiver { private static final String PREF_LAST_INCOMING_NUMBER = "last_incoming_number"; diff --git a/astrid/src/com/todoroo/astrid/core/CorePlugin.java b/astrid/src/com/todoroo/astrid/core/CorePlugin.java index 59b13c0f8..f6bd4fd80 100644 --- a/astrid/src/com/todoroo/astrid/core/CorePlugin.java +++ b/astrid/src/com/todoroo/astrid/core/CorePlugin.java @@ -17,7 +17,6 @@ public class CorePlugin extends BroadcastReceiver { static final String IDENTIFIER = "core"; //$NON-NLS-1$ @Override - @SuppressWarnings("nls") public void onReceive(Context context, Intent intent) { Addon plugin = new Addon(IDENTIFIER, "Core Filters", "Todoroo", "Provides 'Inbox', 'Search', and 'More...' Filters"); diff --git a/astrid/src/com/todoroo/astrid/core/CustomFilterActivity.java b/astrid/src/com/todoroo/astrid/core/CustomFilterActivity.java index 7d0e02bb0..0d215c390 100644 --- a/astrid/src/com/todoroo/astrid/core/CustomFilterActivity.java +++ b/astrid/src/com/todoroo/astrid/core/CustomFilterActivity.java @@ -99,7 +99,6 @@ public class CustomFilterActivity extends SherlockFragmentActivity { /** statistics for {@link FilterView} */ public int start, end, max; - @SuppressWarnings("nls") public String getTitleFromCriterion() { if(criterion instanceof MultipleSelectCriterion) { if(selectedIndex >= 0 && ((MultipleSelectCriterion)criterion).entryTitles != null && @@ -191,7 +190,6 @@ public class CustomFilterActivity extends SherlockFragmentActivity { * Populate criteria list with built in and plugin criteria. The request is sent to every application * registered to listen for this broadcast. Each plugin can then add criteria to this activity. */ - @SuppressWarnings("nls") private void populateCriteria() { Intent broadcastIntent = new Intent(AstridApiConstants.BROADCAST_REQUEST_CUSTOM_FILTER_CRITERIA); sendOrderedBroadcast(broadcastIntent, AstridApiConstants.PERMISSION_READ); @@ -387,7 +385,6 @@ public class CustomFilterActivity extends SherlockFragmentActivity { } } - @SuppressWarnings("nls") void saveAndView() { StringBuilder sql = new StringBuilder(" WHERE "); StringBuilder suggestedTitle = new StringBuilder(); @@ -456,7 +453,6 @@ public class CustomFilterActivity extends SherlockFragmentActivity { /** * Recalculate all sizes */ - @SuppressWarnings("nls") void updateList() { int max = 0, last = -1; @@ -512,7 +508,6 @@ public class CustomFilterActivity extends SherlockFragmentActivity { adapter.notifyDataSetInvalidated(); } - @SuppressWarnings("nls") private V getNth(int index, Map map) { int i = 0; for (V v : map.values()) { diff --git a/astrid/src/com/todoroo/astrid/core/CustomFilterAdapter.java b/astrid/src/com/todoroo/astrid/core/CustomFilterAdapter.java index 815c721ef..acf04ea47 100644 --- a/astrid/src/com/todoroo/astrid/core/CustomFilterAdapter.java +++ b/astrid/src/com/todoroo/astrid/core/CustomFilterAdapter.java @@ -184,7 +184,6 @@ public class CustomFilterAdapter extends ArrayAdapter { public FilterView filterView; } - @SuppressWarnings("nls") private void initializeView(View convertView) { ViewHolder viewHolder = (ViewHolder) convertView.getTag(); CriterionInstance item = viewHolder.item; diff --git a/astrid/src/com/todoroo/astrid/core/LinkActionExposer.java b/astrid/src/com/todoroo/astrid/core/LinkActionExposer.java index f3a011b76..ab16f6979 100644 --- a/astrid/src/com/todoroo/astrid/core/LinkActionExposer.java +++ b/astrid/src/com/todoroo/astrid/core/LinkActionExposer.java @@ -80,7 +80,6 @@ public class LinkActionExposer { return null; } - @SuppressWarnings("nls") private static TaskAction createLinkAction(Context context, long id, String url, String text, PackageManager pm) { Intent itemIntent = new Intent(Intent.ACTION_VIEW); itemIntent.setData(Uri.parse(url)); diff --git a/astrid/src/com/todoroo/astrid/dao/DaoReflectionHelpers.java b/astrid/src/com/todoroo/astrid/dao/DaoReflectionHelpers.java index 5a35253da..6eaa762c2 100644 --- a/astrid/src/com/todoroo/astrid/dao/DaoReflectionHelpers.java +++ b/astrid/src/com/todoroo/astrid/dao/DaoReflectionHelpers.java @@ -6,7 +6,6 @@ import com.todoroo.andlib.data.AbstractModel; import com.todoroo.andlib.data.Property; import com.todoroo.astrid.data.RemoteModel; -@SuppressWarnings("nls") public class DaoReflectionHelpers { public static T getStaticFieldByReflection(Class cls, Class cast, String fieldName) { diff --git a/astrid/src/com/todoroo/astrid/dao/Database.java b/astrid/src/com/todoroo/astrid/dao/Database.java index 0b243cb93..4f901c46e 100644 --- a/astrid/src/com/todoroo/astrid/dao/Database.java +++ b/astrid/src/com/todoroo/astrid/dao/Database.java @@ -43,7 +43,6 @@ import com.todoroo.astrid.widget.TasksWidget; * @author Tim Su * */ -@SuppressWarnings("nls") public class Database extends AbstractDatabase { // --- constants diff --git a/astrid/src/com/todoroo/astrid/dao/TaskDao.java b/astrid/src/com/todoroo/astrid/dao/TaskDao.java index 263c3644a..54f4da42c 100644 --- a/astrid/src/com/todoroo/astrid/dao/TaskDao.java +++ b/astrid/src/com/todoroo/astrid/dao/TaskDao.java @@ -134,7 +134,6 @@ public class TaskDao extends RemoteModelDao { } /** @return tasks that have a blank or null title */ - @SuppressWarnings("nls") public static Criterion hasNoTitle() { return Criterion.or(Task.TITLE.isNull(), Task.TITLE.eq("")); } diff --git a/astrid/src/com/todoroo/astrid/data/ABTestEvent.java b/astrid/src/com/todoroo/astrid/data/ABTestEvent.java index a23ce1d70..08158af31 100644 --- a/astrid/src/com/todoroo/astrid/data/ABTestEvent.java +++ b/astrid/src/com/todoroo/astrid/data/ABTestEvent.java @@ -22,7 +22,6 @@ import com.todoroo.astrid.api.AstridApiConstants; * @author Sam * */ -@SuppressWarnings("nls") public class ABTestEvent extends AbstractModel { public static final int[] TIME_INTERVALS = { 0, 1, 3, 7, 14, 21 }; diff --git a/astrid/src/com/todoroo/astrid/files/FileExplore.java b/astrid/src/com/todoroo/astrid/files/FileExplore.java index bb349064b..45b36dbcc 100644 --- a/astrid/src/com/todoroo/astrid/files/FileExplore.java +++ b/astrid/src/com/todoroo/astrid/files/FileExplore.java @@ -269,4 +269,4 @@ public class FileExplore extends Activity { return dialog; } -} \ No newline at end of file +} diff --git a/astrid/src/com/todoroo/astrid/files/FileUtilities.java b/astrid/src/com/todoroo/astrid/files/FileUtilities.java index 479549542..e564bc4b1 100644 --- a/astrid/src/com/todoroo/astrid/files/FileUtilities.java +++ b/astrid/src/com/todoroo/astrid/files/FileUtilities.java @@ -27,7 +27,6 @@ public class FileUtilities { return DateUtilities.getDateStringHideYear(context, date) + ", " + getTimeStringForFilename(context, date); //$NON-NLS-1$ } - @SuppressWarnings("nls") private static String getTimeStringForFilename(Context context, Date date) { String value; if (DateUtilities.is24HourFormat(context)) { diff --git a/astrid/src/com/todoroo/astrid/files/FilesAction.java b/astrid/src/com/todoroo/astrid/files/FilesAction.java index 9089ca5b4..e06c120b2 100644 --- a/astrid/src/com/todoroo/astrid/files/FilesAction.java +++ b/astrid/src/com/todoroo/astrid/files/FilesAction.java @@ -19,7 +19,6 @@ public class FilesAction extends TaskAction { // /** // * Parcelable creator // */ -// @SuppressWarnings("hiding") // public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // /** // * {@inheritDoc} diff --git a/astrid/src/com/todoroo/astrid/files/FilesControlSet.java b/astrid/src/com/todoroo/astrid/files/FilesControlSet.java index e2caa91eb..cefebd8aa 100644 --- a/astrid/src/com/todoroo/astrid/files/FilesControlSet.java +++ b/astrid/src/com/todoroo/astrid/files/FilesControlSet.java @@ -315,7 +315,6 @@ public class FilesControlSet extends PopupControlSet { }, null); } - @SuppressWarnings("nls") private void downloadFile(final TaskAttachment m) { final ProgressDialog pd = new ProgressDialog(activity); pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); @@ -435,7 +434,6 @@ public class FilesControlSet extends PopupControlSet { return name.substring(0, extension); } - @SuppressWarnings("nls") private String getTypeString(String name) { int extension = name.lastIndexOf('.'); if (extension < 0 || extension + 1 >= name.length()) { diff --git a/astrid/src/com/todoroo/astrid/gcal/CalendarAlarmReceiver.java b/astrid/src/com/todoroo/astrid/gcal/CalendarAlarmReceiver.java index 456ca603f..d9e122e69 100644 --- a/astrid/src/com/todoroo/astrid/gcal/CalendarAlarmReceiver.java +++ b/astrid/src/com/todoroo/astrid/gcal/CalendarAlarmReceiver.java @@ -22,7 +22,6 @@ import com.todoroo.andlib.utility.Preferences; import com.todoroo.astrid.actfm.sync.ActFmPreferenceService; import com.todoroo.astrid.utility.Constants; -@SuppressWarnings("nls") public class CalendarAlarmReceiver extends BroadcastReceiver { public static final int REQUEST_CODE_CAL_REMINDER = 100; diff --git a/astrid/src/com/todoroo/astrid/gcal/CalendarAlarmScheduler.java b/astrid/src/com/todoroo/astrid/gcal/CalendarAlarmScheduler.java index 9e2a82784..a9ac7bcb2 100644 --- a/astrid/src/com/todoroo/astrid/gcal/CalendarAlarmScheduler.java +++ b/astrid/src/com/todoroo/astrid/gcal/CalendarAlarmScheduler.java @@ -16,7 +16,6 @@ import com.todoroo.andlib.utility.DateUtilities; import com.todoroo.andlib.utility.Preferences; import com.todoroo.astrid.utility.Constants; -@SuppressWarnings("nls") public class CalendarAlarmScheduler { public static final String TAG = "calendar-alarm"; diff --git a/astrid/src/com/todoroo/astrid/gcal/CalendarReminderActivity.java b/astrid/src/com/todoroo/astrid/gcal/CalendarReminderActivity.java index 8df1d1030..e6c01f19c 100644 --- a/astrid/src/com/todoroo/astrid/gcal/CalendarReminderActivity.java +++ b/astrid/src/com/todoroo/astrid/gcal/CalendarReminderActivity.java @@ -33,7 +33,6 @@ import com.todoroo.astrid.service.ThemeService; import com.todoroo.astrid.tags.TagFilterExposer; import com.todoroo.astrid.utility.Constants; -@SuppressWarnings("nls") public class CalendarReminderActivity extends Activity { public static final String TOKEN_NAMES = "names"; diff --git a/astrid/src/com/todoroo/astrid/gcal/Calendars.java b/astrid/src/com/todoroo/astrid/gcal/Calendars.java index 13795f5c8..b2a22d377 100644 --- a/astrid/src/com/todoroo/astrid/gcal/Calendars.java +++ b/astrid/src/com/todoroo/astrid/gcal/Calendars.java @@ -22,7 +22,6 @@ import com.todoroo.andlib.service.ContextManager; import com.todoroo.andlib.utility.AndroidUtilities; import com.todoroo.andlib.utility.Preferences; -@SuppressWarnings("nls") public class Calendars { public static final String CALENDAR_CONTENT_CALENDARS = "calendars"; diff --git a/astrid/src/com/todoroo/astrid/gcal/GCalControlSet.java b/astrid/src/com/todoroo/astrid/gcal/GCalControlSet.java index a780e43d3..208bece18 100644 --- a/astrid/src/com/todoroo/astrid/gcal/GCalControlSet.java +++ b/astrid/src/com/todoroo/astrid/gcal/GCalControlSet.java @@ -137,7 +137,6 @@ public class GCalControlSet extends PopupControlSet { } } - @SuppressWarnings("nls") @Override protected String writeToModelAfterInitialized(Task task) { if (!task.hasDueDate()) { @@ -202,7 +201,6 @@ public class GCalControlSet extends PopupControlSet { return null; } - @SuppressWarnings("nls") private void viewCalendarEvent() { if(calendarUri == null) { return; diff --git a/astrid/src/com/todoroo/astrid/gcal/GCalHelper.java b/astrid/src/com/todoroo/astrid/gcal/GCalHelper.java index 75cc95ccb..81ebd0444 100644 --- a/astrid/src/com/todoroo/astrid/gcal/GCalHelper.java +++ b/astrid/src/com/todoroo/astrid/gcal/GCalHelper.java @@ -68,7 +68,6 @@ public class GCalHelper { return createTaskEvent(task, cr, values, true); } - @SuppressWarnings("nls") public static Uri createTaskEvent(Task task, ContentResolver cr, ContentValues values, boolean deleteEventIfExists) { String eventuri = getTaskEventUri(task); @@ -141,7 +140,6 @@ public class GCalHelper { } } - @SuppressWarnings("nls") public static boolean deleteTaskEvent(Task task) { boolean eventDeleted = false; String uri; @@ -182,7 +180,6 @@ public class GCalHelper { return eventDeleted; } - @SuppressWarnings("nls") static void createStartAndEndDate(Task task, ContentValues values) { long dueDate = task.getValue(Task.DUE_DATE); long tzCorrectedDueDate = dueDate + TimeZone.getDefault().getOffset(dueDate); @@ -217,7 +214,6 @@ public class GCalHelper { adjustDateForIcs(values); } - @SuppressWarnings("nls") private static void adjustDateForIcs(ContentValues values) { if (AndroidUtilities.getSdkVersion() >= 14) { if ("1".equals(values.get("allDay"))) { diff --git a/astrid/src/com/todoroo/astrid/gcal/GCalTaskCompleteListener.java b/astrid/src/com/todoroo/astrid/gcal/GCalTaskCompleteListener.java index adb24807c..7f88d5e88 100644 --- a/astrid/src/com/todoroo/astrid/gcal/GCalTaskCompleteListener.java +++ b/astrid/src/com/todoroo/astrid/gcal/GCalTaskCompleteListener.java @@ -22,7 +22,6 @@ import com.todoroo.astrid.data.Task; public class GCalTaskCompleteListener extends BroadcastReceiver { - @SuppressWarnings("nls") @Override public void onReceive(Context context, Intent intent) { ContextManager.setContext(context); diff --git a/astrid/src/com/todoroo/astrid/gtasks/GtasksCustomFilterCriteriaExposer.java b/astrid/src/com/todoroo/astrid/gtasks/GtasksCustomFilterCriteriaExposer.java index 75d9cf758..72c5065be 100644 --- a/astrid/src/com/todoroo/astrid/gtasks/GtasksCustomFilterCriteriaExposer.java +++ b/astrid/src/com/todoroo/astrid/gtasks/GtasksCustomFilterCriteriaExposer.java @@ -40,7 +40,6 @@ public class GtasksCustomFilterCriteriaExposer extends BroadcastReceiver { AstridDependencyInjector.initialize(); } - @SuppressWarnings("nls") @Override public void onReceive(Context context, Intent intent) { ContextManager.setContext(context); diff --git a/astrid/src/com/todoroo/astrid/gtasks/GtasksListService.java b/astrid/src/com/todoroo/astrid/gtasks/GtasksListService.java index da81756c2..2d02aecc0 100644 --- a/astrid/src/com/todoroo/astrid/gtasks/GtasksListService.java +++ b/astrid/src/com/todoroo/astrid/gtasks/GtasksListService.java @@ -89,7 +89,6 @@ public class GtasksListService { * * @param remoteLists remote information about your lists */ - @SuppressWarnings("nls") public synchronized void updateLists(TaskLists remoteLists) { readLists(); diff --git a/astrid/src/com/todoroo/astrid/gtasks/GtasksMetadataService.java b/astrid/src/com/todoroo/astrid/gtasks/GtasksMetadataService.java index ab600e4ef..8e6a21a6a 100644 --- a/astrid/src/com/todoroo/astrid/gtasks/GtasksMetadataService.java +++ b/astrid/src/com/todoroo/astrid/gtasks/GtasksMetadataService.java @@ -141,7 +141,6 @@ public final class GtasksMetadataService extends SyncMetadataService * */ -@SuppressWarnings("nls") public class AlarmDatabase extends AbstractDatabase { // --- constants diff --git a/astrid/src/com/todoroo/astrid/legacy/LegacyAlertModel.java b/astrid/src/com/todoroo/astrid/legacy/LegacyAlertModel.java index b655dcf71..f7e5d3a72 100644 --- a/astrid/src/com/todoroo/astrid/legacy/LegacyAlertModel.java +++ b/astrid/src/com/todoroo/astrid/legacy/LegacyAlertModel.java @@ -6,7 +6,6 @@ package com.todoroo.astrid.legacy; /** Legacy alert class */ -@SuppressWarnings("nls") abstract public class LegacyAlertModel { public static final String TASK = "task"; diff --git a/astrid/src/com/todoroo/astrid/legacy/LegacyTagModel.java b/astrid/src/com/todoroo/astrid/legacy/LegacyTagModel.java index 0f751352c..7d86b89e3 100644 --- a/astrid/src/com/todoroo/astrid/legacy/LegacyTagModel.java +++ b/astrid/src/com/todoroo/astrid/legacy/LegacyTagModel.java @@ -8,7 +8,6 @@ package com.todoroo.astrid.legacy; import com.timsu.astrid.data.LegacyAbstractModel; /** Legacy tag model */ -@SuppressWarnings("nls") abstract public class LegacyTagModel extends LegacyAbstractModel { public static final String NAME = "name"; diff --git a/astrid/src/com/todoroo/astrid/legacy/LegacyTaskModel.java b/astrid/src/com/todoroo/astrid/legacy/LegacyTaskModel.java index ff676b5ea..73dedca17 100644 --- a/astrid/src/com/todoroo/astrid/legacy/LegacyTaskModel.java +++ b/astrid/src/com/todoroo/astrid/legacy/LegacyTaskModel.java @@ -6,7 +6,6 @@ package com.todoroo.astrid.legacy; /** Legacy task class */ -@SuppressWarnings("nls") abstract public class LegacyTaskModel { public static final String ID = "_id"; diff --git a/astrid/src/com/todoroo/astrid/legacy/TransitionalAlarm.java b/astrid/src/com/todoroo/astrid/legacy/TransitionalAlarm.java index c18be5089..17897d462 100644 --- a/astrid/src/com/todoroo/astrid/legacy/TransitionalAlarm.java +++ b/astrid/src/com/todoroo/astrid/legacy/TransitionalAlarm.java @@ -22,7 +22,6 @@ import com.todoroo.astrid.data.Task; * @author Tim Su * */ -@SuppressWarnings("nls") public class TransitionalAlarm extends AbstractModel { // --- table diff --git a/astrid/src/com/todoroo/astrid/locale/LocaleEditAlerts.java b/astrid/src/com/todoroo/astrid/locale/LocaleEditAlerts.java index ce0b9b84e..56045f05f 100644 --- a/astrid/src/com/todoroo/astrid/locale/LocaleEditAlerts.java +++ b/astrid/src/com/todoroo/astrid/locale/LocaleEditAlerts.java @@ -41,19 +41,15 @@ public final class LocaleEditAlerts extends ListActivity { // --- locale constants /** key name for filter title in bundle */ - @SuppressWarnings("nls") public static final String KEY_FILTER_TITLE = "title"; /** key name for filter SQL in bundle */ - @SuppressWarnings("nls") public static final String KEY_SQL = "sql"; /** key name for filter content-values in bundle */ - @SuppressWarnings("nls") public static final String KEY_VALUES = "val"; /** key name for interval (integer, # of seconds) */ - @SuppressWarnings("nls") public static final String KEY_INTERVAL = "interval"; // --- activity constants diff --git a/astrid/src/com/todoroo/astrid/locale/LocaleReceiver.java b/astrid/src/com/todoroo/astrid/locale/LocaleReceiver.java index 395e5530a..169f33dea 100644 --- a/astrid/src/com/todoroo/astrid/locale/LocaleReceiver.java +++ b/astrid/src/com/todoroo/astrid/locale/LocaleReceiver.java @@ -45,7 +45,6 @@ public class LocaleReceiver extends BroadcastReceiver { return "LOCALE:" + filterTitle + interval; //$NON-NLS-1$ } - @SuppressWarnings("nls") @Override /** Called when the system is started up */ public void onReceive(Context context, Intent intent) { diff --git a/astrid/src/com/todoroo/astrid/notes/EditNoteActivity.java b/astrid/src/com/todoroo/astrid/notes/EditNoteActivity.java index 736ff42ee..1eea6419d 100644 --- a/astrid/src/com/todoroo/astrid/notes/EditNoteActivity.java +++ b/astrid/src/com/todoroo/astrid/notes/EditNoteActivity.java @@ -511,7 +511,6 @@ public class EditNoteActivity extends LinearLayout implements TimerActionListene } - @SuppressWarnings("nls") private void addComment(String message, String actionCode, String uuid, String title, boolean usePicture) { // Allow for users to just add picture if (TextUtils.isEmpty(message) && usePicture) { diff --git a/astrid/src/com/todoroo/astrid/notes/NotesAction.java b/astrid/src/com/todoroo/astrid/notes/NotesAction.java index 4d1d576c3..fe5c2a6a4 100644 --- a/astrid/src/com/todoroo/astrid/notes/NotesAction.java +++ b/astrid/src/com/todoroo/astrid/notes/NotesAction.java @@ -19,7 +19,6 @@ public class NotesAction extends TaskAction { // /** // * Parcelable creator // */ -// @SuppressWarnings("hiding") // public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // /** // * {@inheritDoc} diff --git a/astrid/src/com/todoroo/astrid/notes/NotesDetailExposer.java b/astrid/src/com/todoroo/astrid/notes/NotesDetailExposer.java index bdc2e2cbf..56f0eb870 100644 --- a/astrid/src/com/todoroo/astrid/notes/NotesDetailExposer.java +++ b/astrid/src/com/todoroo/astrid/notes/NotesDetailExposer.java @@ -53,7 +53,6 @@ public class NotesDetailExposer extends BroadcastReceiver { context.sendBroadcast(broadcastIntent, AstridApiConstants.PERMISSION_READ); } - @SuppressWarnings("nls") public String getTaskDetails(long id) { if(!Preferences.getBoolean(R.string.p_showNotes, false)) { return null; diff --git a/astrid/src/com/todoroo/astrid/notes/NotesPlugin.java b/astrid/src/com/todoroo/astrid/notes/NotesPlugin.java index 307598d5e..4e1ee54b1 100644 --- a/astrid/src/com/todoroo/astrid/notes/NotesPlugin.java +++ b/astrid/src/com/todoroo/astrid/notes/NotesPlugin.java @@ -20,7 +20,6 @@ public class NotesPlugin extends BroadcastReceiver { public static final String IDENTIFIER = "notes"; //$NON-NLS-1$ @Override - @SuppressWarnings("nls") public void onReceive(Context context, Intent intent) { Addon plugin = new Addon(IDENTIFIER, "Notes", "Todoroo", "Lets you add and view notes for a task."); diff --git a/astrid/src/com/todoroo/astrid/opencrx/OpencrxControlSet.java b/astrid/src/com/todoroo/astrid/opencrx/OpencrxControlSet.java index b4800f2cc..0cef58e5e 100644 --- a/astrid/src/com/todoroo/astrid/opencrx/OpencrxControlSet.java +++ b/astrid/src/com/todoroo/astrid/opencrx/OpencrxControlSet.java @@ -46,7 +46,6 @@ public class OpencrxControlSet extends PopupControlSet { * Class that represents OpenCRX ActivityCreator. Duplicates some functionality of OpenCRX plugin. * */ - @SuppressWarnings("unused") private static class OpencrxActivityCreator { /** type*/ public static final String TYPE = "opencrx-creator"; //$NON-NLS-1$ @@ -103,7 +102,6 @@ public class OpencrxControlSet extends PopupControlSet { * Class that represents OpenCRX Contact. Duplicates some functionality of OpenCRX plugin. * */ - @SuppressWarnings("unused") private static class OpencrxContact { public static final String TYPE = "opencrx-contacts"; //$NON-NLS-1$ diff --git a/astrid/src/com/todoroo/astrid/people/PeopleFilterExposer.java b/astrid/src/com/todoroo/astrid/people/PeopleFilterExposer.java index 646e67e50..3da4bd8f7 100644 --- a/astrid/src/com/todoroo/astrid/people/PeopleFilterExposer.java +++ b/astrid/src/com/todoroo/astrid/people/PeopleFilterExposer.java @@ -79,7 +79,6 @@ public class PeopleFilterExposer extends BroadcastReceiver { } } - @SuppressWarnings({ "nls", "deprecation" }) private static FilterWithCustomIntent filterFromUserData(User user) { String title = user.getDisplayName(); if (TextUtils.isEmpty(title) || "null".equals(title)) { @@ -117,7 +116,6 @@ public class PeopleFilterExposer extends BroadcastReceiver { return filter; } - @SuppressWarnings("nls") public static FilterWithCustomIntent mySharedTasks(Context context) { TodorooCursor tagsWithMembers = PluginServices.getTagDataService() .query(Query.select(TagData.NAME).where(TagData.MEMBER_COUNT.gt(0))); diff --git a/astrid/src/com/todoroo/astrid/provider/Astrid2TaskProvider.java b/astrid/src/com/todoroo/astrid/provider/Astrid2TaskProvider.java index 798b06bdb..38a48de89 100644 --- a/astrid/src/com/todoroo/astrid/provider/Astrid2TaskProvider.java +++ b/astrid/src/com/todoroo/astrid/provider/Astrid2TaskProvider.java @@ -44,7 +44,6 @@ import com.todoroo.astrid.tags.TagService.Tag; * @author Tim Su * */ -@SuppressWarnings("nls") public class Astrid2TaskProvider extends ContentProvider { static { diff --git a/astrid/src/com/todoroo/astrid/provider/Astrid3ContentProvider.java b/astrid/src/com/todoroo/astrid/provider/Astrid3ContentProvider.java index edaddac35..fc68bfd85 100644 --- a/astrid/src/com/todoroo/astrid/provider/Astrid3ContentProvider.java +++ b/astrid/src/com/todoroo/astrid/provider/Astrid3ContentProvider.java @@ -67,7 +67,6 @@ import com.todoroo.astrid.service.AstridDependencyInjector; * @author Tim Su * */ -@SuppressWarnings("nls") public class Astrid3ContentProvider extends ContentProvider { static { diff --git a/astrid/src/com/todoroo/astrid/provider/SqlContentProvider.java b/astrid/src/com/todoroo/astrid/provider/SqlContentProvider.java index 1477b7f23..162d5120f 100644 --- a/astrid/src/com/todoroo/astrid/provider/SqlContentProvider.java +++ b/astrid/src/com/todoroo/astrid/provider/SqlContentProvider.java @@ -28,7 +28,6 @@ import com.todoroo.astrid.service.AstridDependencyInjector; * @author Tim Su * */ -@SuppressWarnings("nls") public class SqlContentProvider extends ContentProvider { // --- instance variables diff --git a/astrid/src/com/todoroo/astrid/reminders/ReminderDebugContextActions.java b/astrid/src/com/todoroo/astrid/reminders/ReminderDebugContextActions.java index 3e0c34dfc..b119db266 100644 --- a/astrid/src/com/todoroo/astrid/reminders/ReminderDebugContextActions.java +++ b/astrid/src/com/todoroo/astrid/reminders/ReminderDebugContextActions.java @@ -15,7 +15,6 @@ import com.todoroo.astrid.data.Task; import com.todoroo.astrid.reminders.ReminderService.AlarmScheduler; import com.todoroo.astrid.utility.Constants; -@SuppressWarnings("nls") public class ReminderDebugContextActions { public static class WhenReminder implements TaskContextActionExposer { diff --git a/astrid/src/com/todoroo/astrid/reminders/ReminderSchedulingService.java b/astrid/src/com/todoroo/astrid/reminders/ReminderSchedulingService.java index ee2f4549c..331cdf157 100644 --- a/astrid/src/com/todoroo/astrid/reminders/ReminderSchedulingService.java +++ b/astrid/src/com/todoroo/astrid/reminders/ReminderSchedulingService.java @@ -40,7 +40,6 @@ public class ReminderSchedulingService extends Service { return START_NOT_STICKY; } - @SuppressWarnings("nls") private void scheduleReminders() { try { ReminderService.getInstance().scheduleAllAlarms(); diff --git a/astrid/src/com/todoroo/astrid/reminders/ReminderService.java b/astrid/src/com/todoroo/astrid/reminders/ReminderService.java index 07f2cd1e6..d762f10e0 100644 --- a/astrid/src/com/todoroo/astrid/reminders/ReminderService.java +++ b/astrid/src/com/todoroo/astrid/reminders/ReminderService.java @@ -468,7 +468,6 @@ public final class ReminderService { * @param flags */ @Override - @SuppressWarnings("nls") public void createAlarm(Task task, long time, int type) { if(task.getId() == Task.NO_ID) { return; diff --git a/astrid/src/com/todoroo/astrid/repeats/RepeatControlSet.java b/astrid/src/com/todoroo/astrid/repeats/RepeatControlSet.java index ed4fc23d7..d769d316e 100644 --- a/astrid/src/com/todoroo/astrid/repeats/RepeatControlSet.java +++ b/astrid/src/com/todoroo/astrid/repeats/RepeatControlSet.java @@ -162,7 +162,6 @@ public class RepeatControlSet extends PopupControlSet { } } - @SuppressWarnings("nls") @Override public void readFromTask(Task task) { super.readFromTask(task); @@ -212,7 +211,6 @@ public class RepeatControlSet extends PopupControlSet { refreshDisplayView(); } - @SuppressWarnings("nls") @Override protected void readFromTaskOnInitialize() { Date date; diff --git a/astrid/src/com/todoroo/astrid/service/AddOnService.java b/astrid/src/com/todoroo/astrid/service/AddOnService.java index 2dfe9e1eb..2b68e6ba9 100644 --- a/astrid/src/com/todoroo/astrid/service/AddOnService.java +++ b/astrid/src/com/todoroo/astrid/service/AddOnService.java @@ -24,7 +24,6 @@ import com.todoroo.astrid.utility.Constants; * @author Tim Su * */ -@SuppressWarnings("nls") public class AddOnService { /** OEM preference key */ diff --git a/astrid/src/com/todoroo/astrid/service/Astrid2To3UpgradeHelper.java b/astrid/src/com/todoroo/astrid/service/Astrid2To3UpgradeHelper.java index 8fad4d153..799eb97cc 100644 --- a/astrid/src/com/todoroo/astrid/service/Astrid2To3UpgradeHelper.java +++ b/astrid/src/com/todoroo/astrid/service/Astrid2To3UpgradeHelper.java @@ -131,7 +131,6 @@ public class Astrid2To3UpgradeHelper { * Perform the upgrade from Astrid 2 to Astrid 3 * @param context2 */ - @SuppressWarnings("deprecation") public void upgrade2To3(final Context context, final int from) { // if from < 1 (we don't know what version, and database exists, leave it alone) @@ -243,7 +242,6 @@ public class Astrid2To3UpgradeHelper { * @author Tim Su * */ - @SuppressWarnings("nls") protected static final class ColumnUpgradeVisitor implements PropertyVisitor> { @Override public Void visitDouble(Property property, UpgradeVisitorContainer data) { @@ -327,7 +325,6 @@ public class Astrid2To3UpgradeHelper { * @param model * @param dao */ - @SuppressWarnings("nls") private static final void upgradeTable(Context context, String legacyTable, HashMap> propertyMap, TYPE model, DatabaseDao dao) { @@ -379,7 +376,6 @@ public class Astrid2To3UpgradeHelper { * both and adding to the Metadata table. This way, we are able to * do everything in one pass without loading too much into memory */ - @SuppressWarnings("nls") private void migrateTagsToMetadata() { Context context = ContextManager.getContext(); diff --git a/astrid/src/com/todoroo/astrid/service/AstridDependencyInjector.java b/astrid/src/com/todoroo/astrid/service/AstridDependencyInjector.java index 4469ceae2..6bdf45ccd 100644 --- a/astrid/src/com/todoroo/astrid/service/AstridDependencyInjector.java +++ b/astrid/src/com/todoroo/astrid/service/AstridDependencyInjector.java @@ -67,7 +67,6 @@ public class AstridDependencyInjector extends AbstractDependencyInjector { * (i.e. {@link ErrorReporter}. */ @Override - @SuppressWarnings("nls") protected void addInjectables() { injectables.put("debug", Constants.DEBUG); diff --git a/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java b/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java index 0ab222864..76fc57057 100644 --- a/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java +++ b/astrid/src/com/todoroo/astrid/service/StatisticsConstants.java @@ -5,7 +5,6 @@ */ package com.todoroo.astrid.service; -@SuppressWarnings("nls") public class StatisticsConstants { public static final String EULA_ACCEPTED = "eula-accepted"; public static final String ACTFM_TAG_COMMENT = "actfm-tag-comment"; diff --git a/astrid/src/com/todoroo/astrid/service/TagDataService.java b/astrid/src/com/todoroo/astrid/service/TagDataService.java index 00532b0ad..852a58701 100644 --- a/astrid/src/com/todoroo/astrid/service/TagDataService.java +++ b/astrid/src/com/todoroo/astrid/service/TagDataService.java @@ -108,7 +108,6 @@ public class TagDataService { * @param properties * @return */ - @SuppressWarnings("nls") public TodorooCursor fetchFiltered(String queryTemplate, CharSequence constraint, Property... properties) { Criterion whereConstraint = null; @@ -194,7 +193,6 @@ public class TagDataService { return userActivityDao.query(resultQuery); } - @SuppressWarnings("nls") public void saveFeaturedList(JSONObject featObject) throws JSONException { TodorooCursor cursor = query(Query.select(TagData.PROPERTIES).where( Criterion.and(Functions.bitwiseAnd(TagData.FLAGS, TagData.FLAG_FEATURED).gt(0), TagData.UUID.eq(featObject.get("id"))))); diff --git a/astrid/src/com/todoroo/astrid/service/TaskService.java b/astrid/src/com/todoroo/astrid/service/TaskService.java index 234704296..4fb4d7b9a 100644 --- a/astrid/src/com/todoroo/astrid/service/TaskService.java +++ b/astrid/src/com/todoroo/astrid/service/TaskService.java @@ -297,7 +297,6 @@ public class TaskService { * @param filter * @return */ - @SuppressWarnings("nls") public TodorooCursor fetchFiltered(String queryTemplate, CharSequence constraint, Property... properties) { Criterion whereConstraint = null; diff --git a/astrid/src/com/todoroo/astrid/service/ThemeService.java b/astrid/src/com/todoroo/astrid/service/ThemeService.java index 687f04648..b5f2b0438 100644 --- a/astrid/src/com/todoroo/astrid/service/ThemeService.java +++ b/astrid/src/com/todoroo/astrid/service/ThemeService.java @@ -17,7 +17,6 @@ import com.todoroo.andlib.utility.Preferences; import com.todoroo.astrid.utility.AstridPreferences; import com.todoroo.astrid.widget.TasksWidget; -@SuppressWarnings("nls") public class ThemeService { public static final String THEME_WHITE = "white"; diff --git a/astrid/src/com/todoroo/astrid/service/UpdateMessagePreference.java b/astrid/src/com/todoroo/astrid/service/UpdateMessagePreference.java index 2c11e1c0f..ebdce128c 100644 --- a/astrid/src/com/todoroo/astrid/service/UpdateMessagePreference.java +++ b/astrid/src/com/todoroo/astrid/service/UpdateMessagePreference.java @@ -41,7 +41,6 @@ public class UpdateMessagePreference extends PreferenceActivity { } } - @SuppressWarnings("nls") private void addPreferenceFromJSON(JSONObject obj) { String type = obj.optString("type", null); String key = obj.optString("key", null); diff --git a/astrid/src/com/todoroo/astrid/service/UpdateMessageService.java b/astrid/src/com/todoroo/astrid/service/UpdateMessageService.java index 8b24a9e72..7b83bb528 100644 --- a/astrid/src/com/todoroo/astrid/service/UpdateMessageService.java +++ b/astrid/src/com/todoroo/astrid/service/UpdateMessageService.java @@ -55,7 +55,6 @@ import com.todoroo.astrid.utility.Constants; * @author Tim Su * */ -@SuppressWarnings("nls") public class UpdateMessageService { private static final String URL = "http://blog.astrid.com/updates"; diff --git a/astrid/src/com/todoroo/astrid/service/UpgradeService.java b/astrid/src/com/todoroo/astrid/service/UpgradeService.java index db8f96a7e..0a8de011a 100644 --- a/astrid/src/com/todoroo/astrid/service/UpgradeService.java +++ b/astrid/src/com/todoroo/astrid/service/UpgradeService.java @@ -322,7 +322,6 @@ public final class UpgradeService { * @param to * @return */ - @SuppressWarnings("nls") public void showChangeLog(Context context, int from) { if(!(context instanceof Activity) || from == 0) { return; @@ -796,7 +795,6 @@ public final class UpgradeService { * @param version * @param changes */ - @SuppressWarnings("nls") private void newVersionString(StringBuilder changeLog, String version, String[] changes) { if (Constants.ASTRID_LITE) { version = "0" + version.substring(1); @@ -813,7 +811,6 @@ public final class UpgradeService { /** * Fixes task filter missing tasks bug, migrate PDV/RTM notes */ - @SuppressWarnings("nls") private void upgrade3To3_7() { TodorooCursor t = taskService.query(Query.select(Task.ID, Task.DUE_DATE).where(Task.DUE_DATE.gt(0))); Task task = new Task(); diff --git a/astrid/src/com/todoroo/astrid/service/abtesting/ABTestEventReportingService.java b/astrid/src/com/todoroo/astrid/service/abtesting/ABTestEventReportingService.java index 1858615e7..a5d6e8ba8 100644 --- a/astrid/src/com/todoroo/astrid/service/abtesting/ABTestEventReportingService.java +++ b/astrid/src/com/todoroo/astrid/service/abtesting/ABTestEventReportingService.java @@ -35,7 +35,6 @@ import com.todoroo.astrid.service.TaskService; * @author Sam * */ -@SuppressWarnings("nls") public final class ABTestEventReportingService { private static final String KEY_TEST = "test"; diff --git a/astrid/src/com/todoroo/astrid/service/abtesting/ABTestInvoker.java b/astrid/src/com/todoroo/astrid/service/abtesting/ABTestInvoker.java index 76940e502..5d3ee4fb3 100644 --- a/astrid/src/com/todoroo/astrid/service/abtesting/ABTestInvoker.java +++ b/astrid/src/com/todoroo/astrid/service/abtesting/ABTestInvoker.java @@ -28,7 +28,6 @@ import com.todoroo.andlib.service.RestClient; * @author Sam * */ -@SuppressWarnings("nls") public class ABTestInvoker { /** NOTE: these values are development values and will not work on production */ diff --git a/astrid/src/com/todoroo/astrid/subtasks/AstridOrderedListFragmentHelper.java b/astrid/src/com/todoroo/astrid/subtasks/AstridOrderedListFragmentHelper.java index e92ffd51d..aeafff574 100644 --- a/astrid/src/com/todoroo/astrid/subtasks/AstridOrderedListFragmentHelper.java +++ b/astrid/src/com/todoroo/astrid/subtasks/AstridOrderedListFragmentHelper.java @@ -95,7 +95,6 @@ public class AstridOrderedListFragmentHelper implements OrderedListFragmen } } - @SuppressWarnings("nls") private void showSubtasksHelp() { String body = String.format("

%s

" + "
%s



%s", diff --git a/astrid/src/com/todoroo/astrid/subtasks/OrderedMetadataListFragmentHelper.java b/astrid/src/com/todoroo/astrid/subtasks/OrderedMetadataListFragmentHelper.java index 0b5d96677..e9e10fade 100644 --- a/astrid/src/com/todoroo/astrid/subtasks/OrderedMetadataListFragmentHelper.java +++ b/astrid/src/com/todoroo/astrid/subtasks/OrderedMetadataListFragmentHelper.java @@ -99,7 +99,6 @@ public class OrderedMetadataListFragmentHelper implements OrderedListFragm } } - @SuppressWarnings("nls") private void showSubtasksHelp() { String body = String.format("

%s

" + "
%s



%s", diff --git a/astrid/src/com/todoroo/astrid/subtasks/OrderedMetadataListUpdater.java b/astrid/src/com/todoroo/astrid/subtasks/OrderedMetadataListUpdater.java index 69facc141..44d077659 100644 --- a/astrid/src/com/todoroo/astrid/subtasks/OrderedMetadataListUpdater.java +++ b/astrid/src/com/todoroo/astrid/subtasks/OrderedMetadataListUpdater.java @@ -396,7 +396,6 @@ abstract public class OrderedMetadataListUpdater { } - @SuppressWarnings("nls") public void debugPrint(Node root, int depth) { for(int i = 0; i < depth; i++) { System.err.print(" + "); diff --git a/astrid/src/com/todoroo/astrid/subtasks/SubtasksHelper.java b/astrid/src/com/todoroo/astrid/subtasks/SubtasksHelper.java index 7a1a3770a..c562f9638 100644 --- a/astrid/src/com/todoroo/astrid/subtasks/SubtasksHelper.java +++ b/astrid/src/com/todoroo/astrid/subtasks/SubtasksHelper.java @@ -59,7 +59,6 @@ public class SubtasksHelper { return false; } - @SuppressWarnings("nls") public static String applySubtasksToWidgetFilter(Filter filter, String query, String tagName, int limit) { if (SubtasksHelper.shouldUseSubtasksFragmentForFilter(filter)) { // care for manual ordering @@ -102,7 +101,6 @@ public class SubtasksHelper { return AstridOrderedListUpdater.buildOrderString(getStringIdArray(serialized)); } - @SuppressWarnings("nls") @Deprecated private static Long[] getIdArray(String serializedTree) { ArrayList ids = new ArrayList(); @@ -119,7 +117,6 @@ public class SubtasksHelper { return ids.toArray(new Long[ids.size()]); } - @SuppressWarnings("nls") public static String[] getStringIdArray(String serializedTree) { ArrayList ids = new ArrayList(); String[] values = serializedTree.split("[\\[\\],\"\\s]"); // Split on [ ] , or whitespace chars diff --git a/astrid/src/com/todoroo/astrid/subtasks/SubtasksMetadataMigration.java b/astrid/src/com/todoroo/astrid/subtasks/SubtasksMetadataMigration.java index c55e85b87..97c7b0b3c 100644 --- a/astrid/src/com/todoroo/astrid/subtasks/SubtasksMetadataMigration.java +++ b/astrid/src/com/todoroo/astrid/subtasks/SubtasksMetadataMigration.java @@ -20,7 +20,6 @@ import com.todoroo.astrid.service.MetadataService; import com.todoroo.astrid.service.TagDataService; import com.todoroo.astrid.subtasks.AstridOrderedListUpdater.Node; -@SuppressWarnings("deprecation") // Subtasks metadata is deprecated public class SubtasksMetadataMigration { @Autowired @@ -55,7 +54,6 @@ public class SubtasksMetadataMigration { } } - @SuppressWarnings("nls") private void processTag(String tag, TodorooCursor subtasksMetadata) { Metadata item = new Metadata(); TagData td = null; diff --git a/astrid/src/com/todoroo/astrid/subtasks/SubtasksUpdater.java b/astrid/src/com/todoroo/astrid/subtasks/SubtasksUpdater.java index 049271960..649791c81 100644 --- a/astrid/src/com/todoroo/astrid/subtasks/SubtasksUpdater.java +++ b/astrid/src/com/todoroo/astrid/subtasks/SubtasksUpdater.java @@ -30,7 +30,6 @@ public abstract class SubtasksUpdater extends AstridOrderedListUpdater { } @Override - @SuppressWarnings("nls") public void applyToFilter(Filter filter) { String query = filter.getSqlQuery(); diff --git a/astrid/src/com/todoroo/astrid/tags/TagCaseMigrator.java b/astrid/src/com/todoroo/astrid/tags/TagCaseMigrator.java index 44712c644..5fbc2648d 100644 --- a/astrid/src/com/todoroo/astrid/tags/TagCaseMigrator.java +++ b/astrid/src/com/todoroo/astrid/tags/TagCaseMigrator.java @@ -43,7 +43,7 @@ public class TagCaseMigrator { private final HashMap nameToRemoteId = new HashMap(); private final HashMap nameCountMap = new HashMap(); - public void performTagCaseMigration(@SuppressWarnings("unused") Context context) { + public void performTagCaseMigration(Context context) { if (!Preferences.getBoolean(PREF_CASE_MIGRATION_PERFORMED, false)) { TagService.Tag[] allTagData = TagService.getInstance().getGroupedTags( TagService.GROUPED_TAGS_BY_ALPHA, Criterion.all); diff --git a/astrid/src/com/todoroo/astrid/tags/TagCustomFilterCriteriaExposer.java b/astrid/src/com/todoroo/astrid/tags/TagCustomFilterCriteriaExposer.java index fb56f03cf..1f9f6c22c 100644 --- a/astrid/src/com/todoroo/astrid/tags/TagCustomFilterCriteriaExposer.java +++ b/astrid/src/com/todoroo/astrid/tags/TagCustomFilterCriteriaExposer.java @@ -30,7 +30,6 @@ public class TagCustomFilterCriteriaExposer extends BroadcastReceiver { private static final String IDENTIFIER_TAG_IS = "tag_is"; //$NON-NLS-1$ private static final String IDENTIFIER_TAG_CONTAINS = "tag_contains"; //$NON-NLS-1$ - @SuppressWarnings("nls") @Override public void onReceive(Context context, Intent intent) { Resources r = context.getResources(); diff --git a/astrid/src/com/todoroo/astrid/tags/TagFilterExposer.java b/astrid/src/com/todoroo/astrid/tags/TagFilterExposer.java index e1d8f64a1..13ad62489 100644 --- a/astrid/src/com/todoroo/astrid/tags/TagFilterExposer.java +++ b/astrid/src/com/todoroo/astrid/tags/TagFilterExposer.java @@ -67,7 +67,6 @@ public class TagFilterExposer extends BroadcastReceiver implements AstridFilterE protected boolean addUntaggedFilter = true; /** Create filter from new tag object */ - @SuppressWarnings("nls") public static FilterWithCustomIntent filterFromTag(Context context, Tag tag, Criterion criterion) { String title = tag.tag; if (TextUtils.isEmpty(title)) { diff --git a/astrid/src/com/todoroo/astrid/tags/TagService.java b/astrid/src/com/todoroo/astrid/tags/TagService.java index 950db9885..bdfd00f6d 100644 --- a/astrid/src/com/todoroo/astrid/tags/TagService.java +++ b/astrid/src/com/todoroo/astrid/tags/TagService.java @@ -53,7 +53,6 @@ import com.todoroo.astrid.service.TaskService; * @author Tim Su * */ -@SuppressWarnings("nls") public final class TagService { public static final String TOKEN_TAG_SQL = "tagSql"; //$NON-NLS-1$ diff --git a/astrid/src/com/todoroo/astrid/tags/TagsPlugin.java b/astrid/src/com/todoroo/astrid/tags/TagsPlugin.java index 38d8d2115..11f065934 100644 --- a/astrid/src/com/todoroo/astrid/tags/TagsPlugin.java +++ b/astrid/src/com/todoroo/astrid/tags/TagsPlugin.java @@ -19,7 +19,6 @@ public class TagsPlugin extends BroadcastReceiver { static final String IDENTIFIER = "tags"; //$NON-NLS-1$ - @SuppressWarnings("nls") @Override public void onReceive(Context context, Intent intent) { Addon plugin = new Addon(IDENTIFIER, "Tags", "Todoroo", diff --git a/astrid/src/com/todoroo/astrid/timers/TimerPlugin.java b/astrid/src/com/todoroo/astrid/timers/TimerPlugin.java index 5e73c5284..cdc1e188b 100644 --- a/astrid/src/com/todoroo/astrid/timers/TimerPlugin.java +++ b/astrid/src/com/todoroo/astrid/timers/TimerPlugin.java @@ -32,7 +32,6 @@ public class TimerPlugin extends BroadcastReceiver { static final String IDENTIFIER = "timer"; //$NON-NLS-1$ @Override - @SuppressWarnings("nls") public void onReceive(Context context, Intent intent) { ContextManager.setContext(context); Addon plugin = new Addon(IDENTIFIER, "Timer", "Todoroo", diff --git a/astrid/src/com/todoroo/astrid/ui/ContactListAdapter.java b/astrid/src/com/todoroo/astrid/ui/ContactListAdapter.java index c3e5a09c6..063757e63 100644 --- a/astrid/src/com/todoroo/astrid/ui/ContactListAdapter.java +++ b/astrid/src/com/todoroo/astrid/ui/ContactListAdapter.java @@ -39,7 +39,6 @@ import com.todoroo.andlib.sql.Query; import com.todoroo.astrid.data.TagData; import com.todoroo.astrid.service.TagDataService; -@SuppressWarnings({"nls", "deprecation"}) public class ContactListAdapter extends CursorAdapter { @Autowired TagDataService tagDataService; diff --git a/astrid/src/com/todoroo/astrid/ui/DateChangedAlerts.java b/astrid/src/com/todoroo/astrid/ui/DateChangedAlerts.java index 60799e7e6..808360480 100644 --- a/astrid/src/com/todoroo/astrid/ui/DateChangedAlerts.java +++ b/astrid/src/com/todoroo/astrid/ui/DateChangedAlerts.java @@ -266,7 +266,6 @@ public class DateChangedAlerts { } - @SuppressWarnings("nls") private static Spanned constructSpeechBubbleTextForQuickAdd(Context context, Task task) { String[] priorityStrings = context.getResources().getStringArray(R.array.TLA_priority_strings); int[] colorsArray = new int[] { R.color.importance_1, R.color.importance_2, R.color.importance_3, R.color.importance_4 }; @@ -304,7 +303,6 @@ public class DateChangedAlerts { return context.getString(R.string.TLA_repeat_scheduled_speech_bubble, recurrence); } - @SuppressWarnings("nls") private static String getRelativeDateAndTimeString(Context context, long date) { String dueString = date > 0 ? DateUtilities.getRelativeDay(context, date, false) : ""; if(Task.hasDueTime(date)) { @@ -314,7 +312,6 @@ public class DateChangedAlerts { return dueString; } - @SuppressWarnings("nls") private static String getRecurrenceString(Context context, Task task) { try { RRule rrule = new RRule(task.sanitizedRecurrence()); diff --git a/astrid/src/com/todoroo/astrid/ui/DeadlineTimePickerDialog.java b/astrid/src/com/todoroo/astrid/ui/DeadlineTimePickerDialog.java index 0a6cf1dab..cf8547471 100644 --- a/astrid/src/com/todoroo/astrid/ui/DeadlineTimePickerDialog.java +++ b/astrid/src/com/todoroo/astrid/ui/DeadlineTimePickerDialog.java @@ -40,7 +40,6 @@ import org.astrid.R; * This is similar to the Android {@link TimePickerDialog} class * except allows users to specify "no specific time". */ -@SuppressWarnings("nls") public class DeadlineTimePickerDialog extends AlertDialog implements OnClickListener, OnTimeChangedListener { diff --git a/astrid/src/com/todoroo/astrid/ui/DraggableListView.java b/astrid/src/com/todoroo/astrid/ui/DraggableListView.java index 6f684d76e..403f9e245 100644 --- a/astrid/src/com/todoroo/astrid/ui/DraggableListView.java +++ b/astrid/src/com/todoroo/astrid/ui/DraggableListView.java @@ -111,7 +111,7 @@ public class DraggableListView extends ListView { this.mItemHeightNormal = itemHeightNormal; } - protected boolean isDraggableRow(@SuppressWarnings("unused") View view) { + protected boolean isDraggableRow(View view) { return true; } @@ -550,14 +550,12 @@ public class DraggableListView extends ListView { this.dragndropBackgroundColor = color; } - @SuppressWarnings("nls") @Override final public void addHeaderView(View v, Object data, boolean isSelectable) { throw new RuntimeException( "Headers are not supported with TouchListView"); } - @SuppressWarnings("nls") @Override final public void addHeaderView(View v) { throw new RuntimeException( diff --git a/astrid/src/com/todoroo/astrid/ui/FeedbackPromptDialogs.java b/astrid/src/com/todoroo/astrid/ui/FeedbackPromptDialogs.java index cf2a861f4..15ce3826a 100644 --- a/astrid/src/com/todoroo/astrid/ui/FeedbackPromptDialogs.java +++ b/astrid/src/com/todoroo/astrid/ui/FeedbackPromptDialogs.java @@ -10,7 +10,6 @@ import com.todoroo.astrid.activity.AstridActivity; public class FeedbackPromptDialogs { - @SuppressWarnings("nls") public static void showFeedbackDialog(final AstridActivity activity, boolean positive) { final AstridDialog d = new AstridDialog(activity, false); diff --git a/astrid/src/com/todoroo/astrid/ui/NumberPicker.java b/astrid/src/com/todoroo/astrid/ui/NumberPicker.java index 457c9567e..120d2244e 100644 --- a/astrid/src/com/todoroo/astrid/ui/NumberPicker.java +++ b/astrid/src/com/todoroo/astrid/ui/NumberPicker.java @@ -26,7 +26,6 @@ import android.widget.TextView; import org.astrid.R; import com.todoroo.andlib.utility.AndroidUtilities; -@SuppressWarnings({"nls","unused"}) public class NumberPicker extends LinearLayout implements OnClickListener, OnFocusChangeListener, OnLongClickListener { diff --git a/astrid/src/com/todoroo/astrid/ui/PeopleContainer.java b/astrid/src/com/todoroo/astrid/ui/PeopleContainer.java index 02dd165f0..3f5072399 100644 --- a/astrid/src/com/todoroo/astrid/ui/PeopleContainer.java +++ b/astrid/src/com/todoroo/astrid/ui/PeopleContainer.java @@ -146,7 +146,6 @@ public class PeopleContainer extends LinearLayout { int after) { // } - @SuppressWarnings("nls") @Override public void onTextChanged(CharSequence s, int start, int before, int count) { @@ -169,7 +168,6 @@ public class PeopleContainer extends LinearLayout { }); textView.setOnEditorActionListener(new OnEditorActionListener() { - @SuppressWarnings("nls") @Override public boolean onEditorAction(TextView arg0, int actionId, KeyEvent arg2) { if(actionId != EditorInfo.IME_NULL) { @@ -224,7 +222,6 @@ public class PeopleContainer extends LinearLayout { return people; } - @SuppressWarnings("nls") public JSONObject parseSharedWithAndTags(Activity activity, boolean peopleAsJSON) throws JSONException, ParseSharedException { JSONObject sharedWith = new JSONObject(); @@ -291,7 +288,6 @@ public class PeopleContainer extends LinearLayout { * Add people from JSON Array * @param people */ - @SuppressWarnings("nls") public void fromJSONArray(JSONArray people) throws JSONException { for(int i = 0; i < people.length(); i++) { JSONObject person = people.getJSONObject(i); @@ -328,7 +324,6 @@ public class PeopleContainer extends LinearLayout { * @param textView * @return */ - @SuppressWarnings("nls") public static JSONObject createUserJson(TextView textView) { if(textView.isEnabled() == false) { return (JSONObject) textView.getTag(); diff --git a/astrid/src/com/todoroo/astrid/ui/QuickAddBar.java b/astrid/src/com/todoroo/astrid/ui/QuickAddBar.java index c6c7cfe8d..08f9f78c8 100644 --- a/astrid/src/com/todoroo/astrid/ui/QuickAddBar.java +++ b/astrid/src/com/todoroo/astrid/ui/QuickAddBar.java @@ -260,7 +260,6 @@ public class QuickAddBar extends LinearLayout { * @param title * @return */ - @SuppressWarnings("nls") public Task quickAddTask(String title, boolean selectNewTask) { TagData tagData = fragment.getActiveTagData(); if(tagData != null && (!tagData.containsNonNullValue(TagData.NAME) || diff --git a/astrid/src/com/todoroo/astrid/ui/TaskListFragmentPager.java b/astrid/src/com/todoroo/astrid/ui/TaskListFragmentPager.java index e6f4932c3..a5c097b2f 100644 --- a/astrid/src/com/todoroo/astrid/ui/TaskListFragmentPager.java +++ b/astrid/src/com/todoroo/astrid/ui/TaskListFragmentPager.java @@ -107,7 +107,6 @@ public class TaskListFragmentPager extends ViewPager { return false; } - @SuppressWarnings("nls") public static void showSwipeBetweenHelper(Activity activity) { if (!Preferences.getBoolean(PREF_SHOWED_SWIPE_HELPER, false)) { String body = String.format("

%s



%s", diff --git a/astrid/src/com/todoroo/astrid/ui/TimeDurationControlSet.java b/astrid/src/com/todoroo/astrid/ui/TimeDurationControlSet.java index acc957a5a..c7c586647 100644 --- a/astrid/src/com/todoroo/astrid/ui/TimeDurationControlSet.java +++ b/astrid/src/com/todoroo/astrid/ui/TimeDurationControlSet.java @@ -17,7 +17,6 @@ import com.todoroo.andlib.service.DependencyInjectionService; import com.todoroo.astrid.data.Task; import com.todoroo.astrid.ui.NNumberPickerDialog.OnNNumberPickedListener; -@SuppressWarnings("nls") public class TimeDurationControlSet implements OnNNumberPickedListener, View.OnClickListener { diff --git a/astrid/src/com/todoroo/astrid/utility/Constants.java b/astrid/src/com/todoroo/astrid/utility/Constants.java index 967a4266c..86b50bdcc 100644 --- a/astrid/src/com/todoroo/astrid/utility/Constants.java +++ b/astrid/src/com/todoroo/astrid/utility/Constants.java @@ -7,7 +7,6 @@ package com.todoroo.astrid.utility; import com.todoroo.astrid.service.MarketStrategy; -@SuppressWarnings("nls") public final class Constants { // --- general application constants diff --git a/astrid/src/com/todoroo/astrid/utility/Entities.java b/astrid/src/com/todoroo/astrid/utility/Entities.java index 06fa61fd9..33f516634 100644 --- a/astrid/src/com/todoroo/astrid/utility/Entities.java +++ b/astrid/src/com/todoroo/astrid/utility/Entities.java @@ -40,7 +40,6 @@ import java.util.TreeMap; * @since 2.0 * @version $Id: Entities.java 2696 2007-06-20 13:24:53Z damencho $ */ -@SuppressWarnings({"nls", "rawtypes", "unused"}) class Entities { private static final String[][] BASIC_ARRAY = {{"quot", "34"}, // " - double-quote diff --git a/astrid/src/com/todoroo/astrid/utility/StringEscapeUtils.java b/astrid/src/com/todoroo/astrid/utility/StringEscapeUtils.java index 45e4b8c35..7525caacf 100644 --- a/astrid/src/com/todoroo/astrid/utility/StringEscapeUtils.java +++ b/astrid/src/com/todoroo/astrid/utility/StringEscapeUtils.java @@ -36,7 +36,6 @@ import java.io.Writer; * @since 2.0 * @version $Id: StringEscapeUtils.java 2696 2007-06-20 13:24:53Z damencho $ */ -@SuppressWarnings({"nls"}) public class StringEscapeUtils { /** diff --git a/astrid/src/com/todoroo/astrid/utility/TitleParser.java b/astrid/src/com/todoroo/astrid/utility/TitleParser.java index 3e95bff24..c25d8ddbd 100644 --- a/astrid/src/com/todoroo/astrid/utility/TitleParser.java +++ b/astrid/src/com/todoroo/astrid/utility/TitleParser.java @@ -22,7 +22,6 @@ import com.mdimension.jchronic.Chronic; import com.todoroo.astrid.data.Task; import com.todoroo.astrid.tags.TagService; -@SuppressWarnings("nls") public class TitleParser { public static boolean parse(Task task, ArrayList tags) { diff --git a/astrid/src/com/todoroo/astrid/voice/Api6VoiceOutputAssistant.java b/astrid/src/com/todoroo/astrid/voice/Api6VoiceOutputAssistant.java index 003ed6cd7..1179cc16a 100644 --- a/astrid/src/com/todoroo/astrid/voice/Api6VoiceOutputAssistant.java +++ b/astrid/src/com/todoroo/astrid/voice/Api6VoiceOutputAssistant.java @@ -21,7 +21,6 @@ import com.todoroo.astrid.voice.VoiceOutputService.VoiceOutputAssistant; * @author Arne Jans * */ -@SuppressWarnings("nls") public class Api6VoiceOutputAssistant implements OnInitListener, VoiceOutputAssistant { private static final int MY_DATA_CHECK_CODE = 2534; diff --git a/astrid/src/com/todoroo/astrid/voice/VoiceInputAssistant.java b/astrid/src/com/todoroo/astrid/voice/VoiceInputAssistant.java index 9561e59dc..dbcbed553 100644 --- a/astrid/src/com/todoroo/astrid/voice/VoiceInputAssistant.java +++ b/astrid/src/com/todoroo/astrid/voice/VoiceInputAssistant.java @@ -39,7 +39,6 @@ import com.todoroo.astrid.utility.Constants; * * @author Arne Jans */ -@SuppressWarnings("nls") public class VoiceInputAssistant { /** requestcode for activityresult from voicerecognizer-intent */ diff --git a/astrid/src/com/todoroo/astrid/widget/TasksWidget.java b/astrid/src/com/todoroo/astrid/widget/TasksWidget.java index b8515866b..4ca8c41ed 100644 --- a/astrid/src/com/todoroo/astrid/widget/TasksWidget.java +++ b/astrid/src/com/todoroo/astrid/widget/TasksWidget.java @@ -169,7 +169,6 @@ public class TasksWidget extends AppWidgetProvider { return null; } - @SuppressWarnings("nls") public RemoteViews buildUpdate(Context context, int widgetId) { DependencyInjectionService.getInstance().inject(this); @@ -335,7 +334,6 @@ public class TasksWidget extends AppWidgetProvider { * @param context * @return */ - @SuppressWarnings("nls") private RemoteViews getThemedRemoteViews(Context context) { int theme = ThemeService.getWidgetTheme(); String packageName = context.getPackageName(); diff --git a/astrid/src/com/todoroo/astrid/widget/WidgetConfigActivity.java b/astrid/src/com/todoroo/astrid/widget/WidgetConfigActivity.java index 7d47d1f74..9edd1bfc3 100644 --- a/astrid/src/com/todoroo/astrid/widget/WidgetConfigActivity.java +++ b/astrid/src/com/todoroo/astrid/widget/WidgetConfigActivity.java @@ -25,7 +25,6 @@ import com.todoroo.astrid.api.FilterWithCustomIntent; import com.todoroo.astrid.service.StatisticsConstants; import com.todoroo.astrid.service.ThemeService; -@SuppressWarnings("nls") abstract public class WidgetConfigActivity extends ListActivity { static final String PREF_TITLE = "widget-title-"; diff --git a/astrid/src/edu/mit/mobile/android/imagecache/DrawableMemCache.java b/astrid/src/edu/mit/mobile/android/imagecache/DrawableMemCache.java index 81e354bc1..f9fc71b19 100644 --- a/astrid/src/edu/mit/mobile/android/imagecache/DrawableMemCache.java +++ b/astrid/src/edu/mit/mobile/android/imagecache/DrawableMemCache.java @@ -24,7 +24,6 @@ import android.support.v4.util.LruCache; public class DrawableMemCache extends LruCache { - @SuppressWarnings("unused") private static final String TAG = DrawableMemCache.class.getSimpleName(); public DrawableMemCache(int maxSize) { diff --git a/astrid/src/edu/mit/mobile/android/imagecache/ImageCache.java b/astrid/src/edu/mit/mobile/android/imagecache/ImageCache.java index bdceb136a..6a66e4a78 100644 --- a/astrid/src/edu/mit/mobile/android/imagecache/ImageCache.java +++ b/astrid/src/edu/mit/mobile/android/imagecache/ImageCache.java @@ -113,7 +113,6 @@ public class ImageCache extends DiskCache { new PriorityBlockingQueue()); // ignored as SparseArray isn't thread-safe - @SuppressLint("UseSparseArrays") private final Map jobs = Collections .synchronizedMap(new HashMap()); diff --git a/astrid/src/edu/mit/mobile/android/imagecache/KeyedLock.java b/astrid/src/edu/mit/mobile/android/imagecache/KeyedLock.java index 98a6d82b9..9ccdc19b9 100644 --- a/astrid/src/edu/mit/mobile/android/imagecache/KeyedLock.java +++ b/astrid/src/edu/mit/mobile/android/imagecache/KeyedLock.java @@ -75,4 +75,4 @@ public class KeyedLock { Log.d(TAG, Thread.currentThread().getId() + "\t" + message); } -} \ No newline at end of file +}