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:
commit
4836bd59e8
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user