Minor lint fixes

This commit is contained in:
Sergey Eremin
2017-05-27 14:42:59 +03:00
parent 4917ca2e07
commit 6e13bf8917
4 changed files with 3 additions and 8 deletions

View File

@@ -21,9 +21,7 @@ class CategoryAppsTask extends GoogleApiAsyncTask {
if (!iterator.hasNext()) {
return null;
}
for (App app: iterator.next()) {
apps.add(app);
}
apps.addAll(iterator.next());
} catch (Throwable e) {
return e;
}

View File

@@ -21,12 +21,10 @@ public class CategoryManager {
private Activity activity;
private SharedPreferencesTranslator translator;
private SharedPreferences prefs;
public CategoryManager(Activity activity) {
this.activity = activity;
prefs = PreferenceManager.getDefaultSharedPreferences(activity);
translator = new SharedPreferencesTranslator(prefs);
translator = new SharedPreferencesTranslator(PreferenceManager.getDefaultSharedPreferences(activity));
}
public String getCategoryName(String categoryId) {

View File

@@ -69,7 +69,7 @@ public class NativeHttpClientAdapter extends HttpClientAdapter {
}
addBody(connection, body);
byte[] content = new byte[0];
byte[] content;
Log.i(getClass().getName(), "Requesting " + connection.getURL().toString());
connection.connect();

View File

@@ -30,7 +30,6 @@ class ReviewAddTask extends AsyncTask<com.github.yeriomin.yalpstore.model.Review
try {
review = wrapper.addOrEditReview(packageName, params[0]);
} catch (IOException e) {
System.out.println(e.getClass().getName() + " " + e.getMessage());
e.printStackTrace();
return e;
}