Skip to content
Snippets Groups Projects
Commit 57a3b4f8 authored by Kyle Huey's avatar Kyle Huey
Browse files

Bug 744498: Fix some java warnings. r=kats

parent 3ac83335
No related branches found
No related tags found
No related merge requests found
...@@ -455,7 +455,7 @@ public class BrowserProvider extends ContentProvider { ...@@ -455,7 +455,7 @@ public class BrowserProvider extends ContentProvider {
} }
private void createDefaultBookmarks(SQLiteDatabase db, String pattern) { private void createDefaultBookmarks(SQLiteDatabase db, String pattern) {
Class stringsClass = R.string.class; Class<?> stringsClass = R.string.class;
Field[] fields = stringsClass.getFields(); Field[] fields = stringsClass.getFields();
Pattern p = Pattern.compile(pattern); Pattern p = Pattern.compile(pattern);
...@@ -498,7 +498,7 @@ public class BrowserProvider extends ContentProvider { ...@@ -498,7 +498,7 @@ public class BrowserProvider extends ContentProvider {
} }
private void setDefaultFavicon(SQLiteDatabase db, String name, String url) { private void setDefaultFavicon(SQLiteDatabase db, String name, String url) {
Class drawablesClass = R.drawable.class; Class<?> drawablesClass = R.drawable.class;
ByteArrayOutputStream stream = null; ByteArrayOutputStream stream = null;
try { try {
// Look for a drawable with the id R.drawable.bookmarkdefaults_favicon_* // Look for a drawable with the id R.drawable.bookmarkdefaults_favicon_*
......
...@@ -252,7 +252,7 @@ public class SQLiteBridge { ...@@ -252,7 +252,7 @@ public class SQLiteBridge {
SQLiteBridge bridge = null; SQLiteBridge bridge = null;
try { try {
bridge = new SQLiteBridge(path); bridge = new SQLiteBridge(path);
bridge.mDbPointer = bridge.openDatabase(path); bridge.mDbPointer = SQLiteBridge.openDatabase(path);
} catch(SQLiteBridgeException ex) { } catch(SQLiteBridgeException ex) {
// catch and rethrow as a SQLiteException to match SQLiteDatabase // catch and rethrow as a SQLiteException to match SQLiteDatabase
throw new SQLiteException(ex.getMessage()); throw new SQLiteException(ex.getMessage());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment