mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 744498: Fix some java warnings. r=kats
This commit is contained in:
parent
f774a22fec
commit
abeb0a1a6e
@ -455,7 +455,7 @@ public class BrowserProvider extends ContentProvider {
|
||||
}
|
||||
|
||||
private void createDefaultBookmarks(SQLiteDatabase db, String pattern) {
|
||||
Class stringsClass = R.string.class;
|
||||
Class<?> stringsClass = R.string.class;
|
||||
|
||||
Field[] fields = stringsClass.getFields();
|
||||
Pattern p = Pattern.compile(pattern);
|
||||
@ -498,7 +498,7 @@ public class BrowserProvider extends ContentProvider {
|
||||
}
|
||||
|
||||
private void setDefaultFavicon(SQLiteDatabase db, String name, String url) {
|
||||
Class drawablesClass = R.drawable.class;
|
||||
Class<?> drawablesClass = R.drawable.class;
|
||||
ByteArrayOutputStream stream = null;
|
||||
try {
|
||||
// Look for a drawable with the id R.drawable.bookmarkdefaults_favicon_*
|
||||
|
@ -252,7 +252,7 @@ public class SQLiteBridge {
|
||||
SQLiteBridge bridge = null;
|
||||
try {
|
||||
bridge = new SQLiteBridge(path);
|
||||
bridge.mDbPointer = bridge.openDatabase(path);
|
||||
bridge.mDbPointer = SQLiteBridge.openDatabase(path);
|
||||
} catch(SQLiteBridgeException ex) {
|
||||
// catch and rethrow as a SQLiteException to match SQLiteDatabase
|
||||
throw new SQLiteException(ex.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user