Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
389ee4b8
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
389ee4b8
编写于
5月 03, 2011
作者:
M
mduigou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7041612: Rename StandardCharset to StandardCharsets
Reviewed-by: alanb, mr, darcy
上级
b077dcb3
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
19 addition
and
19 deletion
+19
-19
make/java/nio/FILES_java.gmk
make/java/nio/FILES_java.gmk
+1
-1
src/share/classes/java/nio/charset/Charset.java
src/share/classes/java/nio/charset/Charset.java
+1
-1
src/share/classes/java/nio/charset/StandardCharsets.java
src/share/classes/java/nio/charset/StandardCharsets.java
+3
-3
src/share/classes/java/nio/file/Path.java
src/share/classes/java/nio/file/Path.java
+1
-1
src/share/classes/java/util/zip/ZipCoder.java
src/share/classes/java/util/zip/ZipCoder.java
+4
-4
src/share/classes/java/util/zip/ZipFile.java
src/share/classes/java/util/zip/ZipFile.java
+2
-2
src/share/classes/java/util/zip/ZipInputStream.java
src/share/classes/java/util/zip/ZipInputStream.java
+2
-2
src/share/classes/java/util/zip/ZipOutputStream.java
src/share/classes/java/util/zip/ZipOutputStream.java
+2
-2
src/share/classes/sun/awt/FontDescriptor.java
src/share/classes/sun/awt/FontDescriptor.java
+3
-3
未找到文件。
make/java/nio/FILES_java.gmk
浏览文件 @
389ee4b8
...
...
@@ -71,7 +71,7 @@ FILES_src = \
java/nio/charset/CoderMalfunctionError.java \
java/nio/charset/CodingErrorAction.java \
java/nio/charset/MalformedInputException.java \
java/nio/charset/StandardCharset.java \
java/nio/charset/StandardCharset
s
.java \
java/nio/charset/UnmappableCharacterException.java \
\
java/nio/charset/spi/CharsetProvider.java \
...
...
src/share/classes/java/nio/charset/Charset.java
浏览文件 @
389ee4b8
...
...
@@ -215,7 +215,7 @@ import sun.security.action.GetPropertyAction;
* determined during virtual-machine startup and typically depends upon the
* locale and charset being used by the underlying operating system. </p>
*
* <p>The {@link StandardCharset} class defines constants for each of the
* <p>The {@link StandardCharset
s
} class defines constants for each of the
* standard charsets.
*
* <h4>Terminology</h4>
...
...
src/share/classes/java/nio/charset/StandardCharset.java
→
src/share/classes/java/nio/charset/StandardCharset
s
.java
浏览文件 @
389ee4b8
...
...
@@ -32,10 +32,10 @@ package java.nio.charset;
* @see <a href="Charset#standard">Standard Charsets</a>
* @since 1.7
*/
public
final
class
StandardCharset
{
public
final
class
StandardCharset
s
{
private
StandardCharset
()
{
throw
new
AssertionError
(
"No java.nio.charset.StandardCharset instances for you!"
);
private
StandardCharset
s
()
{
throw
new
AssertionError
(
"No java.nio.charset.StandardCharset
s
instances for you!"
);
}
/**
* Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the
...
...
src/share/classes/java/nio/file/Path.java
浏览文件 @
389ee4b8
...
...
@@ -72,7 +72,7 @@ import java.util.Iterator;
* directory and is UTF-8 encoded.
* <pre>
* Path path = FileSystems.getDefault().getPath("logs", "access.log");
* BufferReader reader = Files.newBufferedReader(path, StandardCharset.UTF_8);
* BufferReader reader = Files.newBufferedReader(path, StandardCharset
s
.UTF_8);
* </pre>
*
* <a name="interop"><h4>Interoperability</h4></a>
...
...
src/share/classes/java/util/zip/ZipCoder.java
浏览文件 @
389ee4b8
...
...
@@ -28,7 +28,7 @@ package java.util.zip;
import
java.nio.ByteBuffer
;
import
java.nio.CharBuffer
;
import
java.nio.charset.Charset
;
import
java.nio.charset.StandardCharset
;
import
java.nio.charset.StandardCharset
s
;
import
java.nio.charset.CharsetDecoder
;
import
java.nio.charset.CharsetEncoder
;
import
java.nio.charset.CoderResult
;
...
...
@@ -107,7 +107,7 @@ final class ZipCoder {
if
(
isUTF8
)
return
getBytes
(
s
);
if
(
utf8
==
null
)
utf8
=
new
ZipCoder
(
StandardCharset
.
UTF_8
);
utf8
=
new
ZipCoder
(
StandardCharset
s
.
UTF_8
);
return
utf8
.
getBytes
(
s
);
}
...
...
@@ -116,7 +116,7 @@ final class ZipCoder {
if
(
isUTF8
)
return
toString
(
ba
,
len
);
if
(
utf8
==
null
)
utf8
=
new
ZipCoder
(
StandardCharset
.
UTF_8
);
utf8
=
new
ZipCoder
(
StandardCharset
s
.
UTF_8
);
return
utf8
.
toString
(
ba
,
len
);
}
...
...
@@ -132,7 +132,7 @@ final class ZipCoder {
private
ZipCoder
(
Charset
cs
)
{
this
.
cs
=
cs
;
this
.
isUTF8
=
cs
.
name
().
equals
(
StandardCharset
.
UTF_8
.
name
());
this
.
isUTF8
=
cs
.
name
().
equals
(
StandardCharset
s
.
UTF_8
.
name
());
}
static
ZipCoder
get
(
Charset
charset
)
{
...
...
src/share/classes/java/util/zip/ZipFile.java
浏览文件 @
389ee4b8
...
...
@@ -31,7 +31,7 @@ import java.io.IOException;
import
java.io.EOFException
;
import
java.io.File
;
import
java.nio.charset.Charset
;
import
java.nio.charset.StandardCharset
;
import
java.nio.charset.StandardCharset
s
;
import
java.util.ArrayDeque
;
import
java.util.Deque
;
import
java.util.Enumeration
;
...
...
@@ -141,7 +141,7 @@ class ZipFile implements ZipConstants, Closeable {
* @since 1.3
*/
public
ZipFile
(
File
file
,
int
mode
)
throws
IOException
{
this
(
file
,
mode
,
StandardCharset
.
UTF_8
);
this
(
file
,
mode
,
StandardCharset
s
.
UTF_8
);
}
/**
...
...
src/share/classes/java/util/zip/ZipInputStream.java
浏览文件 @
389ee4b8
...
...
@@ -30,7 +30,7 @@ import java.io.IOException;
import
java.io.EOFException
;
import
java.io.PushbackInputStream
;
import
java.nio.charset.Charset
;
import
java.nio.charset.StandardCharset
;
import
java.nio.charset.StandardCharset
s
;
import
static
java
.
util
.
zip
.
ZipConstants64
.*;
/**
...
...
@@ -76,7 +76,7 @@ class ZipInputStream extends InflaterInputStream implements ZipConstants {
* @param in the actual input stream
*/
public
ZipInputStream
(
InputStream
in
)
{
this
(
in
,
StandardCharset
.
UTF_8
);
this
(
in
,
StandardCharset
s
.
UTF_8
);
}
/**
...
...
src/share/classes/java/util/zip/ZipOutputStream.java
浏览文件 @
389ee4b8
...
...
@@ -28,7 +28,7 @@ package java.util.zip;
import
java.io.OutputStream
;
import
java.io.IOException
;
import
java.nio.charset.Charset
;
import
java.nio.charset.StandardCharset
;
import
java.nio.charset.StandardCharset
s
;
import
java.util.Vector
;
import
java.util.HashSet
;
import
static
java
.
util
.
zip
.
ZipConstants64
.*;
...
...
@@ -101,7 +101,7 @@ class ZipOutputStream extends DeflaterOutputStream implements ZipConstants {
* @param out the actual output stream
*/
public
ZipOutputStream
(
OutputStream
out
)
{
this
(
out
,
StandardCharset
.
UTF_8
);
this
(
out
,
StandardCharset
s
.
UTF_8
);
}
/**
...
...
src/share/classes/sun/awt/FontDescriptor.java
浏览文件 @
389ee4b8
...
...
@@ -26,7 +26,7 @@ package sun.awt;
import
java.nio.charset.Charset
;
import
java.nio.charset.CharsetEncoder
;
import
java.nio.charset.StandardCharset
;
import
java.nio.charset.StandardCharset
s
;
import
sun.nio.cs.HistoricallyNamedCharset
;
public
class
FontDescriptor
implements
Cloneable
{
...
...
@@ -105,8 +105,8 @@ public class FontDescriptor implements Cloneable {
if
(
useUnicode
&&
unicodeEncoder
==
null
)
{
try
{
this
.
unicodeEncoder
=
isLE
?
StandardCharset
.
UTF_16LE
.
newEncoder
():
StandardCharset
.
UTF_16BE
.
newEncoder
();
StandardCharset
s
.
UTF_16LE
.
newEncoder
():
StandardCharset
s
.
UTF_16BE
.
newEncoder
();
}
catch
(
IllegalArgumentException
x
)
{}
}
return
useUnicode
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录