mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 714874 - Fix some Java warnings. r=dougt a=dougt
This commit is contained in:
parent
40f55035a6
commit
b576548e57
@ -69,7 +69,6 @@ JAVAC_FLAGS = \
|
||||
-source $(JAVA_VERSION) \
|
||||
-classpath $(JAVA_CLASSPATH) \
|
||||
-bootclasspath $(JAVA_BOOTCLASSPATH) \
|
||||
-encoding ascii \
|
||||
-encoding UTF8 \
|
||||
-g \
|
||||
$(NULL)
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user