|
9 | 9 | */ |
10 | 10 | package com.nextcloud.android.sso.api; |
11 | 11 |
|
12 | | -import static com.nextcloud.android.sso.aidl.ParcelFileDescriptorUtil.pipeFrom; |
13 | | -import static com.nextcloud.android.sso.exceptions.SSOException.parseNextcloudCustomException; |
14 | | - |
15 | 12 | import android.content.ComponentName; |
16 | 13 | import android.content.Context; |
17 | 14 | import android.content.Intent; |
|
23 | 20 | import android.os.RemoteException; |
24 | 21 | import android.util.Log; |
25 | 22 |
|
26 | | -import androidx.annotation.NonNull; |
27 | | -import androidx.annotation.Nullable; |
28 | | -import androidx.annotation.VisibleForTesting; |
29 | | - |
30 | 23 | import com.google.gson.Gson; |
31 | | -import com.google.gson.internal.LinkedTreeMap; |
32 | 24 | import com.nextcloud.android.sso.FilesAppTypeRegistry; |
33 | 25 | import com.nextcloud.android.sso.aidl.IInputStreamService; |
34 | 26 | import com.nextcloud.android.sso.aidl.NextcloudRequest; |
|
43 | 35 | import java.io.ObjectOutputStream; |
44 | 36 | import java.io.Serializable; |
45 | 37 | import java.util.ArrayList; |
| 38 | +import java.util.LinkedHashMap; |
46 | 39 | import java.util.concurrent.atomic.AtomicBoolean; |
47 | 40 |
|
| 41 | +import androidx.annotation.NonNull; |
| 42 | +import androidx.annotation.Nullable; |
| 43 | +import androidx.annotation.VisibleForTesting; |
| 44 | + |
| 45 | +import static com.nextcloud.android.sso.aidl.ParcelFileDescriptorUtil.pipeFrom; |
| 46 | +import static com.nextcloud.android.sso.exceptions.SSOException.parseNextcloudCustomException; |
| 47 | + |
48 | 48 | public class AidlNetworkRequest extends NetworkRequest { |
49 | 49 | private static final String TAG = AidlNetworkRequest.class.getCanonicalName(); |
50 | 50 |
|
@@ -264,8 +264,8 @@ static ExceptionResponse deserializeObjectV2(InputStream is) throws IOException, |
264 | 264 | final ArrayList<?> list = new Gson().fromJson(headers, ArrayList.class); |
265 | 265 |
|
266 | 266 | for (Object o : list) { |
267 | | - final LinkedTreeMap<?, ?> treeMap = (LinkedTreeMap<?, ?>) o; |
268 | | - headerList.add(new PlainHeader((String) treeMap.get("name"), (String) treeMap.get("value"))); |
| 267 | + final LinkedHashMap<?, ?> hashMap = (LinkedHashMap<?, ?>) o; |
| 268 | + headerList.add(new PlainHeader((String) hashMap.get("name"), (String) hashMap.get("value"))); |
269 | 269 | } |
270 | 270 | } |
271 | 271 |
|
|
0 commit comments