Remove unnecessary spaces

This commit is contained in:
Daniel Martí 2015-01-04 00:23:19 +01:00
parent c6c472402d
commit 2bd05dec38
5 changed files with 6 additions and 6 deletions

View File

@ -119,7 +119,7 @@ public class ApkProvider extends FDroidProvider {
return cursorToList(cursor);
}
public static Apk get(Context context, Uri uri ) {
public static Apk get(Context context, Uri uri) {
return get(context, uri, DataColumns.ALL);
}

View File

@ -78,7 +78,7 @@ public class AppProvider extends FDroidProvider {
ContentResolver resolver = context.getContentResolver();
Uri uri = getContentUri();
String[] projection = { DataColumns.CATEGORIES };
Cursor cursor = resolver.query(uri, projection, null, null, null );
Cursor cursor = resolver.query(uri, projection, null, null, null);
Set<String> categorySet = new HashSet<String>();
if (cursor != null) {
if (cursor.getCount() > 0) {

View File

@ -142,7 +142,7 @@ public class DBHelper extends SQLiteOpenHelper {
try {
// http://stackoverflow.com/questions/805363/how-do-i-rename-a-column-in-a-sqlite-database-table#805508
String tempTableName = TABLE_REPO + "__temp__";
db.execSQL("ALTER TABLE " + TABLE_REPO + " RENAME TO " + tempTableName + ";" );
db.execSQL("ALTER TABLE " + TABLE_REPO + " RENAME TO " + tempTableName + ";");
// I realise this is available in the CREATE_TABLE_REPO above,
// however I have a feeling that it will need to be the same as the

View File

@ -68,7 +68,7 @@ public class RepoProvider extends FDroidProvider {
Uri uri = RepoProvider.getContentUri();
String[] args = { fieldValue };
Cursor cursor = resolver.query(
uri, projection, fieldName + " = ?", args, null );
uri, projection, fieldName + " = ?", args, null);
return cursorToList(cursor);
}
@ -153,7 +153,7 @@ public class RepoProvider extends FDroidProvider {
Uri uri = getContentUri(repo.getId());
String[] args = { Long.toString(repo.getId()) };
resolver.update(uri, values, DataColumns._ID + " = ?", args );
resolver.update(uri, values, DataColumns._ID + " = ?", args);
repo.setValues(values);
}

View File

@ -126,7 +126,7 @@ public class WifiQrFragment extends Fragment {
* custom URI schemes, so we have to use http:// or https:// :-(
*/
Uri sharingUri = Utils.getSharingUri(getActivity(), FDroidApp.repo);
String qrUriString = ( scheme + sharingUri.getHost() ).toUpperCase(Locale.ENGLISH);
String qrUriString = (scheme + sharingUri.getHost()).toUpperCase(Locale.ENGLISH);
if (sharingUri.getPort() != 80) {
qrUriString += ":" + sharingUri.getPort();
}