code: private <T> void addIndex(Map<T, List<HttpCookie>> indexStore,
                                T index,
                                HttpCookie cookie)
      {
          // Android-changed : "index" can be null. We only use the URI based
          // index on Android and we want to support null URIs. The underlying
          // store is a HashMap which will support null keys anyway.
          List<HttpCookie> cookies = indexStore.get(index);
          if (cookies != null) {
              // there may already have the same cookie, so remove it first
              cookies.remove(cookie);
  
              cookies.add(cookie);
          } else {
              cookies = new ArrayList<HttpCookie>();
              cookies.add(cookie);
              indexStore.put(index, cookies);
          }
      }
docs: add 'cookie' indexed by 'index' into 'indexStore'