diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/http/NetscapeCookieFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/http/NetscapeCookieFile.java index c8db52dd5..e16adb9bf 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/http/NetscapeCookieFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/http/NetscapeCookieFile.java @@ -277,64 +277,6 @@ public final class NetscapeCookieFile { return cookie; } - /** - * Writes all the cookies being maintained in the set being returned by - * {@link #getCookies(boolean)} to the underlying file. - *
- * Session-cookies will not be persisted.
- *
- * @param url
- * url for which to write the cookies (important to derive
- * default values for non-explicitly set attributes)
- * @throws IOException
- * if the underlying cookie file could not be read or written or
- * a problem with the lock file
- * @throws InterruptedException
- * if the thread is interrupted while waiting for the lock
- */
- public void write(URL url) throws IOException, InterruptedException {
- try {
- byte[] cookieFileContent = getFileContentIfModified();
- if (cookieFileContent != null) {
- LOG.debug("Reading the underlying cookie file '{}' " //$NON-NLS-1$
- + "as it has been modified since " //$NON-NLS-1$
- + "the last access", //$NON-NLS-1$
- path);
- // reread new changes if necessary
- Set
+ * Session-cookies will not be persisted.
+ *
+ * @param url
+ * url for which to write the cookies (important to derive
+ * default values for non-explicitly set attributes)
+ * @throws IOException
+ * if the underlying cookie file could not be read or written or
+ * a problem with the lock file
+ * @throws InterruptedException
+ * if the thread is interrupted while waiting for the lock
+ */
+ public void write(URL url) throws IOException, InterruptedException {
+ try {
+ byte[] cookieFileContent = getFileContentIfModified();
+ if (cookieFileContent != null) {
+ LOG.debug("Reading the underlying cookie file '{}' " //$NON-NLS-1$
+ + "as it has been modified since " //$NON-NLS-1$
+ + "the last access", //$NON-NLS-1$
+ path);
+ // reread new changes if necessary
+ Set