mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-19 01:47:52 +00:00
6963723: Project Coin: Retrofit more JDK classes for ARM
Reviewed-by: alanb, malenkov, prr, amenkov
This commit is contained in:
parent
f217a785d5
commit
5ab764cefb
@ -60,7 +60,7 @@ import org.xml.sax.helpers.DefaultHandler;
|
||||
*
|
||||
* @author Philip Milne
|
||||
*/
|
||||
public class XMLDecoder {
|
||||
public class XMLDecoder implements AutoCloseable {
|
||||
private final DocumentHandler handler = new DocumentHandler();
|
||||
private final InputSource input;
|
||||
private Object owner;
|
||||
|
||||
@ -204,7 +204,7 @@ import java.nio.charset.UnsupportedCharsetException;
|
||||
*
|
||||
* @author Philip Milne
|
||||
*/
|
||||
public class XMLEncoder extends Encoder {
|
||||
public class XMLEncoder extends Encoder implements AutoCloseable {
|
||||
|
||||
private final CharsetEncoder encoder;
|
||||
private final String charset;
|
||||
|
||||
@ -36,7 +36,7 @@ package java.io;
|
||||
* @see java.io.ObjectInputStream
|
||||
* @since JDK1.1
|
||||
*/
|
||||
public interface ObjectInput extends DataInput {
|
||||
public interface ObjectInput extends DataInput, AutoCloseable {
|
||||
/**
|
||||
* Read and return an object. The class that implements this interface
|
||||
* defines where the object is "read" from.
|
||||
|
||||
@ -36,7 +36,7 @@ package java.io;
|
||||
* @see java.io.ObjectInputStream
|
||||
* @since JDK1.1
|
||||
*/
|
||||
public interface ObjectOutput extends DataOutput {
|
||||
public interface ObjectOutput extends DataOutput, AutoCloseable {
|
||||
/**
|
||||
* Write an object to the underlying storage or stream. The
|
||||
* class that implements this interface defines how the object is
|
||||
|
||||
@ -343,7 +343,7 @@ import sun.misc.LRUCache;
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
public final class Scanner implements Iterator<String> {
|
||||
public final class Scanner implements Iterator<String>, Closeable {
|
||||
|
||||
// Internal buffer used to hold input
|
||||
private CharBuffer buf;
|
||||
|
||||
@ -107,7 +107,7 @@ import java.util.List;
|
||||
* @author Florian Bomers
|
||||
*/
|
||||
|
||||
public interface MidiDevice {
|
||||
public interface MidiDevice extends AutoCloseable {
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -38,7 +38,7 @@ package javax.sound.midi;
|
||||
*
|
||||
* @author Kara Kytle
|
||||
*/
|
||||
public interface Receiver {
|
||||
public interface Receiver extends AutoCloseable {
|
||||
|
||||
|
||||
//$$fb 2002-04-12: fix for 4662090: Contradiction in Receiver specification
|
||||
|
||||
@ -35,7 +35,7 @@ package javax.sound.midi;
|
||||
*
|
||||
* @author Kara Kytle
|
||||
*/
|
||||
public interface Transmitter {
|
||||
public interface Transmitter extends AutoCloseable {
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -70,7 +70,7 @@ package javax.sound.sampled;
|
||||
* @see LineEvent
|
||||
* @since 1.3
|
||||
*/
|
||||
public interface Line {
|
||||
public interface Line extends AutoCloseable {
|
||||
|
||||
/**
|
||||
* Obtains the <code>Line.Info</code> object describing this
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user