Bug 714874 - Fix some Java warnings. r=dougt a=dougt

This commit is contained in:
Chris Peterson 2012-01-05 10:49:33 -08:00
parent 40f55035a6
commit b576548e57
4 changed files with 7 additions and 4 deletions

View File

@ -69,7 +69,6 @@ JAVAC_FLAGS = \
-source $(JAVA_VERSION) \
-classpath $(JAVA_CLASSPATH) \
-bootclasspath $(JAVA_BOOTCLASSPATH) \
-encoding ascii \
-encoding UTF8 \
-g \
$(NULL)

View File

@ -405,7 +405,7 @@ public class AwesomeBar extends Activity implements GeckoEventListener {
int groupPosition = exList.getPackedPositionGroup(info.packedPosition);
selectedItem = exList.getExpandableListAdapter().getChild(groupPosition, childPosition);
Map<String, Object> map = (Map<String, Object>)selectedItem;
Map map = (Map)selectedItem;
title = (String)map.get(URLColumns.TITLE);
} else {
AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;
@ -442,7 +442,7 @@ public class AwesomeBar extends Activity implements GeckoEventListener {
b = (byte[]) cursor.getBlob(cursor.getColumnIndexOrThrow(URLColumns.FAVICON));
title = cursor.getString(cursor.getColumnIndexOrThrow(URLColumns.TITLE));
} else if (mContextMenuSubject instanceof Map) {
Map<String, Object> map = (Map<String, Object>)mContextMenuSubject;
Map map = (Map)mContextMenuSubject;
url = (String)map.get(URLColumns.URL);
b = (byte[]) map.get(URLColumns.FAVICON);
title = (String)map.get(URLColumns.TITLE);

View File

@ -584,6 +584,7 @@ public class BrowserProvider extends ContentProvider {
return deleted;
}
@SuppressWarnings("fallthrough")
public int deleteInTransaction(Uri uri, String selection, String[] selectionArgs) {
Log.d(LOGTAG, "Calling delete in transaction on URI: " + uri);
@ -788,6 +789,7 @@ public class BrowserProvider extends ContentProvider {
return updated;
}
@SuppressWarnings("fallthrough")
public int updateInTransaction(Uri uri, ContentValues values, String selection,
String[] selectionArgs) {
Log.d(LOGTAG, "Calling update in transaction on URI: " + uri);

View File

@ -242,6 +242,7 @@ public class PanZoomController
}
/** This function must be called from the UI thread. */
@SuppressWarnings("fallthrough")
public void abortAnimation() {
// this happens when gecko changes the viewport on us or if the device is rotated.
// if that's the case, abort any animation in progress and re-zoom so that the page
@ -301,6 +302,7 @@ public class PanZoomController
return false;
}
@SuppressWarnings("fallthrough")
private boolean onTouchMove(MotionEvent event) {
Log.d(LOGTAG, "onTouchMove in state " + mState);