1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2024-12-18 19:43:35 +01:00

Merge pull request #529 from DevFactory/release/using-interface-instead-of-imlementation-fix-1

use Java collection interfaces rather than specific implementation
This commit is contained in:
Mariotaku 2016-04-16 20:52:25 -05:00
commit 4836bd59e8
2 changed files with 5 additions and 3 deletions

View File

@ -37,6 +37,7 @@ import org.mariotaku.twidere.model.UserKey;
import org.mariotaku.twidere.util.DataStoreUtils;
import java.util.HashMap;
import java.util.Map;
/**
* Created by mariotaku on 15/8/8.
@ -79,7 +80,7 @@ public class SessionEvent extends BaseEvent implements Parcelable {
return configuration;
}
public HashMap<String, String> getPreferences() {
public Map<String, String> getPreferences() {
return preferences;
}
@ -87,7 +88,7 @@ public class SessionEvent extends BaseEvent implements Parcelable {
this.preferences = preferences;
}
public HashMap<String, String> getDevicePreferences() {
public Map<String, String> getDevicePreferences() {
return devicePreferences;
}

View File

@ -27,6 +27,7 @@ import org.mariotaku.twidere.task.ManagedAsyncTask;
import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
@ -94,7 +95,7 @@ public final class AsyncTaskManager {
return mHandler;
}
public ArrayList<ManagedAsyncTask<?, ?, ?>> getTaskSpecList() {
public List<ManagedAsyncTask<?, ?, ?>> getTaskSpecList() {
return new ArrayList<>(mTasks);
}