replace 'new String()' with ""

bug reported by findbugs
http://b/issue?id=1856909
This commit is contained in:
Cary Clark
2009-08-11 16:08:52 -04:00
parent 7d89133364
commit 686cf75d5c
2 changed files with 2 additions and 2 deletions

View File

@@ -685,7 +685,7 @@ class BrowserFrame extends Handler {
default:
Log.e(LOGTAG, "getRawResFilename got incompatible resource ID");
return new String();
return "";
}
TypedValue value = new TypedValue();
mContext.getResources().getValue(resid, value, true);

View File

@@ -429,7 +429,7 @@ public final class CacheManager {
if (checkCacheRedirect(cacheRet.httpStatusCode)) {
// location is in database, no need to keep the file
cacheRet.contentLength = 0;
cacheRet.localPath = new String();
cacheRet.localPath = "";
cacheRet.outFile.delete();
} else if (cacheRet.contentLength == 0) {
cacheRet.outFile.delete();