Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
09aee9e9
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看板
提交
09aee9e9
编写于
4月 25, 2008
作者:
V
valeriep
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
365efcb9
78b0a355
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
2 addition
and
13 deletion
+2
-13
src/share/classes/java/security/BasicPermission.java
src/share/classes/java/security/BasicPermission.java
+2
-13
未找到文件。
src/share/classes/java/security/BasicPermission.java
浏览文件 @
09aee9e9
...
@@ -27,12 +27,10 @@ package java.security;
...
@@ -27,12 +27,10 @@ package java.security;
import
java.security.*
;
import
java.security.*
;
import
java.util.Enumeration
;
import
java.util.Enumeration
;
import
java.util.Iterator
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Hashtable
;
import
java.util.Hashtable
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.StringTokenizer
;
import
java.io.ObjectStreamField
;
import
java.io.ObjectStreamField
;
import
java.io.ObjectOutputStream
;
import
java.io.ObjectOutputStream
;
import
java.io.ObjectInputStream
;
import
java.io.ObjectInputStream
;
...
@@ -64,14 +62,8 @@ import java.io.IOException;
...
@@ -64,14 +62,8 @@ import java.io.IOException;
* @see java.security.Permission
* @see java.security.Permission
* @see java.security.Permissions
* @see java.security.Permissions
* @see java.security.PermissionCollection
* @see java.security.PermissionCollection
* @see java.lang.RuntimePermission
* @see java.security.SecurityPermission
* @see java.util.PropertyPermission
* @see java.awt.AWTPermission
* @see java.net.NetPermission
* @see java.lang.SecurityManager
* @see java.lang.SecurityManager
*
*
*
* @author Marianne Mueller
* @author Marianne Mueller
* @author Roland Schemers
* @author Roland Schemers
*/
*/
...
@@ -95,7 +87,6 @@ implements java.io.Serializable
...
@@ -95,7 +87,6 @@ implements java.io.Serializable
* initialize a BasicPermission object. Common to all constructors.
* initialize a BasicPermission object. Common to all constructors.
*
*
*/
*/
private
void
init
(
String
name
)
private
void
init
(
String
name
)
{
{
if
(
name
==
null
)
if
(
name
==
null
)
...
@@ -213,8 +204,8 @@ implements java.io.Serializable
...
@@ -213,8 +204,8 @@ implements java.io.Serializable
* and has the same name as this object.
* and has the same name as this object.
* <P>
* <P>
* @param obj the object we are testing for equality with this object.
* @param obj the object we are testing for equality with this object.
* @return true if <i>obj</i>
is a BasicPermission, and has the same name
* @return true if <i>obj</i>
's class is the same as this object's class
* as this BasicPermission object, false otherwise.
* a
nd has the same name a
s this BasicPermission object, false otherwise.
*/
*/
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
this
)
if
(
obj
==
this
)
...
@@ -237,7 +228,6 @@ implements java.io.Serializable
...
@@ -237,7 +228,6 @@ implements java.io.Serializable
*
*
* @return a hash code value for this object.
* @return a hash code value for this object.
*/
*/
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getName
().
hashCode
();
return
this
.
getName
().
hashCode
();
}
}
...
@@ -266,7 +256,6 @@ implements java.io.Serializable
...
@@ -266,7 +256,6 @@ implements java.io.Serializable
* @return a new PermissionCollection object suitable for
* @return a new PermissionCollection object suitable for
* storing BasicPermissions.
* storing BasicPermissions.
*/
*/
public
PermissionCollection
newPermissionCollection
()
{
public
PermissionCollection
newPermissionCollection
()
{
return
new
BasicPermissionCollection
(
this
.
getClass
());
return
new
BasicPermissionCollection
(
this
.
getClass
());
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录