UTF_16.java, [...]: Cleanup.
2004-10-16 Michael Koch <konqueror@gmx.de> * libjava/gnu/java/nio/charset/UTF_16.java, libjava/gnu/java/nio/charset/UTF_16BE.java, libjava/gnu/java/nio/charset/UTF_16LE.java, libjava/java/nio/ByteOrder.java, libjava/java/nio/MappedByteBuffer.java, libjava/java/nio/channels/Channels.java, libjava/java/nio/channels/spi/SelectorProvider.java, libjava/java/nio/charset/Charset.java: Cleanup. From-SVN: r89151
This commit is contained in:
parent
752ef8732d
commit
d8d3480a29
9 changed files with 29 additions and 19 deletions
|
@ -35,8 +35,11 @@ this exception to your version of the library, but you are not
|
|||
obligated to do so. If you do not wish to do so, delete this
|
||||
exception statement from your version. */
|
||||
|
||||
|
||||
package java.nio.charset;
|
||||
|
||||
import gnu.java.nio.charset.Provider;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.CharBuffer;
|
||||
import java.nio.charset.spi.CharsetProvider;
|
||||
|
@ -47,7 +50,6 @@ import java.util.Locale;
|
|||
import java.util.Set;
|
||||
import java.util.SortedMap;
|
||||
import java.util.TreeMap;
|
||||
import gnu.java.nio.charset.Provider;
|
||||
|
||||
/**
|
||||
* @author Jesse Rosenstock
|
||||
|
@ -121,6 +123,8 @@ public abstract class Charset implements Comparable
|
|||
Charset cs = charsetForName (charsetName);
|
||||
if (cs == null)
|
||||
throw new UnsupportedCharsetException (charsetName);
|
||||
cachedDecoder = null;
|
||||
cachedEncoder = null;
|
||||
return cs;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue