Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
91936637
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看板
提交
91936637
编写于
11月 12, 2013
作者:
D
darcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8028229: Fix more raw types lint warning in core libraries
Reviewed-by: chegar, forax, lancea, alanb, jfranck
上级
5a92307d
变更
13
显示空白变更内容
内联
并排
Showing
13 changed file
with
28 addition
and
26 deletion
+28
-26
src/share/classes/java/io/ObjectOutputStream.java
src/share/classes/java/io/ObjectOutputStream.java
+1
-1
src/share/classes/java/io/ObjectStreamClass.java
src/share/classes/java/io/ObjectStreamClass.java
+2
-2
src/share/classes/java/lang/reflect/Proxy.java
src/share/classes/java/lang/reflect/Proxy.java
+3
-2
src/share/classes/java/nio/file/TempFileHelper.java
src/share/classes/java/nio/file/TempFileHelper.java
+4
-4
src/share/classes/java/util/IdentityHashMap.java
src/share/classes/java/util/IdentityHashMap.java
+1
-1
src/share/classes/java/util/logging/Logger.java
src/share/classes/java/util/logging/Logger.java
+1
-1
src/share/classes/java/util/logging/Logging.java
src/share/classes/java/util/logging/Logging.java
+3
-3
src/share/classes/sun/misc/Cleaner.java
src/share/classes/sun/misc/Cleaner.java
+4
-3
src/share/classes/sun/misc/ProxyGenerator.java
src/share/classes/sun/misc/ProxyGenerator.java
+2
-2
src/share/classes/sun/rmi/rmic/Main.java
src/share/classes/sun/rmi/rmic/Main.java
+2
-2
src/share/classes/sun/rmi/server/LoaderHandler.java
src/share/classes/sun/rmi/server/LoaderHandler.java
+2
-2
src/share/classes/sun/rmi/server/UnicastServerRef.java
src/share/classes/sun/rmi/server/UnicastServerRef.java
+1
-1
src/share/classes/sun/rmi/server/Util.java
src/share/classes/sun/rmi/server/Util.java
+2
-2
未找到文件。
src/share/classes/java/io/ObjectOutputStream.java
浏览文件 @
91936637
...
...
@@ -1248,7 +1248,7 @@ public class ObjectOutputStream
handles
.
assign
(
unshared
?
null
:
desc
);
Class
<?>
cl
=
desc
.
forClass
();
Class
[]
ifaces
=
cl
.
getInterfaces
();
Class
<?>
[]
ifaces
=
cl
.
getInterfaces
();
bout
.
writeInt
(
ifaces
.
length
);
for
(
int
i
=
0
;
i
<
ifaces
.
length
;
i
++)
{
bout
.
writeUTF
(
ifaces
[
i
].
getName
());
...
...
src/share/classes/java/io/ObjectStreamClass.java
浏览文件 @
91936637
/*
* Copyright (c) 1996, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -1746,7 +1746,7 @@ public class ObjectStreamClass implements Serializable {
dout
.
writeUTF
(
"()V"
);
}
Constructor
[]
cons
=
cl
.
getDeclaredConstructors
();
Constructor
<?>
[]
cons
=
cl
.
getDeclaredConstructors
();
MemberSignature
[]
consSigs
=
new
MemberSignature
[
cons
.
length
];
for
(
int
i
=
0
;
i
<
cons
.
length
;
i
++)
{
consSigs
[
i
]
=
new
MemberSignature
(
cons
[
i
]);
...
...
src/share/classes/java/lang/reflect/Proxy.java
浏览文件 @
91936637
/*
* Copyright (c) 1999, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -494,9 +494,10 @@ public class Proxy implements java.io.Serializable {
private
final
int
hash
;
private
final
WeakReference
<
Class
<?>>[]
refs
;
@SuppressWarnings
(
"unchecked"
)
KeyX
(
Class
<?>[]
interfaces
)
{
hash
=
Arrays
.
hashCode
(
interfaces
);
refs
=
new
WeakReference
[
interfaces
.
length
];
refs
=
(
WeakReference
<
Class
<?>>[])
new
WeakReference
<?>
[
interfaces
.
length
];
for
(
int
i
=
0
;
i
<
interfaces
.
length
;
i
++)
{
refs
[
i
]
=
new
WeakReference
<>(
interfaces
[
i
]);
}
...
...
src/share/classes/java/nio/file/TempFileHelper.java
浏览文件 @
91936637
/*
* Copyright (c) 2009, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -81,7 +81,7 @@ class TempFileHelper {
String
prefix
,
String
suffix
,
boolean
createDirectory
,
FileAttribute
[]
attrs
)
FileAttribute
<?>
[]
attrs
)
throws
IOException
{
if
(
prefix
==
null
)
...
...
@@ -155,7 +155,7 @@ class TempFileHelper {
static
Path
createTempFile
(
Path
dir
,
String
prefix
,
String
suffix
,
FileAttribute
[]
attrs
)
FileAttribute
<?>
[]
attrs
)
throws
IOException
{
return
create
(
dir
,
prefix
,
suffix
,
false
,
attrs
);
...
...
@@ -167,7 +167,7 @@ class TempFileHelper {
*/
static
Path
createTempDirectory
(
Path
dir
,
String
prefix
,
FileAttribute
[]
attrs
)
FileAttribute
<?>
[]
attrs
)
throws
IOException
{
return
create
(
dir
,
prefix
,
null
,
true
,
attrs
);
...
...
src/share/classes/java/util/IdentityHashMap.java
浏览文件 @
91936637
...
...
@@ -1243,7 +1243,7 @@ public class IdentityHashMap<K,V>
if
(
ti
>=
size
)
{
throw
new
ConcurrentModificationException
();
}
a
[
ti
++]
=
(
T
)
new
AbstractMap
.
SimpleEntry
(
unmaskNull
(
key
),
tab
[
si
+
1
]);
a
[
ti
++]
=
(
T
)
new
AbstractMap
.
SimpleEntry
<>
(
unmaskNull
(
key
),
tab
[
si
+
1
]);
}
}
// fewer elements than expected or concurrent modification from other thread detected
...
...
src/share/classes/java/util/logging/Logger.java
浏览文件 @
91936637
...
...
@@ -351,7 +351,7 @@ public class Logger {
?
caller
.
getClassLoader
()
:
null
);
if
(
callersClassLoader
!=
null
)
{
this
.
callersClassLoaderRef
=
new
WeakReference
(
callersClassLoader
);
this
.
callersClassLoaderRef
=
new
WeakReference
<>
(
callersClassLoader
);
}
}
...
...
src/share/classes/java/util/logging/Logging.java
浏览文件 @
91936637
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -55,11 +55,11 @@ class Logging implements LoggingMXBean {
}
public
List
<
String
>
getLoggerNames
()
{
Enumeration
loggers
=
logManager
.
getLoggerNames
();
Enumeration
<
String
>
loggers
=
logManager
.
getLoggerNames
();
ArrayList
<
String
>
array
=
new
ArrayList
<>();
for
(;
loggers
.
hasMoreElements
();)
{
array
.
add
(
(
String
)
loggers
.
nextElement
());
array
.
add
(
loggers
.
nextElement
());
}
return
array
;
}
...
...
src/share/classes/sun/misc/Cleaner.java
浏览文件 @
91936637
/*
* Copyright (c) 2003, 20
08
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -57,14 +57,14 @@ import java.security.PrivilegedAction;
*/
public
class
Cleaner
extends
PhantomReference
extends
PhantomReference
<
Object
>
{
// Dummy reference queue, needed because the PhantomReference constructor
// insists that we pass a queue. Nothing will ever be placed on this queue
// since the reference handler invokes cleaners explicitly.
//
private
static
final
ReferenceQueue
dummyQueue
=
new
ReferenceQueue
();
private
static
final
ReferenceQueue
<
Object
>
dummyQueue
=
new
ReferenceQueue
<>
();
// Doubly-linked list of live cleaners, which prevents the cleaners
// themselves from being GC'd before their referents
...
...
@@ -119,6 +119,7 @@ public class Cleaner
/**
* Creates a new cleaner.
*
* @param ob the referent object to be cleaned
* @param thunk
* The cleanup code to be run when the cleaner is invoked. The
* cleanup code is run directly from the reference-handler thread,
...
...
src/share/classes/sun/misc/ProxyGenerator.java
浏览文件 @
91936637
/*
* Copyright (c) 1999, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -384,7 +384,7 @@ public class ProxyGenerator {
private
String
className
;
/** proxy interfaces */
private
Class
[]
interfaces
;
private
Class
<?>
[]
interfaces
;
/** proxy class access flags */
private
int
accessFlags
;
...
...
src/share/classes/sun/rmi/rmic/Main.java
浏览文件 @
91936637
/*
* Copyright (c) 1996, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -494,7 +494,7 @@ public class Main implements sun.rmi.rmic.Constants {
extDirsArg
);
BatchEnvironment
result
=
null
;
try
{
Class
[]
ctorArgTypes
=
{
OutputStream
.
class
,
ClassPath
.
class
,
Main
.
class
};
Class
<?>
[]
ctorArgTypes
=
{
OutputStream
.
class
,
ClassPath
.
class
,
Main
.
class
};
Object
[]
ctorArgs
=
{
out
,
classPath
,
this
};
Constructor
<?
extends
BatchEnvironment
>
constructor
=
environmentClass
.
getConstructor
(
ctorArgTypes
);
...
...
src/share/classes/sun/rmi/server/LoaderHandler.java
浏览文件 @
91936637
...
...
@@ -692,7 +692,7 @@ public final class LoaderHandler {
* Define a proxy class in the given class loader. The proxy
* class will implement the given interfaces Classes.
*/
private
static
Class
<?>
loadProxyClass
(
ClassLoader
loader
,
Class
[]
interfaces
)
private
static
Class
<?>
loadProxyClass
(
ClassLoader
loader
,
Class
<?>
[]
interfaces
)
throws
ClassNotFoundException
{
try
{
...
...
@@ -719,7 +719,7 @@ public final class LoaderHandler {
*/
private
static
ClassLoader
loadProxyInterfaces
(
String
[]
interfaces
,
ClassLoader
loader
,
Class
[]
classObjs
,
Class
<?>
[]
classObjs
,
boolean
[]
nonpublic
)
throws
ClassNotFoundException
{
...
...
src/share/classes/sun/rmi/server/UnicastServerRef.java
浏览文件 @
91936637
...
...
@@ -299,7 +299,7 @@ public class UnicastServerRef extends UnicastRef
logCall
(
obj
,
method
);
// unmarshal parameters
Class
[]
types
=
method
.
getParameterTypes
();
Class
<?>
[]
types
=
method
.
getParameterTypes
();
Object
[]
params
=
new
Object
[
types
.
length
];
try
{
...
...
src/share/classes/sun/rmi/server/Util.java
浏览文件 @
91936637
...
...
@@ -87,7 +87,7 @@ public final class Util {
Collections
.
synchronizedMap
(
new
WeakHashMap
<
Class
<?>,
Void
>(
11
));
/** parameter types for stub constructor */
private
static
final
Class
[]
stubConsParamTypes
=
{
RemoteRef
.
class
};
private
static
final
Class
<?>
[]
stubConsParamTypes
=
{
RemoteRef
.
class
};
private
Util
()
{
}
...
...
@@ -143,7 +143,7 @@ public final class Util {
}
final
ClassLoader
loader
=
implClass
.
getClassLoader
();
final
Class
[]
interfaces
=
getRemoteInterfaces
(
implClass
);
final
Class
<?>
[]
interfaces
=
getRemoteInterfaces
(
implClass
);
final
InvocationHandler
handler
=
new
RemoteObjectInvocationHandler
(
clientRef
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录