Bug 708151 - Fix switch indentation in BrowserProvider (r=blassey, a=mfinkle)
authorLucas Rocha <lucasr@mozilla.com>
Tue, 13 Dec 2011 14:46:58 +0000
changeset 84137 892998b307696babf22246350b2df47d1067a15c
parent 84136 617f56ac76e61706074beb9551f79e4d387dde34
child 84138 271d2711b66cc0bdea4cdd6e05140d34ebfa062b
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, mfinkle
bugs708151
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 708151 - Fix switch indentation in BrowserProvider (r=blassey, a=mfinkle)
mobile/android/base/db/BrowserProvider.java
--- a/mobile/android/base/db/BrowserProvider.java
+++ b/mobile/android/base/db/BrowserProvider.java
@@ -535,47 +535,47 @@ public class BrowserProvider extends Con
                 selectionArgs = appendSelectionArgs(selectionArgs,
                         new String[] { Long.toString(ContentUris.parseId(uri)) });
                 // fall through
             case BOOKMARKS: {
                 Log.d(LOGTAG, "Deleting bookmarks: " + uri);
                 deleted = deleteBookmarks(uri, selection, selectionArgs);
                 deleteUnusedImages(uri);
                 break;
-        }
+            }
 
-        case HISTORY_ID:
-            Log.d(LOGTAG, "Delete on HISTORY_ID: " + uri);
+            case HISTORY_ID:
+                Log.d(LOGTAG, "Delete on HISTORY_ID: " + uri);
 
-            selection = concatenateWhere(selection, TABLE_HISTORY + "._id = ?");
-            selectionArgs = appendSelectionArgs(selectionArgs,
-                    new String[] { Long.toString(ContentUris.parseId(uri)) });
-            // fall through
-        case HISTORY: {
-            Log.d(LOGTAG, "Deleting history: " + uri);
-            deleted = deleteHistory(uri, selection, selectionArgs);
-            deleteUnusedImages(uri);
-            break;
-        }
+                selection = concatenateWhere(selection, TABLE_HISTORY + "._id = ?");
+                selectionArgs = appendSelectionArgs(selectionArgs,
+                        new String[] { Long.toString(ContentUris.parseId(uri)) });
+                // fall through
+            case HISTORY: {
+                Log.d(LOGTAG, "Deleting history: " + uri);
+                deleted = deleteHistory(uri, selection, selectionArgs);
+                deleteUnusedImages(uri);
+                break;
+            }
 
-        case IMAGES_ID:
-            Log.d(LOGTAG, "Delete on IMAGES_ID: " + uri);
+            case IMAGES_ID:
+                Log.d(LOGTAG, "Delete on IMAGES_ID: " + uri);
 
-            selection = concatenateWhere(selection, TABLE_IMAGES + "._id = ?");
-            selectionArgs = appendSelectionArgs(selectionArgs,
-                    new String[] { Long.toString(ContentUris.parseId(uri)) });
-            // fall through
-        case IMAGES: {
-            Log.d(LOGTAG, "Deleting images: " + uri);
-            deleted = deleteImages(uri, selection, selectionArgs);
-            break;
-        }
+                selection = concatenateWhere(selection, TABLE_IMAGES + "._id = ?");
+                selectionArgs = appendSelectionArgs(selectionArgs,
+                        new String[] { Long.toString(ContentUris.parseId(uri)) });
+                // fall through
+            case IMAGES: {
+                Log.d(LOGTAG, "Deleting images: " + uri);
+                deleted = deleteImages(uri, selection, selectionArgs);
+                break;
+            }
 
-        default:
-            throw new UnsupportedOperationException("Unknown delete URI " + uri);
+            default:
+                throw new UnsupportedOperationException("Unknown delete URI " + uri);
         }
 
         Log.d(LOGTAG, "Deleted " + deleted + " rows for URI: " + uri);
 
         return deleted;
     }
 
     @Override