jdk/src/share/classes/java/net/InMemoryCookieStore.java
changeset 10698 b2da906f8080
parent 5506 202f599c92aa
child 12192 dd8301ce22b6
equal deleted inserted replaced
10697:ecee258b7d87 10698:b2da906f8080
    89                 cookieJar.add(cookie);
    89                 cookieJar.add(cookie);
    90                 // and add it to domain index
    90                 // and add it to domain index
    91                 if (cookie.getDomain() != null) {
    91                 if (cookie.getDomain() != null) {
    92                     addIndex(domainIndex, cookie.getDomain(), cookie);
    92                     addIndex(domainIndex, cookie.getDomain(), cookie);
    93                 }
    93                 }
    94                 // add it to uri index, too
    94                 if (uri != null) {
    95                 addIndex(uriIndex, getEffectiveURI(uri), cookie);
    95                     // add it to uri index, too
       
    96                     addIndex(uriIndex, getEffectiveURI(uri), cookie);
       
    97                 }
    96             }
    98             }
    97         } finally {
    99         } finally {
    98             lock.unlock();
   100             lock.unlock();
    99         }
   101         }
   100     }
   102     }