Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ea1e275 authored by BO41's avatar BO41 Committed by Marten Gajda
Browse files

clean code (#697)

parent cc8cf1e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@ public final class UriFactory
    UriFactory(String authority)
    UriFactory(String authority)
    {
    {
        mAuthority = authority;
        mAuthority = authority;
        mUriMap.put((String) null, Uri.parse("content://" + authority));
        mUriMap.put(null, Uri.parse("content://" + authority));
    }
    }




+1 −1
Original line number Original line Diff line number Diff line
@@ -280,7 +280,7 @@ public class TaskProviderInstancesTest
     * Create a single instance and insert an override for a new instance, turning the event into a recurring event.
     * Create a single instance and insert an override for a new instance, turning the event into a recurring event.
     */
     */
    @Test
    @Test
    public void testInsertSingleInstanceAddAnother() throws RemoteException, OperationApplicationException
    public void testInsertSingleInstanceAddAnother()
    {
    {
        RowSnapshot<TaskLists> taskList = new VirtualRowSnapshot<>(new LocalTaskListsTable(mAuthority));
        RowSnapshot<TaskLists> taskList = new VirtualRowSnapshot<>(new LocalTaskListsTable(mAuthority));
        RowSnapshot<Tasks> task = new VirtualRowSnapshot<>(new TasksTable(mAuthority));
        RowSnapshot<Tasks> task = new VirtualRowSnapshot<>(new TasksTable(mAuthority));
+2 −2
Original line number Original line Diff line number Diff line
@@ -308,7 +308,7 @@ public enum ContentOperation
    private static final String PREFS_KEY_LAST_ALARM_TIMESTAMP = "org.dmfs.provider.tasks.prefs.LAST_ALARM_TIMESTAMP";
    private static final String PREFS_KEY_LAST_ALARM_TIMESTAMP = "org.dmfs.provider.tasks.prefs.LAST_ALARM_TIMESTAMP";




    private ContentOperation(OperationHandler handler)
    ContentOperation(OperationHandler handler)
    {
    {
        mHandler = handler;
        mHandler = handler;
    }
    }
@@ -420,7 +420,7 @@ public enum ContentOperation


    public interface OperationHandler
    public interface OperationHandler
    {
    {
        public void handleOperation(Context context, Uri uri, SQLiteDatabase db, ContentValues values);
        void handleOperation(Context context, Uri uri, SQLiteDatabase db, ContentValues values);
    }
    }


}
}
+10 −10
Original line number Original line Diff line number Diff line
@@ -66,22 +66,22 @@ public class FTSDatabaseHelper
        /**
        /**
         * The row id of the belonging task.
         * The row id of the belonging task.
         */
         */
        public static final String TASK_ID = "fts_task_id";
        String TASK_ID = "fts_task_id";


        /**
        /**
         * The the property id of the searchable entry or <code>null</code> if the entry is not related to a property.
         * The the property id of the searchable entry or <code>null</code> if the entry is not related to a property.
         */
         */
        public static final String PROPERTY_ID = "fts_property_id";
        String PROPERTY_ID = "fts_property_id";


        /**
        /**
         * The the type of the searchable entry
         * The the type of the searchable entry
         */
         */
        public static final String TYPE = "fts_type";
        String TYPE = "fts_type";


        /**
        /**
         * An n-gram for a task.
         * An n-gram for a task.
         */
         */
        public static final String NGRAM_ID = "fts_ngram_id";
        String NGRAM_ID = "fts_ngram_id";


    }
    }


@@ -96,12 +96,12 @@ public class FTSDatabaseHelper
        /**
        /**
         * The row id of the N-gram.
         * The row id of the N-gram.
         */
         */
        public static final String NGRAM_ID = "ngram_id";
        String NGRAM_ID = "ngram_id";


        /**
        /**
         * The content of the N-gram
         * The content of the N-gram
         */
         */
        public static final String TEXT = "ngram_text";
        String TEXT = "ngram_text";


    }
    }


@@ -154,22 +154,22 @@ public class FTSDatabaseHelper
        /**
        /**
         * This is an entry for the title of a task.
         * This is an entry for the title of a task.
         */
         */
        public static final int TITLE = 1;
        int TITLE = 1;


        /**
        /**
         * This is an entry for the description of a task.
         * This is an entry for the description of a task.
         */
         */
        public static final int DESCRIPTION = 2;
        int DESCRIPTION = 2;


        /**
        /**
         * This is an entry for the location of a task.
         * This is an entry for the location of a task.
         */
         */
        public static final int LOCATION = 3;
        int LOCATION = 3;


        /**
        /**
         * This is an entry for a property of a task.
         * This is an entry for a property of a task.
         */
         */
        public static final int PROPERTY = 4;
        int PROPERTY = 4;


    }
    }


+1 −1
Original line number Original line Diff line number Diff line
@@ -35,5 +35,5 @@ public enum ProviderOperation
    /**
    /**
     * Delete operations.
     * Delete operations.
     */
     */
    DELETE;
    DELETE
}
}
Loading