Use new Activity Result APIs
This commit is contained in:
29 files changed
+224
-281
No files matched your search
@@ -48,8 +48,8 @@ public class CookieRepository implements CookieJar {
|
||||
* verification).
|
||||
*/
|
||||
private static final Pattern VERIFY_AS_IP_ADDRESS = Pattern.compile("([0-9a-fA-F]*:[0-9a-fA-F:.]*)|([\\d.]+)");
|
||||
private CookieDatabase db;
|
||||
private Map<String, CookieSet> map;
|
||||
private final CookieDatabase db;
|
||||
private final Map<String, CookieSet> map;
|
||||
|
||||
public CookieRepository(Context context, String name) {
|
||||
db = new CookieDatabase(context, name);
|
||||
|
||||
@@ -33,7 +33,7 @@ import okhttp3.HttpUrl;
|
||||
|
||||
class CookieSet {
|
||||
|
||||
private Map<Key, Cookie> map = new HashMap<>();
|
||||
private final Map<Key, Cookie> map = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Adds a cookie to this {@code CookieSet}.
|
||||
@@ -72,9 +72,9 @@ class CookieSet {
|
||||
|
||||
static class Key {
|
||||
|
||||
private String name;
|
||||
private String domain;
|
||||
private String path;
|
||||
private final String name;
|
||||
private final String domain;
|
||||
private final String path;
|
||||
|
||||
public Key(Cookie cookie) {
|
||||
this.name = cookie.name();
|
||||
|
||||
Reference in new issue
Block a user