Use 'final' modifier where possible
authorReto Buerki <reet@codelabs.ch>
Tue, 13 Mar 2012 09:54:23 +0000 (10:54 +0100)
committerReto Buerki <reet@codelabs.ch>
Tue, 13 Mar 2012 09:54:23 +0000 (10:54 +0100)
src/ch/codelabs/gitter/test/CommitDbAdapterTest.java

index 1512c87..9c9ee1a 100644 (file)
@@ -34,13 +34,14 @@ public class CommitDbAdapterTest extends AndroidTestCase {
         * Insert commit into database.
         */
        public void testInsertCommit() {
-               CommitDbAdapter commitDbAdapter = new CommitDbAdapter(getContext());
+               final CommitDbAdapter commitDbAdapter = new
+                               CommitDbAdapter(getContext());
                commitDbAdapter.open();
 
-               long id = commitDbAdapter.insertCommit("Update TODO",
+               final long id = commitDbAdapter.insertCommit("Update TODO",
                                "John Doe doe@example.com", "http://1.com/abc", "testdata");
 
-               Cursor c = commitDbAdapter.fetchAllCommits();
+               final Cursor c = commitDbAdapter.fetchAllCommits();
                assertTrue(c.getCount() > 0);
 
                c.moveToFirst();