mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
Modified extra whitespace lines in source code
Code is much easier to read if there isn't too much of a gap between lines. Primarily converted multi-line gaps into single line gaps.
This commit is contained in:
parent
a685ecf2c3
commit
94e8c991ee
34 changed files with 5 additions and 76 deletions
|
|
@ -6,7 +6,6 @@ import org.json.JSONObject;
|
|||
|
||||
public class CategoryModifier extends PageModifier {
|
||||
|
||||
|
||||
public static String PARAM_CATEGORIES = "categories";
|
||||
|
||||
public static String MODIFIER_NAME = "CategoriesModifier";
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ public class ModificationsContentProvider extends ContentProvider{
|
|||
uriMatcher.addURI(AUTHORITY, BASE_PATH + "/#", MODIFICATIONS_ID);
|
||||
}
|
||||
|
||||
|
||||
public static Uri uriForId(int id) {
|
||||
return Uri.parse(BASE_URI.toString() + "/" + id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ import fr.free.nrw.commons.CommonsApplication;
|
|||
import fr.free.nrw.commons.Utils;
|
||||
import fr.free.nrw.commons.contributions.ContributionsContentProvider;
|
||||
|
||||
|
||||
public class ModificationsSyncAdapter extends AbstractThreadedSyncAdapter {
|
||||
|
||||
public ModificationsSyncAdapter(Context context, boolean autoInitialize) {
|
||||
|
|
@ -66,7 +65,6 @@ public class ModificationsSyncAdapter extends AbstractThreadedSyncAdapter {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
allModifications.moveToFirst();
|
||||
|
||||
Log.d("Commons", "Found " + allModifications.getCount() + " modifications to execute");
|
||||
|
|
@ -129,13 +127,11 @@ public class ModificationsSyncAdapter extends AbstractThreadedSyncAdapter {
|
|||
}
|
||||
}
|
||||
allModifications.moveToNext();
|
||||
|
||||
}
|
||||
} finally {
|
||||
if(contributionsClient != null) {
|
||||
contributionsClient.release();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,14 +127,12 @@ public class ModifierSequence {
|
|||
COLUMN_DATA
|
||||
};
|
||||
|
||||
|
||||
private static final String CREATE_TABLE_STATEMENT = "CREATE TABLE " + TABLE_NAME + " ("
|
||||
+ "_id INTEGER PRIMARY KEY,"
|
||||
+ "mediauri STRING,"
|
||||
+ "data STRING"
|
||||
+ ");";
|
||||
|
||||
|
||||
public static void onCreate(SQLiteDatabase db) {
|
||||
db.execSQL(CREATE_TABLE_STATEMENT);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ public class TemplateRemoveModifier extends PageModifier {
|
|||
public static final Pattern PATTERN_TEMPLATE_OPEN = Pattern.compile("\\{\\{");
|
||||
public static final Pattern PATTERN_TEMPLATE_CLOSE = Pattern.compile("\\}\\}");
|
||||
|
||||
|
||||
public TemplateRemoveModifier(String templateName) {
|
||||
super(MODIFIER_NAME);
|
||||
try {
|
||||
|
|
@ -86,7 +85,6 @@ public class TemplateRemoveModifier extends PageModifier {
|
|||
}
|
||||
|
||||
return pageContents;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue