Using Closeable instead of AutoCloseable.

This commit is contained in:
Simone Bordet 2013-03-25 16:36:07 +01:00
parent 679eeb7a7c
commit 07420547f9
3 changed files with 7 additions and 3 deletions

View File

@ -18,6 +18,7 @@
package org.eclipse.jetty.client;
import java.io.Closeable;
import java.io.IOException;
import java.nio.channels.AsynchronousCloseException;
import java.util.ArrayList;
@ -45,7 +46,7 @@ import org.eclipse.jetty.util.component.Dumpable;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
public class HttpDestination implements Destination, AutoCloseable, Dumpable
public class HttpDestination implements Destination, Closeable, Dumpable
{
private static final Logger LOG = Log.getLogger(HttpDestination.class);

View File

@ -18,6 +18,8 @@
package org.eclipse.jetty.client.api;
import java.io.Closeable;
import org.eclipse.jetty.util.Promise;
/**
@ -28,7 +30,7 @@ import org.eclipse.jetty.util.Promise;
* may be created by applications that want to do their own connection management via
* {@link Destination#newConnection(Promise)} and {@link Connection#close()}.
*/
public interface Connection extends AutoCloseable
public interface Connection extends Closeable
{
/**
* Sends a request with an associated response listener.

View File

@ -18,6 +18,7 @@
package org.eclipse.jetty.client.util;
import java.io.Closeable;
import java.nio.ByteBuffer;
import java.util.Iterator;
import java.util.NoSuchElementException;
@ -77,7 +78,7 @@ import org.eclipse.jetty.client.api.Response;
* }
* </pre>
*/
public class DeferredContentProvider implements AsyncContentProvider, AutoCloseable
public class DeferredContentProvider implements AsyncContentProvider, Closeable
{
private static final ByteBuffer CLOSE = ByteBuffer.allocate(0);