Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tommy Webb
Tor Browser
Commits
57a3b4f8
Commit
57a3b4f8
authored
12 years ago
by
Kyle Huey
Browse files
Options
Downloads
Patches
Plain Diff
Bug 744498: Fix some java warnings. r=kats
parent
3ac83335
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mobile/android/base/db/BrowserProvider.java.in
+2
-2
2 additions, 2 deletions
mobile/android/base/db/BrowserProvider.java.in
mobile/android/base/sqlite/SQLiteBridge.java
+1
-1
1 addition, 1 deletion
mobile/android/base/sqlite/SQLiteBridge.java
with
3 additions
and
3 deletions
mobile/android/base/db/BrowserProvider.java.in
+
2
−
2
View file @
57a3b4f8
...
@@ -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_*
...
...
This diff is collapsed.
Click to expand it.
mobile/android/base/sqlite/SQLiteBridge.java
+
1
−
1
View file @
57a3b4f8
...
@@ -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
=
b
ridge
.
openDatabase
(
path
);
bridge
.
mDbPointer
=
SQLiteB
ridge
.
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
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment