Bug 744498: Fix some java warnings. r=kats

This commit is contained in:
Kyle Huey 2012-04-11 11:27:25 -07:00
parent f774a22fec
commit abeb0a1a6e
2 changed files with 3 additions and 3 deletions

View File

@ -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_*

View File

@ -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());